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

Inconsistent token_type values 'bearer' and 'Bearer' #98

Open
bambeusz opened this issue May 16, 2017 · 1 comment
Open

Inconsistent token_type values 'bearer' and 'Bearer' #98

bambeusz opened this issue May 16, 2017 · 1 comment

Comments

@bambeusz
Copy link

Problem:
There is inconsistency in token type value. In header name Bearer is required, but while creating access token bearer is used by default. This leads to problem described here:
FriendsOfSymfony/FOSOAuthServerBundle#180

class OAuth2\OAuth2 line 181:

    const TOKEN_BEARER_HEADER_NAME = 'Bearer';

class OAuth2\Oauth2 line 259:

    const TOKEN_TYPE_BEARER = 'bearer';

Suggestion:
change default value of TOKEN_TYPE_BEARER field to Bearer

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

2 participants