diff --git a/src/authentication/help.ts b/src/authentication/help.ts index 974b1572c9..8b0e38ab37 100644 --- a/src/authentication/help.ts +++ b/src/authentication/help.ts @@ -47,5 +47,30 @@ export default { "Avoid registering the authenticator that has already been registered.", webAuthnPolicyAcceptableAaguids: "The list of AAGUID of which an authenticator can be registered.", + + passwordPolicies: { + forceExpiredPasswordChange: + "The number of days the password is valid before a new password is required.", + hashIterations: + "The number of times a password is hashed before storage or verification. Default: 27,500.", + passwordHistory: "Prevents a recently used password from being reused.", + passwordBlacklist: + "Prevents the use of a password that is in a blacklist file.", + regexPattern: + "Requires that the password matches one or more defined regular expression patterns.", + length: "The minimum number of characters required for the password.", + notUsername: "The password cannot match the username.", + notEmail: "The password cannot match the email address of the user.", + specialChars: + "The number of special characters required in the password string.", + upperCase: + "The number of uppercase letters required in the password string.", + lowerCase: + "The number of lowercase letters required in the password string.", + digits: "The number of numerical digits required in the password string.", + hashAlgorithm: + "Applies a hashing algorithm to passwords, so they are not stored in clear text.", + maxLength: "The maximum number of characters allowed in the password.", + }, }, }; diff --git a/src/authentication/policies/PasswordPolicy.tsx b/src/authentication/policies/PasswordPolicy.tsx index a0923c9eee..6fc7622bf4 100644 --- a/src/authentication/policies/PasswordPolicy.tsx +++ b/src/authentication/policies/PasswordPolicy.tsx @@ -134,6 +134,7 @@ export const PasswordPolicy = ({ + } > diff --git a/src/authentication/policies/policy-row.css b/src/authentication/policies/policy-row.css index 9e8417ee9f..b6a4689cb4 100644 --- a/src/authentication/policies/policy-row.css +++ b/src/authentication/policies/policy-row.css @@ -1,4 +1,8 @@ - +@media (min-width: 768px) { + .keycloak__policies_authentication__form .pf-c-form__group { + --pf-c-form--m-horizontal__group-label--md--GridColumnWidth: 10rem; + } +} .keycloak__policies_authentication__minus-icon svg { color: var(--pf-c-button--m-plain--Color); }