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

client_id is needed when using an authorization_code #96

Open
bbalet opened this issue Mar 25, 2017 · 6 comments
Open

client_id is needed when using an authorization_code #96

bbalet opened this issue Mar 25, 2017 · 6 comments

Comments

@bbalet
Copy link

bbalet commented Mar 25, 2017

I don't know if it is a bug or a mistake into Cookbook (Step-By-Step Walkthrough), but when you call this one:

curl -u testclient:testpass http://localhost/token.php -d 'grant_type=authorization_code&code=YOUR_CODE'

It fails. I had to repeat the client_id and it worked.

@alpha1125
Copy link

I could not reproduce OP's issue.

  1. Ran authorized.php in browser gave me back a code
  2. used code in
curl -u testclient:testpass http://walkthrough.local/token.php -d 'grant_type=authorization_code&code=[CODE]'
  1. gave me back a token.

@bbalet
Copy link
Author

bbalet commented Jul 11, 2017

How many clients into your db?

@alpha1125
Copy link

only 1... I was testing it out, haven't used in in more than one scenario now... I'll test out more clients.

@bluebaroncanada
Copy link
Collaborator

Is this still an issue?

@bshaffer
Copy link
Owner

bshaffer commented Dec 1, 2017

Yes I'm very curious if this was resolved. It could be the apache headers issue (documented here).

@ghost
Copy link

ghost commented Feb 16, 2018

Could it be that you have the OAuth2\OpenID\GrantType\AuthorizationCode grant type instead of OAuth2\GrantType\AuthorizationCode?

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