Reputation: 60438
I am implementing Google authentication into my JavaScript web application. I would like to use the authentication code flow as described here.
What I want to do is...
access_token
The first 2 parts working perfectly as expected but I cant get 3. to work.
I call https://www.googleapis.com/oauth2/v3/token
from my backend posting the code
, client_id
, client_secret
, redirect_uri
and grant_type
(authorization_code). This works well, I checked it with fiddler (a web debugging tool). However I always get unauthorized_client
as a result.
Any ideas?
Upvotes: 0
Views: 3721
Reputation: 60438
After a lot of testing and reading i finally got it.
Now it works great.
Upvotes: 1