Authentication

Get the effective password policy

Changed on

Returns the backend-enforced password bounds and compromised-password screening status for the project identified by the anon key. A valid anon key is required, but no route-specific auth permission is needed.

get/auth/password-policy

Request

  • Base URL
    https://api.volcano.dev
  • Auth
    HTTP bearer

Headers

X-Volcano-Proxy-Authorization, string

Trusted server-side auth proxy credential in Bearer SERVICE_KEY form. When supplied, X-Volcano-Client-IP is also required. The service key must belong to the anon key's project and hold this operation's scope: auth.signup for signup and anonymous signup, auth.signin for signin and OAuth code exchange, auth.refresh for refresh, auth.logout for logout, and auth.password_reset for forgot-password and reset-password. The password policy accepts any service key for the project. Never expose a service key to browser code.

X-Volcano-Client-IP, string

Original browser IPv4 or IPv6 address supplied by a trusted server-side auth proxy. The proxy must derive this value from its platform-verified request metadata, never from a browser-supplied header. Requires a valid X-Volcano-Proxy-Authorization header.

Response

Effective password policy

AuthPasswordPolicy required

Effective backend-enforced password policy.

effective_min_length, integer required

Effective minimum password length in Unicode characters.

min_configurable_length, integer required

Lowest minimum password length accepted by the auth configuration endpoint.

max_length, integer required

Maximum password length in Unicode characters.

require_uppercase, boolean required

Whether passwords must contain an ASCII uppercase letter (A-Z).

require_lowercase, boolean required

Whether passwords must contain an ASCII lowercase letter (a-z).

require_numbers, boolean required

Whether passwords must contain an ASCII digit (0-9).

require_special_chars, boolean required

Whether passwords must contain one of the backend-supported special characters.

compromised_passwords_rejected, boolean required

Whether common and known-compromised passwords are rejected by the backend.

Changes

    • info

      added the new optional header request parameter X-Volcano-Client-IP

    • info

      added the new optional header request parameter X-Volcano-Proxy-Authorization

    • breaking

      the response's body type changed from no type to object for status

    14 more changes in this revision