-
Notifications
You must be signed in to change notification settings - Fork 6k
Some OAuth providers do not comply with specs #5657
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
Comments
@gburboz I just submitted PR #5656 that will provide user's greater flexibility in controlling the processing of the Access Token Request and Access Token Response. In the PR, take a look at I think this will give you the flexibility you need? |
Apologies for the delay but for me to be able to review your PR, I am trying to understand implementation of |
To get this working for LinkedIn , functionality needs to be duplicated for
|
@gburboz In order to customize the Token Response, you only need to provide an implementation of |
Summary
Accommodate popular social platforms that do not comply with OAuth 2.0 specs so that Spring Security OAuth is still usable with those providers. There should be feature available for some of the checks to be explicitly be relaxed at provider configuration.
In below cases, ability to explicitly configure default value when missing can help resolve the issue if client development team chooses to do so.
Error with LinkedIn due to missing
token_type
field in token responseError with StackExchange/StackOverflow due to missing
Content-Type
header in token responseActual Behavior
As per OAuth spec, current validations are being correctly performed, but that hinders our ability to connect with popular social platforms that do not comply.
Expected Behavior
There should be an explicit configuration option available to skip some of the validations to accommodate popular social platforms that do not comply. When option to skip is not set, it should provide error message of why there is non compliance with spec and how to manually override this compliance check using configuration
Version
Spring Security 5
Sample
Following popular social platforms do not comply with OAuth 2.0 and should be accommodate
token_type
field in token responseThe text was updated successfully, but these errors were encountered: