-
-
Notifications
You must be signed in to change notification settings - Fork 364
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
OAuth2 access request handler doesn't URL-decode basic auth #182
Labels
bug
Something is not working.
Comments
I've tried it here but it caused issues (demo didn't work with postman iirc) which is why the change was reverted. |
I remember now why I reverted, the golang library itself does not seem to do it:
which could probably considered a bug? |
aeneasr
pushed a commit
that referenced
this issue
Jun 21, 2017
aeneasr
pushed a commit
that referenced
this issue
Jun 21, 2017
budougumi0617
added a commit
to budougumi0617/fosite
that referenced
this issue
May 10, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Per RFC 6749 section 2.3.1, the base64-encoded client ID and client secret must also be URL-encoded:
The code makes a reference to this requirement:
but does not decode values. Go's
http.Request.BasicAuth()
does not URL-decode the username and password components; I believe this requirement is specific to RFC 6749 and not part of RFC 2617.If RFC 6749-compliant clients try to authenticate to Hydra with client IDs and secrets that contain characters that need URL escaping, they will fail.
The text was updated successfully, but these errors were encountered: