Skip to content
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

Use fragment for error response on implicit grant #1298

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

hafezdivandari
Copy link

@hafezdivandari hafezdivandari commented Sep 8, 2022

According to RFC 6749 on error response of the implicit grant, the authorization server should add parameters to the fragment component of the redirection URI.

It's already done for access token response on this line, But not for error response. this PR fixes this issue.

PS: This PR also adds $queryDelimiter property to OAuthServerException class to be used on generateHttpResponse() function. The reason behind this is we know if we should use fragment or not when initiating/throwing the exception but not when generating response.

@Sephster
Copy link
Member

Sephster commented Sep 8, 2022

Please can you provide some information about why you want to add this change? Thank you

@hafezdivandari
Copy link
Author

hafezdivandari commented Sep 8, 2022

I added description I hope it is clear enough.

@hafezdivandari
Copy link
Author

Just merged master into this and resolved conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants