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

Invalid grant #82

Open
ghost opened this issue May 28, 2014 · 4 comments
Open

Invalid grant #82

ghost opened this issue May 28, 2014 · 4 comments

Comments

@ghost
Copy link

ghost commented May 28, 2014

I'm facing this issue every time I make POST request to /oauth2/access_token. This is my scenario:
I successfully integrated the provider and created a client from the admin console, without specifying any redirect uri because i'm working on localhost and I don't have any website yet. Now, if I try to get an access token at the specified url, I will get the token only if I make the request specifying username and password of an user which is admin. For any other user I will get "error: invalid grant". I tried every kind of solution but nothing seems to work.
I also noticed a strange thing: when I get the access token with the admin user, no grant and refresh token are created in the database...is this a normal behaviour?
I can't get this to work so how can I solve the problem?

@caisbalderas
Copy link

+1

@gio82
Copy link

gio82 commented Jul 1, 2014

Did you find a solution?

@pySilver
Copy link

pySilver commented Jul 2, 2014

@ValerioRusso you should take a look at oauth2 specification. public token does not mean to have refresh tokens.

@nickspacek
Copy link

For me, I just had the password I was posting wrong.

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