8000 For external-to-internal token exchange when using the userinfo endpoint, information from access or ID token can't be extracted · Issue #37988 · keycloak/keycloak · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
For external-to-internal token exchange when using the userinfo endpoint, information from access or ID token can't be extracted #37988
Closed
@ahus1

Description

@ahus1

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

token-exchange

Describe the bug

When I set up external-to-internal token exchange for an access token that is a JWT, or an ID token, and use the userinfo endpoint to validate the token, the claims from the token are not available for mappers as they are not put to the context.

Version

main

Regression

  • The issue is a regression

Expected behavior

The access token (if it is a JWT and an access token is exchanged) or the ID token (if an ID token is exchanged) should be available for mappers.

This is essential for example for EntraID, where an access token contains all the information for oid and tid, while the information returned from the user info endpoint does not.

Actual behavior

They are not available for mappers. Only attributes from the user info endpoint are available.

How to Reproduce?

Set it up as above. Test it with a claim that is present in the ID or access token, but is not shown in the user info endpoint.

Anything else?

I'll create a PR.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0