HI - I am working on oauth changes. we have a web app with its own client 
id and client secret and we have andorid and ios with its own client id and 
secret. User can grant additional scopes in mobile that are visible in the 
user account on the google. However web app is not aware of the new scopes. 
So IOS tried to generate a auth code for server to retrieve a new api 
refersh token and access token using server client id. However when we try 
to invoke the token endpoint with the authcode it gives a bad request 
error. we want to be able to refresh api token that has information about 
the new scopes granted by user.

curl -X POST https://oauth2.googleapis.com/token \
-d "client_id=xxxxxx" \
-d "client_secret=xxxxxxx" \
-d "code=xxxxx" \
-d "grant_type=authorization_code" \
-d "redirect_url="


{
  "error": "invalid_grant",
  "error_description": "Bad Request"
}

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/cb1defe7-00ae-4aea-be46-30cbe0defd36n%40googlegroups.com.
  • sh... Pratik Gavand
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to