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.jar
and 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
.py
file like explained above or choose database and paste its contents. -
Add a new attribute with the key
privacyidea_url
and the url to the privacyIDEA Server as value. -
If the java sdk is not in the above mentioned default location, add the key
sdk_path
with the path to the file including its compelete name as value.
realm
specify a realm that will be appended to each request.sslverify
set to0
to disable peer verification.log_from_sdk
with 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:
-
sendpassword
set to1
if the password and username from the first step should be sent to the privacyIDEA server. This setting takes precedence overtriggerchallenge
. -
triggerchallenge
set to1
if challenges for the user should be triggered using the service account. -
serviceaccountname
name of the service account to trigger challenges with. -
serviceaccountpass
password of the service account to trigger challenges with. -
serviceaccountrealm
optionally set the realm in which the service account can be found if it is different from therealm
or default realm. -
disablegluupass
set to1
to disable the password verification of the Gluu server. This can be useful if the password should be verified by privacyIDEA in conjunction with thesendpassword
setting. -
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
.