Auth0 Home Blog Docs

Getting password rules for a given connection


#1

Hello Everyone,

Using the excellent documentation I can see https://login.auth0.com/api/v2/connections/some-connection-id will return some content as below:

{
    "id": "some-connection-id",
    "options": {
        "mfa": {
            "active": true,
            "return_enroll_settings": true
        },
        "passwordPolicy": "low",
        "brute_force_protection": true,
        "strategy_version": 2,
        "password_complexity_options": {}
    },
    "strategy": "auth0",
    "name": "Username-Password-Authentication",
    "is_domain_connection": false
}

My question is, is there a way, or a future pipeline addition, to get the password policy description, for example for Low, I would see a response like ‘6 characters of any case’.

To avoid making this post a solution not a question, I would say my use case is that we have a custom login screen for Auth0. We have different policies across our different environments/tenants, and we would like to dynamically show password complexity requirements on the page instead of 'hard-‘coding’ them as web page content.

Thanks in advance!!


#2

While this is a great idea, there currently isn’t a way to do this, nor do we have it on a roadmap. You can request this via https://auth0.com/feedback and provide the user case and we’ll be in touch!