-
Notifications
You must be signed in to change notification settings - Fork 945
Implement password validation and update internal caching to store schema version #7424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
* Add password policy endpoint in auth to allow fetching the password policy for the project/tenant
…check into validatePassword
|
isValid: validFlag, | ||
...(policy.customStrengthOptions.minPasswordLength && { | ||
meetsMinPasswordLength: minLengthFlag | ||
}), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This allows meetsMinPasswordLength
to only be defined in the status if minPasswordLength
is defined in the policy. Same with the other properties, since we only want them to be defined if they are required by the policy.
Size Report 1Affected Products
Test Logs |
Size Analysis Report 1Affected Products
Test Logs |
} | ||
|
||
// Check character options. | ||
let char; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe passwordChar?
|
||
auth = await testAuth(); | ||
auth.tenantId = TEST_TENANT_ID_REQUIRE_ALL; | ||
const status = await auth.validatePassword('P4ssword'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we also add 2 lines to test 'P4sswo@d'?
Creating a new PR for these changes since it has been split into multiple PRs. |
Implement password validation (validatePassword endpoint) and update internal caching to store schema version so
UNSUPPORTED_PASSWORD_POLICY_SCHEMA_VERSION
can be propagated when validatePassword is called