-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Labels
area/token-exchangearea/token-exchange/federatedIssues related to federated token exchange (external-internal or internal-external)Issues related to federated token exchange (external-internal or internal-external)kind/enhancementCategorizes a PR related to an enhancementCategorizes a PR related to an enhancementpriority/lowteam/core-clients
Description
Description
At the moment it is not possible to do an internal to external token-exchange with a refresh token issued by an IDP, when providing subject_token_type=urn:ietf:params:oauth:token-type:refresh_token. The error subject_token_type invalid is returned.
Discussion
No response
Motivation
I want to be able to exchange a refresh token of an IDP for a Keycloak token.
Details
Implementation Idea:
In the current implementation, where only an access_token is exchanged, the userinfo endpoint of the IDP is called with this token directly. In order to enable this for refresh_tokens an easy implementation could be to first try to use the refresh_token grant against the IDP to query an access_token that could then be used to call the userinfo endpoint.
kevin-netcetera, enastevska and Luegg
Metadata
Metadata
Assignees
Labels
area/token-exchangearea/token-exchange/federatedIssues related to federated token exchange (external-internal or internal-external)Issues related to federated token exchange (external-internal or internal-external)kind/enhancementCategorizes a PR related to an enhancementCategorizes a PR related to an enhancementpriority/lowteam/core-clients