mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2026-11-21 14:48:50 +00:00
Port integration tests from community.general keycloak modules into the keycloak collection molecule test framework (keycloak_modules scenario), adapting for KC 26.x behavioral changes and middleware module differences. Ported modules: keycloak_authentication, keycloak_authz_authorization_scope, keycloak_authz_permission, keycloak_client, keycloak_client_rolescope, keycloak_client_scope_rolemappings, keycloak_client_scope_type, keycloak_clientsecret_info, keycloak_clientsecret_regenerate, keycloak_component_info, keycloak_group, keycloak_group_rolemapping, keycloak_identity_provider, keycloak_modules_authentication, keycloak_realm, keycloak_realm_key, keycloak_realm_users_info, keycloak_role, keycloak_user, keycloak_user_federation, keycloak_user_rolemapping, keycloak_userprofile. KC 26.x adaptations: - serviceAccountsEnabled defaults to true on new clients - Default Policy/Resource no longer auto-created for authz clients - Built-in admin role rejects PUT updates (403) - Invalid credentials return HTTP 400 instead of 401 - LDAP federation no longer auto-creates mappers Other fixes: - Variable collision avoidance (role/group/client register overwriting play-level vars via include_vars) - Ansible 2.19+ native Jinja dict handling (endpoint combine filter) - Jinja embedded template warnings in assert expressions - Auth fallback prevention in invalid-token tests
110 lines
2.3 KiB
YAML
110 lines
2.3 KiB
YAML
---
|
|
attributes_default:
|
|
- name: username
|
|
displayName: "${username}"
|
|
validations:
|
|
length:
|
|
min: 3
|
|
max: 255
|
|
usernameProhibitedCharacters: {}
|
|
up_username_not_idn_homograph: {}
|
|
annotations: {}
|
|
permissions:
|
|
view:
|
|
- admin
|
|
- user
|
|
edit: []
|
|
multivalued: false
|
|
- name: email
|
|
displayName: "${email}"
|
|
validations:
|
|
email: {}
|
|
length:
|
|
max: 255
|
|
annotations: {}
|
|
required:
|
|
roles:
|
|
- user
|
|
permissions:
|
|
view:
|
|
- admin
|
|
- user
|
|
edit: []
|
|
multivalued: false
|
|
- name: firstName
|
|
displayName: "${firstName}"
|
|
validations:
|
|
length:
|
|
max: 255
|
|
personNameProhibitedCharacters: {}
|
|
annotations: {}
|
|
required:
|
|
roles:
|
|
- user
|
|
permissions:
|
|
view:
|
|
- admin
|
|
- user
|
|
edit: []
|
|
multivalued: false
|
|
- name: lastName
|
|
displayName: "${lastName}"
|
|
validations:
|
|
length:
|
|
max: 255
|
|
person_name_prohibited_characters: {}
|
|
annotations: {}
|
|
required:
|
|
roles:
|
|
- user
|
|
permissions:
|
|
view:
|
|
- admin
|
|
- user
|
|
edit: []
|
|
multivalued: false
|
|
|
|
attributes_additional:
|
|
- name: additionalAttribute
|
|
displayName: additionalAttribute
|
|
group: user-metadata
|
|
required:
|
|
roles:
|
|
- user
|
|
permissions:
|
|
view:
|
|
- admin
|
|
- user
|
|
edit: []
|
|
multivalued: false
|
|
|
|
groups_default:
|
|
- name: user-metadata
|
|
displayHeader: User metadata
|
|
displayDescription: Attributes, which refer to user metadata
|
|
|
|
config_default:
|
|
kc_user_profile_config:
|
|
- attributes: "{{ attributes_default }}"
|
|
groups: "{{ groups_default }}"
|
|
|
|
config_updated:
|
|
kc_user_profile_config:
|
|
- attributes: "{{ attributes_default + attributes_additional }}"
|
|
groups: "{{ groups_default }}"
|
|
|
|
config_unmanaged_attributes_enabled:
|
|
kc_user_profile_config:
|
|
- unmanagedAttributePolicy: ENABLED
|
|
attributes: "{{ attributes_default }}"
|
|
|
|
config_unmanaged_attributes_admin_edit:
|
|
kc_user_profile_config:
|
|
- unmanagedAttributePolicy: ADMIN_EDIT
|
|
attributes: "{{ attributes_default }}"
|
|
|
|
config_unmanaged_attributes_admin_view:
|
|
kc_user_profile_config:
|
|
- unmanagedAttributePolicy: ADMIN_VIEW
|
|
attributes: "{{ attributes_default }}"
|