Authentication Flow Customization
Authentication Flow Customization
If upgrading uds-core, be aware that Keycloak Admin manual configuration will probably be required to set new Realm values. See the manual configuration section below for how to do this.
Bundle Overrides
To simplify the configuration of the available authentication flows, the following three environment variables have been exposed. These variables default to true
in UDS Core, override their values in a bundle to disable.
Setting | Description | Options |
---|---|---|
USERNAME_PASSWORD_AUTH_ENABLED | Toggle on/off the Username and Password Authentication flow. When disabled there will be no username password login, password / password confirm registration fields, no credential reset, and no update password options available. | true (default), false |
X509_AUTH_ENABLED | Toggle on/off X509 (CAC) Authentication flow. | true (default), false |
SOCIAL_AUTH_ENABLED | Toggle on/off Social (Google SSO, Azure AD, etc. ) Authentication flows. | true (default), false |
These three variables handle the complexities of configuring the following environment variables, which are responsible for both visual (theme) and security (realm). The following variables are not exposed for overriding.
Manual Configuration
Theme Configurations
Theme’s cannot be clickops’ed, for these changes to take affect an upgrade or fresh deployment will be required. Another option is exec-ing into the the keycloak pod and copying in the new themes to the /opt/keycloak/theme/themes/login/
directory. After copying in the theme changes, the theme changes depend on environment variables being defined in the theme.properties file. The above table demonstrates the different environment variables for the theme.properties
file.
Realm Configurations
All Realm Configurations require accesss to the Keycloak admin portal.
Configuration | How to Configure |
---|---|
DENY_USERNAME_PASSWORD_ENABLED | 1. Realm Authentication tab 2. Select the UDS Authentication Authentication Flow3. DISABLE the Deny Access step that is below the Username Password Form |
RESET_CREDENTIAL_FLOW_ENABLED | 1. Realm Authentication tab 2. Select the UDS Reset Credentials Authentication Flow3. DISABLE the Reset Password step |
REGISTRATION_FORM_ENABLED | 1. Realm Authentication tab 2. Select the UDS Registration Authentication Flow3. DISABLE the UDS Registration form step |
OTP_ENABLED | 1. Realm Authentication tab 2. Select the Required Action tab at the top of the Authentication view3. Toggle off the Configure OTP |