-
Notifications
You must be signed in to change notification settings - Fork 6k
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
OAuth2AccessTokenResponseBodyExtractor should support Object values #6087
Labels
in: oauth2
An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)
type: bug
A general bug
Milestone
Comments
raphaelDL
added a commit
to raphaelDL/spring-security
that referenced
this issue
Nov 15, 2018
This commit ensures the token response is parsed correctly if the values are not a String. Fixes: spring-projectsgh-6087
rwinch
pushed a commit
that referenced
this issue
Nov 15, 2018
This commit ensures the token response is parsed correctly if the values are not a String. Fixes: gh-6087
Thanks for the report @hfgbarrigas! This is now fixed in master with a PR from @raphaelDL (thanks for the PR!). The code was also backported to 5.1.x via #6100 |
Great. Is there a snapshot to test? |
jer051
pushed a commit
to jer051/spring-security
that referenced
this issue
Nov 21, 2018
This commit ensures the token response is parsed correctly if the values are not a String. Fixes: spring-projectsgh-6087
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
in: oauth2
An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)
type: bug
A general bug
Summary
When dealing with additional information in the token response (<String, Object>) jackson throws an exception. Looking at OAuth2AccessTokenResponseBody class to extract the OAuth2AccessTokenResponse:
Looks like Map<String, String> is forced and values other than strings cannot be parsed. Down below on parse (line 66) new JSONObject() can deal with Map<String, ?>.
Actual Behavior
Exception thrown on jackson.
Expected Behavior
Token example shown above should be parsed correctly and OAuth2AccessTokenResponse correctly constructed.
Version
5.1.3.BUILD-SNAPSHOT
Sample
https://github.com/hfgbarrigas/oauth2client-webflux-error-sample
The text was updated successfully, but these errors were encountered: