Install Safenet Agent for Keycloak
This section describes the steps to install and update the SafeNet Keycloak Agent for Keycloak server.
Install SafenetKeycloakAgentPackage
To install the the Keycloak Agent package on Keycloak server:
-
Extract the package to the installation directory of Keycloak server.
For example, If the Keycloak is running from
C:\(example, C:\keycloak-15.0.1\bin>.\standalone.bat)
then the extracted Keycloak Agent package is placed under same locationC:\(example,C:\610-000710-003_SafeNetKeycloakAgentPackage_Rev_A\)
. -
Navigate to the extracted Keycloak Agent package, and run the
Safenet_Keycloak_Agent_Setup
script. -
Enter the path of the Keycloak server directory in the command line and press Enter as displayed below:
-
After successful installation, the following output is displayed:
It reloads the server and a new SAS provider is visible under Server Info in Admin section:
-
Once installed, the following components are required on the Keycloak Authorization server:
- A Realm
- An OAuth 2 client
- Valid Client scope applied to the client
- User Federation - so that Keycloak server knows where to look for users’ authentication
Verify SafeNetKeycloakAgent Installation
Installation of SafeNetKeycloakAgent
adds three new authentication flows. Perform the following steps to verify if the SafeNetKeycloakAgent
is properly installed:
-
Go to the previously created realm, Select Authentication from the left pane.
-
In the right pane, click Flows.
-
Check the drop-down list under Flows tab, this should list the following options:
- Safenet OTP Flow
- SafeNet OTP UserIdProvided Flow
- SafeNet LDAP OTP Flow