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

token_type should be case insensitive #674

Merged
merged 4 commits into from
May 7, 2019

Conversation

bungoume
Copy link
Contributor

According to RFC, token_type is case insensitive.
https://tools.ietf.org/html/rfc6749#section-4.2.2

Some softwares check Bearer as case insensitive.
https://github.com/keycloak/keycloak/blob/b478472b3578b8980d7b5f1642e91e75d1e78d16/services/src/main/java/org/keycloak/services/managers/AppAuthManager.java#L50

This pull request allows case insensitive bearer string.

@JonathanHuot
Copy link
Member

JonathanHuot commented May 7, 2019

Hi @bungoume, it looks a simple and useful one. Do you mind to add a simple unit test to confirm it is working as expected ?
That would be great.

@JonathanHuot JonathanHuot added this to the 3.1.0 milestone May 7, 2019
@JonathanHuot JonathanHuot added the OAuth2-Provider This impact the provider part of OAuth2 label May 7, 2019
@bungoume
Copy link
Contributor Author

bungoume commented May 7, 2019

Thank you for confirmation.

I restored the test case (added at #491 and deleted in 07aef4e),
and added simple lowercase test.

Copy link
Member

@JonathanHuot JonathanHuot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OAuth2-Provider This impact the provider part of OAuth2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants