Another sign-in system (OpenID Connect)

  • For IT
  • Bugsoft Portal 4.12.14

Connect a system other than Microsoft: Auth0, ADFS, OneLogin, Authentik or any other OpenID Connect system.

Add a system

  1. In Admin › Settings › Sign-in › Connections, under Add another sign-in system, choose the protocol OpenID Connect. Under Which system?, choose your system, or Other if it is not in the list. This only fills in a few defaults and the tips; you can change everything later. Then enter the name on the button, for example Klaverveld Winkels. The system stays off for now.
  2. In the sign-in system, create a web application (OpenID Connect, authorization code).
  3. Register the redirect URI that Connections shows, for example https://portal.klaverveld.example/auth/sso/winkels/callback. As the address after sign-out, register https://portal.klaverveld.example/auth/logged-out.
  4. On Connections, enter the issuer exactly as the system names it (an https address). Also enter the client ID, the client secret and the last day of the secret. Bugsoft Portal fetches everything else from /.well-known/openid-configuration.
  5. Choose Save and test. Bugsoft Portal asks the system for its details and keys.
  6. If the test works, switch the system on. Then test signing in once with an ordinary account.
An OpenID Connect system "Klaverveld Winkels": on the left the redirect URI with copy button and the warning about the RSA key, on the right the button label, system type, issuer, client ID, client secret, the switches and who may sign in

Choose an RSA key. Bugsoft Portal only accepts ID tokens signed with an RSA key (RS256). So Authentik without a signing key, and Auth0 apps set to HS256, do not work.

The switches

  • This system checks e-mail addresses itself. Switch it on when the system sends no email_verified but only knows its own, checked addresses (such as ADFS). Off means: an e-mail address that is not confirmed does not get in.
  • This system sends no groups. Switch it on when the system sends no groups (such as Google). Off means: without groups nobody gets in, because Bugsoft Portal would not know the groups.
  • Is on the own network. Switch it on when the system has an internal address. This applies to this system only.
  • Also ask the userinfo endpoint. For details that are not in the ID token.

Groups and attributes

A claim is one piece of information in the ID token, such as the e-mail address. Under Claims (advanced) you choose which claim is what.

  • The person is always sub.
  • The groups are, for example, in groups, roles or realm_access.roles.
  • A claim with its own address (such as https://klaverveld.example/groups at Auth0) is entered exactly as it is named.
  • You can also map department, job title, office (shop), employee number and country. You use these in audiences.

Want to use a group before anyone from it has signed in? In Admin › Audiences › Groups, choose Add a group of the sign-in system. Enter the value exactly as the system sends it. Members are added at their next sign-in. You change the members in the sign-in system.

Notes per system

SystemWhat to watch
Auth0Regular Web Application with RS256. Groups only through an Action that adds a claim with its own address.
ADFSApplication group Server application accessing a web API. No email_verified, so This system checks e-mail addresses itself is on. Groups in the claim group, through a claim rule. Usually on the own network.
OneLoginOpenID Connect app (Web). Token endpoint with Basic or POST. Groups with the scope groups.
AuthentikOAuth2/OpenID provider with an RSA signing key. Groups in groups.

Signing out

Signing out of Bugsoft Portal also signs out of the sign-in system when two things are true: the system has a sign-out address, and the setting Also sign out of the sign-in system (Admin › Settings › Sign-in) is on. This setting applies to every sign-in system. It also applies when someone was signed out because they were inactive for a while.

Confirm it is you asks the system for a fresh sign-in.

Stuck? See Questions and problems or contact Bugsoft at ugurs156@gmail.com.