-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Error Response is not OAuth2 compliant #958
Comments
Also, the state query parameter ist missing in error responses. The RFC states:
|
Thanks both. I will aim to look at this this evening. |
just to clarify, this seems to apply only to the following grant types:
The error responses for the following grant types do not require the
(both link to section 5.2 in the spec for the error response) |
@lordrhodos tha’s right. Broadly speaking, the |
@Spomky speaking spec language is an own skill I guess 😉 From what I understand this library does not support OIDC (and its erlated response types), nevertheless this should be fixed. What I wonder is how the inclusion of the @Sephster do you have any opinion about it? Currently the |
Yeah you are right that we don't currently implement OIDC so this shouldn't be a concern for us and we should just adhere to the already implemented RFCs. At the moment the exceptions are static so I think it would be best if we just pass state in as an argument to the relevant method when applicable and make this argument optional. |
@marc-mabe had submitted a PR to fix the error_description which I had initially accepted but I think it will likely be reverted. Adding my comment here so others can see and generate some discussion:
|
@Sephster I don't fully get your concerns From your comment:
spec
What does the current |
Sorry @marc-mabe I need to do a bit more reading on this. I initially thought that I need to take a step back and check all the places this change will apply but now expect I won't revert this as my previous assertion wasn't correct. Please bear with me while I look into this further 👍 |
Looks good to me. It is being used by all grants so happy to leave in. I will roll out a release shortly. Thank you |
Need to force |
On Issuing an Access Token the OAuth 2.0 Server produces an error response like:
with optional
hint
in some cases.Specs compliant would be an error response like:
error_uri
anderror_description
are optional.From the specs (https://tools.ietf.org/html/rfc6749#section-5.2):
The text was updated successfully, but these errors were encountered: