Keycloak authentication¶
Keycloak is an IAM (Identity and Access Management) tool. It is used for SSO (Single Sign-On) which means that identification is delegated to Keycloak.
The authentication in all Caascad services is handled by Keycloak.
Note
In this tutorial, please replace the following values:
ZONE_NAME
with the name of the administrative zone (it starts withocb-
).
Keycloak access¶
In your administration environment, Keycloak service is located at this address:
https://keycloak.ZONE_NAME.caascad.com
First Login¶
When you try to authenticate for the first time, you will need to set your password using this URL:
https://keycloak.ZONE_NAME.caascad.com/auth/realms/ZONE_NAME-client/account/
First, click on "Forget Password ?"
![](./images/keycloak_log_in_page.png)
Enter your Username or e-mail.
![](./images/enter_username.png)
An e-mail with password reset instructions will be sent to you shortly.
![](./images/email_sended.png)
Click on "Link to reset credentials" to set your password.
![](./images/click_on_reset_creds.png)
Enter a strong password.
![](./images/new_password.png)
And now you are ready to discover Caascad services !
Management console¶
When you login to your Keycloak account using this same URL:
https://keycloak.ZONE_NAME.caascad.com/auth/realms/ZONE_NAME-client/account/
You will access to an account management console where you can manage your account. You can update your profile, change passwords, and setup two-factor authentication.
You can also manage sessions as well as view history for the account.
![](./images/management_console.png)
Sessions managment¶
- Click on "Sessions" to view all active sessions.
![](./images/click_on_sessions.png)
- To force all of the active sessions to end immediately click on "Log out all sessions".
![](./images/log_out_all_sessions.png)
Two-Factor Authentication¶
You can strengthen the authentication security of your Keycloak account by adding another factor such as the OTP (one-time password) generated by Google Authenticator or FreeOTP.
![](./images/keycloak_otp.png)
Setup the Two-Factor Authentication
Info
The example below shows FreeOTP.
-
Download and Install FreeOTP application.
-
Scan the QR code displayed on your Keycloak account management console.
![](./images/scan_qr_code.jpg)
- You can now use FreeOTP to generate OTPs.
![](./images/generate_otp.jpg)
- Retrieve the code displayed in the application.
![](./images/displayed_code.jpg)
- Provide the code generated by the application and click on "Save" to finish the setup.
![](./images/provide_displayed_code.png)
- The Two-Factor Authentication is now configured on your account.
![](./images/two_factor_auth_configured.png)
Authentication using OTP
The next time you log into your account, you will need to provide a One-time code (using your mobile Application) upon the completion of the username/password authentication.
![](./images/provide_code_to_authenticate.png)