Sign in with Keycloak
Connect your own Keycloak with OpenID Connect, with groups or roles, also on your own network.
Set it up
- 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.
- In Keycloak, in your realm, create a Client of the type OpenID Connect, with Client authentication on and Standard flow.
- 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. - 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, enterrealm_access.rolesunder the claims on Connections. - 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). - 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.