OpenID Settings¶
Using these settings we can add OpenID configuration to allow logging into the FAIR Wizard via external identity provider.
FAIR Wizard supports Microsoft Azure as well as any other OpenID providers. Following are detailed description of the setups for both of these options.
Note
After setting a new OpenID service, we should directly test it and verify that the configuration works well. For that, we can simply open our FAIR Wizard in a new anonymous window of the web browser.
Microsoft Azure Setup¶
Go to https://portal.azure.com/.
Go to
App registrations.Click on
New registration.Fill in a name.
Select
Accounts in this organizational directory only (Single tenant).Keep
Redirect URIempty.Click on
Register.Copy and store
Directory (tenant) IDandApplication (client) ID.Click on
Managein the left menu →Certificates & Secrets.Click on
New client secret.Fill description, set
Expiresand note it somewhere, then click onAdd.Copy
Valueand store it somewhere. You will not able to view it again.Go to OpenID in FAIR Wizard:
Admin Center→Settings→Organization OpenID→Create.Fill in a
Nameof the service. This name will be used to identify the service in the list of login options, so it should be something descriptive.- Open the
Microsofttab and fill in : Application (client) IDDirectory (tenant) IDClient Secret→<stored secret value>
- Open the
(optional) fill Icon (
fab fa-microsoft, or some other from Font Awesome),Background ColorandText Color.Click on
Save.Go back to Microsoft Azure.
Click on
Managein the left menu →Authentication (Preview).Click on
Add Redirect URI.Click on
Web.Copy
Redirect URIandFront-channel logout URLfrom FAIR Wizard.Do not check any checkbox.
Click on
Configure.Click on
Managein the left menu →API permissions.Click on
Add a permission.Click on
Microsoft Graph→Delegated permissions.Under
OpenId permissionscheckemail,openidandprofile. UnderUserkeep checkedUser.Read.Click on
Add permissions.Click on
Managein the left menu →Token configuration.Click on
Add optional claim.Select
IDand checkemail,family_nameandgiven_name.Click on
Add.Test your OpenID configuration in FAIR Wizard (You might need to refresh the login page for the login button to appear).
Example configuration of OpenID Microsoft Azure service.¶
Custom Setup¶
Go to OpenID in FAIR Wizard:
Admin Center→Settings→Organization OpenID→Create.Fill in a
Nameof the service. This name will be used to identify the service in the list of login options, so it should be something descriptive.Open the
Customtab.- Prepare the client application on the side of OpenID service:
Obtain
Client IDandClient Secret.Obtain OpenID endpoint
URL(we may get one ending with/.well-known/openid-configuration, if so we just use the part before this suffix).
Go back to FAIR Wizard and fill in
Client ID,Client Secret, andURLfrom our OpenID client together with optionalParameters(usually not needed).Click on
Save.- On the side of OpenID service, use
Callback URL(and optionallyLogout URL) to create the client. Configure the client to have the following claims:
openid,profile,email.Configure the client to provide the following details in ID tokens:
email,given_name,family_name.
- On the side of OpenID service, use
(optional) fill Icon (some from Font Awesome),
Background ColorandText Color.Test your OpenID configuration in FAIR Wizard (You might need to refresh the login page for the login button to appear).
Automations¶
We can use the Create automation button to add some extra steps after users use this login option. There are two tabs. Configuration, where we can set up automation using the Integration SDK and Logs where we can see logs of the automation. The automation can have its name changed and it can be enabled or disabled. See details in Automations.
Note
There can be only one automation per login configuration. However, multiple actions can be set up within a single automation script.