SYNERGY
Chapters

17.4OpenID Connect

Last updated

With OpenID Connect, the platform signs people in through your provider using the authorization code flow with PKCE. As with SAML, the form has two steps.

Step 1 — Register this application

Step 1 — Register this application shows the Redirect URI to add to your provider's app registration, with a Copy button. It has the form <public base>/api/auth/oidc/callback.

The redirect URI must match exactly, including the scheme and any trailing path. Providers reject a sign-in whose redirect URI differs by even one character.

OpenID Connect step 1 — redirect URI
Figure 17-04: OpenID Connect step 1 — redirect URI

Step 2 — Connect your provider

FieldDescription
Authority (issuer URL)The provider's issuer, for example https://login.microsoftonline.com/<tenant id>/v2.0. Must be an https:// URL. The platform reads <authority>/.well-known/openid-configuration, and the issuer that document declares must match this value
Client IDThe application (client) ID from your provider
Display nameShown on the sign-in button, for example "Aurora Logistics" gives "Continue with Aurora Logistics". Leave blank for the generic "Continue with OpenID Connect". Anyone can see the sign-in page, so do not use an internal name
DescriptionYour own note about this provider, for example who owns the tenant. Only shown on this page, never on the sign-in page
Client secretOptional. A public client signs in with PKCE alone; a confidential client also needs a secret. The secret is stored encrypted and never shown again after saving
ScopesSpace-separated. The default is openid profile email. openid is always requested. Keep email so that accounts can be matched and created

When a secret is stored, the form says "A client secret is stored." Leave the box blank to keep it, type a new one to replace it, or select Remove to delete it when you save (the form then says "The stored secret will be removed when you save."; Keep stored secret cancels that).

Under Sign-in:

SettingDescription
Enable OpenID Connect single sign-onShows the OpenID Connect button on the sign-in page. Saving verifies the provider before enabling
Default role for new SSO usersShown once sign-in is enabled. The role given to a person who signs in through OpenID Connect for the first time. If you choose none, or the chosen role is later deleted, the role marked as default under Roles is used

Testing the connection

Test connection fetches the provider's discovery document from the server and checks it; no sign-in takes place. On success the bar shows "Connection verified" with the issuer and the number of signing keys. If the provider does not advertise PKCE with the S256 method, the summary says "PKCE S256 not advertised". On failure, a Connection failed panel gives the reason.

To configure OpenID Connect single sign-on

  1. In the console, with System Admin active, open Integrations > Single sign-on and select OpenID Connect.
  2. In your provider, register an application (in Microsoft Entra: App registrations > New registration) and add the Redirect URI from Step 1 as a Web redirect URI.
  3. If your provider requires it, create a client secret.
  4. Make sure the ID token carries the person's email address. In Microsoft Entra, add the email optional claim, and also the xms_edov optional claim so that the address counts as verified (see First sign-in below).
  5. In the console, under Step 2, enter the Authority (issuer URL) and Client ID, and the Client secret if you created one.
  6. Optionally enter a Display name and Description, and adjust Scopes.
  7. Select Test connection and wait for "Connection verified".
  8. Turn on Enable OpenID Connect single sign-on and choose the Default role for new SSO users.
  9. Select Save configuration.
  10. In a private browser window, open the sign-in page and try the new button.

OpenID Connect step 2 — provider details Single sign-on buttons on the sign-in page

Last updated

Did this page help you?