Elimity Insights supports single sign-on (SSO) using the OpenID Connect (OIDC) protocol.
To set up SSO, you will need an identity provider such as Azure AD or Google Workspace. To then configure single sign-on (SSO) for Elimity Insights, follow these steps:
- Obtain the necessary OIDC details from your provider. Elimity Insights requires the following information: OIDC provider URL, OIDC client ID and OIDC client secret. The sections below
-
Update the Elimity Insights configuration files. You need to provide the OIDC details in the files
config/elimity.ymlandconfig/secrets.yml.- In
config/elimity.yml:- Set
EnablePasswordAuthenticationtofalse. - Set
EnableOIDCAuthenticationtotrue. - Provide the OIDC provider URL and client ID in the
OIDCProviderandOIDCClientIDfields, respectively. The format ofOIDCProvideris the URL of the OIDC discovery document minus ".well-known/openid-configuration".
- Set
- In
config/secrets.yml:- Provide the client secret in the
OIDCClientSecretfield.
- Provide the client secret in the
- In
- Restart the Elimity Insights server.
Once you have completed these steps, SSO will be enabled for Elimity Insights. Users will be able to log in using their SSO credentials.
Setting up SSO with Entra ID (Azure AD)
To obtain a SSO endpoint in Entra ID, log in to the Azure portal, open Microsoft Entra ID and perform the following steps:
Step 1: Create an App Registration
- Select Add > App registration.
- Enter a name for the application.
- Select Web from the Select a platform drop-down list.
- As redirect URL, fill in an URL of the following format:
https://<your-elimity-domain>/api/oidc/callbackfield. Example:https://contoso.elimity.com/api/oidc/callback - Select Register.
- Note down (copy-paste) the Application (client) ID and Directory (tenant ID) for later on.
- If needed, grant admin consent for the delegated permissions "View users' email address" and "Sign users in" (delegated permission on the claim value "user.read").
Step 2: Create the application secret
- Open the Certificates & secrets view for the newly created application. There is a link to this on the Overview page of the application.
- Select New client secret.
- Enter a description (simply a label) in the Description field.
- Select a duration from the Expires drop-down list.
- Select Add to create the client secret.
- Note down (copy-paste) the given secret from the Value column for later on.
Step 3: Configure Elimity Insights
Update the configuration files of Elimity Insights as described above. The necessary values are:
- OIDCProvider: https://login.microsoftonline.com/<tenant-id>/v2.0
- Notice: no trailing slash
- OIDC client ID: the Application (client) ID provided at the end of Step 1
- OIDC client secret: the secret provided at the end of Step 2
Setting up SSO with Google Workspace
To obtain a SSO endpoint in Google Workspace, follow the following steps.
Step 1: Create an OAuth 2.0 Client
Follow the steps described in
https://support.google.com/cloud/answer/6158849 to set up a new OAuth 2.0 endpoint for SSO. The parameters to use are:
- Create Credentials: OAuth client ID
- Application type: Web application
- Name: free to choose, e.g., "Elimity Insights"
- Authorized JavaScript origins: none
- Authorized redirect URIs:
https://<your-elimity-domain>/api/oidc/callbackfield. Example:https://contoso.elimity.com/api/oidc/callback - Note down (copy-paste) the Client ID and Client Secret given on the next screen.
Step 2: Configure Elimity Insights
Update the configuration files of Elimity Insights as described above. The necessary values are:
- OIDCProvider: https://accounts.google.com
- Notice: no trailing slash
- OIDC client ID: the Client ID provided at the end of Step 1
- OIDC client secret: the Client Secret provided at the end of Step 1
Comments
0 comments
Please sign in to leave a comment.