oauth 2.0 - Google oAuth2 redirect_uri_mismatch in token access -
i trying access token one-time code using google oauth2. getting error message redirect_uri_mismatch in response. i've added redirect_uri in console.
i have authorized redirect uri as:
http://localhost:3020/api/users/google_oauth_store_token my request:
request url = https://www.googleapis.com/oauth2/v3/token?code=xxxxxx&client_id=xxxxxx&client_secret=xxx&redirect_uri=http://localhost:3020/api/users/google_oauth_store_token&grant_type=authorization_code my response:
response = { "error": "redirect_uri_mismatch", "error_description": "bad request" }
that mistake. had use redirect_uri had used in one-time redirect uri. google uses 1 of redirect_uri rest client origin.
Comments
Post a Comment