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
85 lines
2.6 KiB
YAML
85 lines
2.6 KiB
YAML
---
|
|
client_id: myclient
|
|
client_id_2: mynewclient
|
|
|
|
post_logout_redirect_uris:
|
|
- "https://example.com/logout-callback"
|
|
- "https://example.com/signout"
|
|
backchannel_logout_url: "https://example.com/backchannel-logout"
|
|
|
|
redirect_uris1:
|
|
- "http://example.c.com/"
|
|
- "http://example.b.com/"
|
|
- "http://example.a.com/"
|
|
|
|
client_attributes1: {"backchannel.logout.session.required": true, "backchannel.logout.revoke.offline.tokens": false, "oauth2.device.authorization.grant.enabled": true, "client.secret.creation.time": 0}
|
|
|
|
client_attributes2: {"backchannel.logout.session.required": false, "oauth2.device.authorization.grant.enabled": false, "client.secret.creation.time": 0}
|
|
|
|
protocol_mappers1:
|
|
- name: 'email'
|
|
protocol: 'openid-connect'
|
|
protocolMapper: 'oidc-usermodel-property-mapper'
|
|
config:
|
|
"claim.name": "email"
|
|
"user.attribute": "email"
|
|
"jsonType.label": "String"
|
|
"id.token.claim": true
|
|
"access.token.claim": true
|
|
"userinfo.token.claim": true
|
|
|
|
- name: 'email_verified'
|
|
protocol: 'openid-connect'
|
|
protocolMapper: 'oidc-usermodel-property-mapper'
|
|
config:
|
|
"claim.name": "email_verified"
|
|
"user.attribute": "emailVerified"
|
|
"jsonType.label": "boolean"
|
|
"id.token.claim": true
|
|
"access.token.claim": true
|
|
"userinfo.token.claim": true
|
|
|
|
- name: 'family_name'
|
|
protocol: 'openid-connect'
|
|
protocolMapper: 'oidc-usermodel-property-mapper'
|
|
config:
|
|
"claim.name": "family_name"
|
|
"user.attribute": "lastName"
|
|
"jsonType.label": "String"
|
|
"id.token.claim": "true"
|
|
"access.token.claim": "true"
|
|
"userinfo.token.claim": "true"
|
|
|
|
protocol_mappers2_unordered:
|
|
- "{{ protocol_mappers1[2] }}"
|
|
- "{{ protocol_mappers1[1] }}"
|
|
- "{{ protocol_mappers1[0] }}"
|
|
|
|
protocol_mappers3_modifed:
|
|
- "{{ protocol_mappers1[2] }}"
|
|
- name: address
|
|
protocol: openid-connect
|
|
protocolMapper: oidc-address-mapper
|
|
consentRequired: false
|
|
config:
|
|
user.attribute.formatted: formatted
|
|
user.attribute.country: country
|
|
introspection.token.claim: 'true'
|
|
user.attribute.postal_code: postal_code
|
|
userinfo.token.claim: 'true'
|
|
user.attribute.street: street
|
|
id.token.claim: 'true'
|
|
user.attribute.region: region
|
|
access.token.claim: 'true'
|
|
user.attribute.locality: locality
|
|
- name: 'email'
|
|
protocol: 'openid-connect'
|
|
protocolMapper: 'oidc-usermodel-property-mapper'
|
|
config:
|
|
"claim.name": "email"
|
|
"user.attribute": "email"
|
|
"jsonType.label": "String"
|
|
"id.token.claim": true
|
|
"access.token.claim": false
|
|
"userinfo.token.claim": true
|