keycloak/keycloak

Incorrect documentation for Direct Naked Impersonation Configuration

Ouverte

#35 902 ouverte le 13 déc. 2024

 (2 commentaires) (6 réactions) (0 personne assignée)Java (8 346 forks)batch import
area/docsarea/token-exchangearea/token-exchange/subject-impersonationhelp wantedkind/bugpriority/normalstatus/auto-bumpteam/core-clients

Métriques du dépôt

Stars
 (34 398 étoiles)
Métriques de merge PR
 (Merge moyen 6j 19h) (384 PRs mergées en 30 j)

Description

Before reporting an issue

  • I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

Area

docs

Describe the bug

In the documentation for the Direct Naked Impersonation it is shown that the Client Policy must be added to the user-impersonated permission (containing the user-impersonated scope) which does not work and results in an error - Client not allowed to exchange.

Upon testing with the client policy applied to the admin-impersonating permission, it works.

It would be great if we can fix this as there are some threads on stackoverflow about this, too. Also, it would be great if we can include a little more information about the difference between the two permissions (and scopes).

https://www.keycloak.org/securing-apps/token-exchange#_direct_naked_impersonation

Version

26.0.7

Regression

  • The issue is a regression

Expected behavior

Correct configurations for both permissions.

Actual behavior

Incorrect configurations for both permissions.

How to Reproduce?

N/A

Anything else?

No response

Guide contributeur