A Keycloak Mapper that maps Keycloak groups to Vikunja teams. The mapper allows configuration of specific attributes on groups to configure whether
- Teams are public
- How the teams are named
- Which description teams have
This mapper is compatible with Vikunja 0.25 onwards.
Place the generated jar-file into the Keycloak deployments folder.
In the Keycloak Quarkus distribution it is located at /opt/keycloak/providers
.
To activate the mapper, you must configure it for your clients.
As an example, we add the mapper to the vikunja
client.
- Go to the Admin Console, select your client.
- Go to
Client Scopes
. - Click on the
dedicated
scopes entry (should be the first one). - Select
Add Mapper
andBy Configuration
. - Select
Vikunja team mapper
. - Fill in the configuration form. Fill in (or use the default) attribute names on groups.
- Click
Save
. - Go to a group of your choice.
- Select the
Attributes
tab. - Fill in the key for the team name, you configured in your mapper configuration form. Choose a name as value.
- Click
Save
.
Now, your ID token should include the name of the group you chose.
You may add the other keys to a group as well. However, only a group with a filled in name will be synced to Vikunja.
It is safe to change the values of all Vikunja attributes on groups (even names) as they are synced via the Keycloak Group ID.