Password Policies

Configure password requirements for Authority users.

Configuration

Environment Variables

Variable
Default
Description

PASSWORD_MIN_LENGTH

12

Minimum password length

PASSWORD_HISTORY_COUNT

5

Prevent reuse of recent passwords

PASSWORD_EXPIRY_DAYS

0

Days until password expires (0 = never)

REQUIRE_UPPERCASE

true

Require uppercase letters

REQUIRE_LOWERCASE

true

Require lowercase letters

REQUIRE_NUMBERS

true

Require numeric digits

REQUIRE_SPECIAL

false

Require special characters

Example Configurations

Standard Security

PASSWORD_MIN_LENGTH=12
REQUIRE_UPPERCASE=true
REQUIRE_LOWERCASE=true
REQUIRE_NUMBERS=true
REQUIRE_SPECIAL=false
PASSWORD_HISTORY_COUNT=5
PASSWORD_EXPIRY_DAYS=0

High Security

User-Friendly

Password Validation

When a user sets a password, Authority validates:

  1. Length - Meets minimum requirement

  2. Complexity - Contains required character types

  3. History - Not recently used

  4. Strength - Not in common password lists (optional)

Validation Messages

Users see clear feedback:

Password Expiry

When PASSWORD_EXPIRY_DAYS is set, users must change passwords periodically.

Expiry Warning

Users are warned before expiry:

Grace Period

Allow logins during grace period:

Handling Expired Passwords

When a password expires:

  1. User logs in with expired password

  2. Authority forces password change

  3. User cannot access application until password is changed

Password History

Prevent password reuse:

If a user tries to reuse a password:

Common Password Check

Block commonly used passwords:

Download a password list:

API Integration

Validate Password

Response:

Check Password Expiry

Response:

User Experience

Password Strength Indicator

The UI shows password strength in real-time:

  • Weak - Red, doesn't meet requirements

  • Fair - Yellow, meets minimum

  • Strong - Green, exceeds requirements

Password Generator

Offer a password generator:

Best Practices

circle-check
circle-exclamation

Troubleshooting

Password rejected unexpectedly

  • Check which rules are enabled

  • Verify character encoding

  • Review password history

Users forgetting complex passwords

  • Consider reducing complexity requirements

  • Enable password manager hints

  • Implement "forgot password" flow

Next Steps

Last updated

Was this helpful?