Keycloak
Use these instructions to set up Keycloak as your SSO provider for Tonic Structural.
Keycloak configuration
Within Keycloak, select the realm to use for your Structural client. Under Clients, click Create client.
On the Create client page, under General Settings:
From the Client type dropdown list, select OpenID Connect.
Enter a Client ID and Name.
Click Next.
On the Capability Config tab, click Save. The details page for the new client displays.
On the Settings tab, under Access settings, enter your Tonic URL information.
Click Client scopes. Each client has a dedicated scope named <client-id>-dedicated
. To configure the scope, click the scope name.
On the Mappers tab, to add a property mapper to the scope, click Configure a new mapper.
In the list of mapper types, click Group Membership.
Under Add mapper, set both Name and Token Claim Name to groups
.
The Full group path toggle affects how child groups appear in Tonic:
When on, child groups display as
parent group/child group
.When off, child groups display as
child group
.
To save the new group membership mapper, click Save.
Tonic configuration
In the Tonic web server container, set the following Tonic environment settings :
TONIC_SSO_PROVIDER
:Keycloak
TONIC_SSO_DOMAIN
:https://my-keycloak-instance
TONIC_SSO_CLIENT_ID
: <Keycloak client ID>TONIC_SSO_REALM_ID
: <Keycloak realm ID>TONIC_SSO_GROUP_FILTER_REGEX:
Identifies the allowed SSO groups for Structural. For details, go to Synchronizing SSO groups with Tonic Structural.
Last updated