mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2026-11-25 18:33:46 +00:00
keycloak_userprofile: support required.scopes
Keycloak can require a user profile attribute only when one of the given client scopes is requested, but the module's argument spec only accepted required.roles and rejected required.scopes.
This commit is contained in:
@@ -107,3 +107,22 @@ config_unmanaged_attributes_admin_view:
|
||||
kc_user_profile_config:
|
||||
- unmanagedAttributePolicy: ADMIN_VIEW
|
||||
attributes: "{{ attributes_default }}"
|
||||
|
||||
attributes_required_by_scope:
|
||||
- name: requiredByScope
|
||||
displayName: requiredByScope
|
||||
required:
|
||||
roles:
|
||||
- user
|
||||
scopes:
|
||||
- profile
|
||||
permissions:
|
||||
view:
|
||||
- admin
|
||||
- user
|
||||
edit: []
|
||||
multivalued: false
|
||||
|
||||
config_required_by_scope:
|
||||
kc_user_profile_config:
|
||||
- attributes: "{{ attributes_default + attributes_required_by_scope }}"
|
||||
|
||||
Reference in New Issue
Block a user