Note |
---|
The instructions were generated by following the Administration Console view in version Keycloak 12.0.2. Please refer to Keycloak 20.0.1: How-to for steps using version 20.0.1. |
Create a custom scope
Open the Keycloak administration console
Open the “Client Scopes” tab
Click “Create”
Enter the following information:
Name: modelop_client
Description: A ModelOp custom scope used to distinguish between an OAuth2 client and an end-user
Protocol: openid-connect
Display On Consent Screen: OFF
Include in Token Scope: ON
GUI order:
Click “Save”
Create a user attribute mapper
Info |
---|
Please use this type of mapper when there is an LDAP attribute containing the user’s group(s) |
...
Open the “Settings” tab
Click “Synchronize all users”
Create a hardcoded attribute mapper
Info |
---|
Please use this type of mapper when there is no LDAP attribute containing the user’s group(s) |
...
Open the Keycloak administration console
Open the “User Federation” tab
Select the LDAP provider
Open the “Mappers” tab
Click “Create”
Enter the following information:
Name: modelOpGroups
Mapper Type: hardcoded-attribute-mapper
User Model Attribute Name: memberOf
Attribute Value: modelop
Click “Save”
...
Official Keycloak Resources
The following links from the official Keycloak documentation are excellent resources that cover the topics and settings required for ModelOp Center:
...