Update sp_role_mappings_provider_element.adoc
Additional information on spaces in role mappings and unicode replacements
This commit is contained in:
parent
686e2ce99c
commit
af4cda7d9b
1 changed files with 6 additions and 0 deletions
|
@ -86,6 +86,12 @@ assigned to the principal will be `roleC`, `roleX`, `roleY` and `roleZ` because
|
|||
and `roleY`, `roleB` was mapped into an empty role - thus being discarded, `roleC` is used as is and finally an additional role
|
||||
was added to the `kc_user` principal (`roleZ`).
|
||||
|
||||
Note: to use spaces in role names for mappings, use unicode replacements for space. For example, incoming 'role A' would appear as:
|
||||
[source]
|
||||
----
|
||||
role\u0020A=roleX,roleY
|
||||
----
|
||||
|
||||
====== Adding Your Own Role Mappings Provider
|
||||
|
||||
To add a custom role mappings provider one simply needs to implement the `org.keycloak.adapters.saml.RoleMappingsProvider` SPI.
|
||||
|
|
Loading…
Reference in a new issue