Configure role mappings for Keycloak brokering
This guide describes the steps required to configure the APPUiO IdP so that claims from a foreign Keycloak can be used as roles.
In this guide, we use the VSHN SSO as an example.
The example shows how to map groups VSHN employee
and Service APPUiOCloud
to roles in APPUiO IdP.
This guide assumes that you’ve already configured the brokering itself.
This page is meant to be growing and doesn’t contain the final configuration at this time. |
Some steps require that APPUiO Keycloak extensions is installed. |
For the purpose of this guide, we’ll use the following names, adjust as needed:
Key | Description |
---|---|
|
Foreign Keycloak hostname |
|
The display name of the |
|
Realm within APPUiO IdP |
Prerequisites
-
Installed APPUiO IdP
-
Logged in to APPUiO IdP as Administrator
-
Brokering with id.vshn.net configured
-
id.vshn.net provides group memberships of each user in claim
groups
Create roles in APPUiO IdP
-
Select realm appuio-cloud in APPUiO IdP.
-
Create roles with
. For our example, we create rolesvshneer-zone-access
andappuio-zone-access
.
Configure Identity Provider
-
Go to VSHN SSO in "Identity Providers" and select tab "Mappers"
-
Create a new mapper to map group
VSHN employee
to rolevshneer-zone-access
for users logging in via id.vshn.net.Name = vshneer-global-access Mapper type = Claim to Role Claim = groups Claim Value = VSHN employee Role = vshneer-zone-access
-
Create a new mapper to map group
Service APPUiOCloud
to roleappuio-zone-access
for users logging in via id.vshn.net.Name = customer-global-access Mapper type = Claim to Role Claim = groups Claim Value = Service APPUiOCloud Role = appuio-zone-access