Sign in with Keycloak

  • For IT
  • Bugsoft Portal 4.12.14

Connect your own Keycloak with OpenID Connect, with groups or roles, also on your own network.

Set it up

  1. In Admin › Settings › Sign-in › Connections, under Add another sign-in system, choose the protocol OpenID Connect and, under Which system?, Keycloak and a name for the button.
  2. In Keycloak, in your realm, create a Client of the type OpenID Connect, with Client authentication on and Standard flow.
  3. Under Valid redirect URIs, enter the redirect URI that Connections shows. Under Valid post logout redirect URIs, enter https://portal.klaverveld.example/auth/logged-out.
  4. For groups: in the client, under Client scopes › Dedicated scope, add a Group Membership mapper with the claim name groups. Switch off Full group path if you only want the name. To use realm roles instead, enter realm_access.roles under the claims on Connections.
  5. On Connections, enter the issuer. This is the address of the realm, for example https://login.klaverveld.example/realms/winkels. Also enter the client ID and the client secret (tab Credentials).
  6. Choose Save and test, and switch the system on.

Does Keycloak run on an internal address? Then switch on Is on the own network. Otherwise Bugsoft Portal is not allowed to reach it, for security reasons.

Make sure the realm signs ID tokens with an RSA key (RS256). This is the default in Keycloak.

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