Enable user registration
If users (successfully) log in to your portal via an identity provider, you have the option to create these users in the Intrexx user management if the user does not yet exist in Intrexx or to change the user data if the user already exists in Intrexx.
The creation or modification of an Intrexx user is carried out via two Groovy scripts, which are executed when the user registration for a provider is activated. The Groovy scripts are configured via the "Binding: Web" dialog box.
Step-by-step guide
Proceed as follows to set up the user registration for new or existing Intrexx users:
-
Click on the
icon (Edit Groovy scripts).
(How to access the dialog box is described in section Entering ID provider data in the user administration )
The "Edit Groovy scripts" dialog box is displayed.
Using the
buttons, you can create a Groovy script for the registration of a new Intrexx user or the modification of an existing Intrexx user.If a Groovy script has not yet been created, a sample script is inserted when the script editor is opened.
Register new Intrexx user
After successfully logging in to the portal, an Intrexx user is created if it does not yet exist. The Groovy user management API can be used for this purpose in the Groovy script. The accessTokenDetails variable can be used to query the ID token details and the access token for HTTPS requests.
The script is saved in the file internal/cfg/oauth2_user_registration.groovy.
Change existing Intrexx user
The script is saved in the file internal/cfg/oauth2_user_update.groovy.
The Groovy scripts are defined for all providers. If necessary, the provider type can be queried in the script with accessTokenDetails["idp"].
-
Click on the
button.The Intrexx Editor is displayed.
-
Edit the script.
-
Click on "OK".
You will return to the "Edit Groovy scripts" dialog box.
You have now set up the user registration.
More information