mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-21 20:59:10 +00:00
keycloak_identity_provider: add claims example for oidc-advanced-group-idp-mapper (#11500)
Add claims example for oidc-advanced-group-idp-mapper For me it wasn't clear how to create claims using oidc-advanced-group-idp-mapper, perhaps other people can benefit from the following example.
This commit is contained in:
parent
88adca3fb4
commit
c9313af971
1 changed files with 29 additions and 0 deletions
|
|
@ -368,6 +368,35 @@ EXAMPLES = r"""
|
||||||
attribute.friendly.name: User Roles
|
attribute.friendly.name: User Roles
|
||||||
attribute.name: roles
|
attribute.name: roles
|
||||||
syncMode: INHERIT
|
syncMode: INHERIT
|
||||||
|
|
||||||
|
- name: Create OIDC identity provider, authentication with credentials and advanced claim to group
|
||||||
|
community.general.keycloak_identity_provider:
|
||||||
|
state: present
|
||||||
|
auth_keycloak_url: https://auth.example.com/auth
|
||||||
|
auth_realm: master
|
||||||
|
auth_username: admin
|
||||||
|
auth_password: admin
|
||||||
|
realm: myrealm
|
||||||
|
alias: oidc-idp
|
||||||
|
display_name: OpenID Connect IdP
|
||||||
|
enabled: true
|
||||||
|
provider_id: oidc
|
||||||
|
config:
|
||||||
|
issuer: https://idp.example.com
|
||||||
|
authorizationUrl: https://idp.example.com/auth
|
||||||
|
tokenUrl: https://idp.example.com/token
|
||||||
|
userInfoUrl: https://idp.example.com/userinfo
|
||||||
|
clientAuthMethod: client_secret_post
|
||||||
|
clientId: my-client
|
||||||
|
clientSecret: secret
|
||||||
|
syncMode: FORCE
|
||||||
|
mappers:
|
||||||
|
- name: group_name
|
||||||
|
identityProviderMapper: oidc-advanced-group-idp-mapper
|
||||||
|
config:
|
||||||
|
claims: '[{"key":"my_key","value":"my_value"}]'
|
||||||
|
group: group_name
|
||||||
|
syncMode: INHERIT
|
||||||
"""
|
"""
|
||||||
|
|
||||||
RETURN = r"""
|
RETURN = r"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue