|
|
@ -1666,9 +1666,10 @@ def test_enable_token_exchange(admin: KeycloakAdmin, realm: str): |
|
|
|
scope_id=token_exchange_permission_id, |
|
|
|
) |
|
|
|
|
|
|
|
# Create permissions on the target client to reference this policy |
|
|
|
# Create permissions on the target client to reference this policy |
|
|
|
admin.create_client_authz_scope_permission( |
|
|
|
payload={ |
|
|
|
"id": token_exchange_permission_id, |
|
|
|
"name": "test-permission", |
|
|
|
"type": "scope", |
|
|
|
"logic": "POSITIVE", |
|
|
@ -1677,7 +1678,7 @@ def test_enable_token_exchange(admin: KeycloakAdmin, realm: str): |
|
|
|
"scopes": [token_exchange_scope_id], |
|
|
|
"policies": [client_policy_id], |
|
|
|
}, |
|
|
|
client_id=realm_management_id, |
|
|
|
client_id=realm_management_id |
|
|
|
) |
|
|
|
permission_name = admin.get_client_authz_scope_permission( |
|
|
|
client_id=realm_management_id, scope_id=token_exchange_permission_id |
|
|
|