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

Granting access token type authorization_code getting error invalid_client #106

Open
iceteahh opened this issue Oct 14, 2014 · 1 comment

Comments

@iceteahh
Copy link

Im using django-oauth2-provider to build a authorization server. When i try to get access_token by using this command:

curl -d "client_id=513204402d4b4f4d62e2&grant_type=authorization_code&response_type=code" http://127.0.0.1:8000/oauth2/access_token

i got an error: invalid_client

I have been created my client with client_type is Confidential How can i fix it?

@iceteahh iceteahh reopened this Oct 14, 2014
@woile
Copy link

woile commented Oct 22, 2014

Hi, i see that you haven't add any client_secret to that request, could that be de problem? (i was having a similar problem but with refresh_token). I would recommend you to check the tests:
https://github.com/caffeinehit/django-oauth2-provider/blob/master/provider/oauth2/tests.py

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