- Authentication
Configuring custom password security
Overview
The enhanced password security feature provides granular control over password requirements. This guide covers:
- Configuration options
- Implementation steps
- Security considerations
Password requirements
Minimum requirements
Effective June 1, 2021:
- 10 character minimum length
- One uppercase character (A-Z)
- One lowercase character (a-z)
- One digit (0-9)
- 10 failed attempts before 2-minute lockout
Custom configuration options
Custom requirements must include:
- Minimum length: 10 characters
- Three of the following:
- Uppercase character (A-Z)
- Lowercase character (a-z)
- Digit (0-9)
- Special character (!@#$%^&*)
Default lockout policy:
- 10 failed attempts
- 2-minute lockout period
Configuration properties
The security profile PasswordConfig object includes:
Basic requirements
MinimumCharacterCount(int): Password lengthNumericRequired(bool): Digit requirementSpecialCharacterRequired(bool): Special character requirementLowerCaseRequired(bool): Lowercase requirementUpperCaseRequired(bool): Uppercase requirement
Security controls
AllowedFailedAttempts(int?): Attempts before lockout (1-9)LockoutDuration(int?): Lockout minutes (10-1440)- Manual unlock endpoints:
POST v1/buyers/{buyerID}/users/{userID}/unlockPOST v1/adminusers/{userID}/unlockPOST v1/suppliers/{supplierID}/users/{userID}/unlock
Password management
MaximumPasswordAge(int?): Days until required change (1-365)MinimumPasswordAge(int?): Minutes between changes (0-60)LimitPasswordReuse(int?): Previous password block countMaxConsecutiveDupeChars(int?): Repeating character limit (0-24)
Implementation example
Security profile creation
http
json
Error handling
Authentication error response:
json
Implementation notes:
- Display requirements to users
- Direct to password reset flow
- Handle reset verification errors
- Support multiple profile configurations
Profile management
Configuration options
-
Dedicated profile:
- No roles assigned
- Organization-wide assignment
- Password configuration only
-
Integrated profile:
- Update existing profiles
- Use
PATCH v1/securityprofiles/{securityprofileID} - Combine roles and password rules
Multiple profile handling
Example profile configurations:
SecurityProfile1:
json
SecurityProfile2:
json
Combined result (most restrictive):
json
Implementation considerations
-
Default requirements:
- Platform minimums override weaker settings
- Automatic enforcement after June 1, 2021
-
Multiple profiles:
- Configurations combine automatically
- Strictest rules apply
- Consider organizational impact
Related reading
If you have suggestions for improving this article, let us know!