-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Token Exchange does not support id_token token type #1880
Comments
@banterCZ Please note that the initial implementation of OAuth 2.0 Token Exchange was intentionally implemented with minimal capability, hence the reason why Unfortunately, there were no examples provided for Our plan is to expand the support as we discover real-world use cases from our users. We're open to enhancements, but we first need to understand the use case. Can you please provide details on your use case and the reason why you would need to exchange an |
The main idea was to exchange a long-lived |
I'll need more detail as this doesn't appear to be a valid use case at this point. FYI, if you need a shorter-lived
What do you mean by limited scope? Please provide specific details for your use case. |
This is the issue I submitted, but it was closed. |
@chenzhenjia I don't see how gh-1866 is related to this issue? The UserInfo endpoint accepts an access token NOT an ID Token. This issue is specific to exchanging an ID Token. If you have further comments, please comment in gh-1866. |
Hello @jgrandja , The scenario for the Token Exchange of
|
@zcgandcomp Thanks for the details.
This does not appear to be a valid use case as clients are not intended to send ID tokens to a Resource Server (newsletter subscription service). I'm curious, why are you sending an ID Token instead of an access token to the resource server? Why can't you send an (exchanged) access token with limited scope? |
Spring Authorization Server supports the Exchange Token feature; introduced in #60
According to RFC 8693, the token type
id_token
is valid, but not supported by OAuth2TokenExchangeAuthenticationConverter, which accepts onlyjwt
andaccess_token
.Moreover, the class is final without any extension points. Right now, the whole
AuthenticationConverter
has to be implemented.The same situation is for OAuth2TokenExchangeAuthenticationProvider, that always issues an access token.
I already asked at StackOverflow, but it seems that it is more of a feature request than just a question.
The text was updated successfully, but these errors were encountered: