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

Unknown grant "League\OAuth2\Client\Grant\Authorizationcode" #79

Closed
PavelPolyakov opened this issue Apr 29, 2014 · 4 comments
Closed

Unknown grant "League\OAuth2\Client\Grant\Authorizationcode" #79

PavelPolyakov opened this issue Apr 29, 2014 · 4 comments

Comments

@PavelPolyakov
Copy link
Contributor

Currently my ubuntu configuration is not able to find the file https://github.com/thephpleague/oauth2-client/blob/master/src/Grant/AuthorizationCode.php , because it was renamed.

File loading is case sensitive.

image

Please, rename it back, or adjust the load logic.

@philsturgeon
Copy link
Member

I have renamed Authorizationcode to AuthorizationCode which will hopefully help you out.

80c7046

Is there a further problem? Can you highlight it with a test?

@PavelPolyakov
Copy link
Contributor Author

Yes, it had helped.

@younes0
Copy link

younes0 commented May 3, 2014

You might need to update the docs:

        $token = $provider->getAccessToken('authorizationCode', [ /* ... /*];

instead of

        $token = $provider->getAccessToken('authorization_code', [ /* ... /*];

@tsilvia
Copy link

tsilvia commented Jun 21, 2014

I just spent the last hour trying to figure out why using 'authorization_code' was not working. After reading this and changing it to 'authorizationCode' it worked as expected.

Please update the documentation.

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

4 participants