This is the authentication script to authenticate Gluu against privacyIDEA.
- Download the v0.1 jar-with-dependencies from here.
- Change the name to
java_sdk.jarand put it in/opt/gluu-server/opt. - Alternatively put the file under any name anywhere in
/opt/gluu-server/and configure the path later.
-
Create a new Person Authentication script, choose file and enter the path to the
.pyfile like explained above or choose database and paste its contents. -
Add a new attribute with the key
privacyidea_urland the url to the privacyIDEA Server as value. -
If the java sdk is not in the above mentioned default location, add the key
sdk_pathwith the path to the file including its compelete name as value.
realmspecify a realm that will be appended to each request.sslverifyset to0to disable peer verification.log_from_sdkwith any value: enable the logging of the jar.
By default, the password from the first step is verified by the Gluu server and the OTP from the second step is sent to and verified by privacyIDEA. To use challenge-reponse type token, use the following configuration options:
-
sendpasswordset to1if the password and username from the first step should be sent to the privacyIDEA server. This setting takes precedence overtriggerchallenge. -
triggerchallengeset to1if challenges for the user should be triggered using the service account. -
serviceaccountnamename of the service account to trigger challenges with. -
serviceaccountpasspassword of the service account to trigger challenges with. -
serviceaccountrealmoptionally set the realm in which the service account can be found if it is different from therealmor default realm. -
disablegluupassset to1to disable the password verification of the Gluu server. This can be useful if the password should be verified by privacyIDEA in conjunction with thesendpasswordsetting. -
After finishing the configuration, change the default authentication method to the Person Authentication script you just created.
- The logfile for scripts is located at
/opt/gluu-server/opt/gluu/jetty/oxauth/logs/oxauth_script.log.