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

Bearer authoirzation scheme may have more than one space #1

Open
tanguilp opened this issue Feb 6, 2020 · 0 comments
Open

Bearer authoirzation scheme may have more than one space #1

tanguilp opened this issue Feb 6, 2020 · 0 comments

Comments

@tanguilp
Copy link

tanguilp commented Feb 6, 2020

In https://github.com/bechurch/auth0_jwks/blob/3584412a04ae8c5a1ed3be221cf51134db294155/lib/plug/validate_token.ex#L15, only one space is parsed but according to the HTTP specifications there can be more.

This could be a problem if the auth0 changed their request, while still being compliant.

See also: https://github.com/tanguilp/apiac_auth_bearer/blob/master/lib/apiac_auth_bearer.ex#L326

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

No branches or pull requests

1 participant