Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8424601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:02:25+00:00 2026-06-10T04:02:25+00:00

I am trying to consume Google Oauth v2. I go into my api console

  • 0

I am trying to consume Google Oauth v2. I go into my api console and setup the following 2 redirect uris…

http://localhost:3000/auth/authenticate
http://localhost:3000/auth/google/getToken

When I run the following…

curl -d "code=<removed>&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fgoogle%2fgetToken&client_id=<removed>&client_secret=<removed>&grant_type=authorization_code" -X POST https://accounts.google.com/o/oauth2/token

everything works great, however,

curl -d "code=<removed>&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fauthenticate&client_id=<removed>&client_secret=<removed>&grant_type=authorization_code" -X POST https://accounts.google.com/o/oauth2/token

fails saying…

"error" : "redirect_uri_mismatch"

I did just change this, is there a propagation time frame? How do I get both uris to work?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T04:02:27+00:00Added an answer on June 10, 2026 at 4:02 am

    As described here the second time you send redirect_uri you send it for validation(they need to match) and this is not an arbitrary value. You need to pass the same value for redirect_uri when requesting for access token to the value of redirect_uri in which you asked user to be redirected after authorization. Otherwise google(or any other provider will generate an error message).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get Oauth working with the Google API using Python. I
I'm trying to set up OAuth with Google services. Following the example here ,
I'm trying to upgrade may program to support the new oAuth that Google uses
I am trying to use the Google Wave Active Robot API fetch_wavelet() and I
I'm trying to access an OAuth-protected resource on Google App Engine using a Java/Groovy
I'm trying to consume and use a third party REST Json based API. I
I'm trying to consume an IBM DataPower web service in WCF getting the following
i am trying to consume webservice to get freight rate from webserivce http://www.wwexship.com/webServices/services/FreightShipmentQuote?wsdl and
Am trying to create a doc (very very basic) using 2-legged OAuth ( https://developers.google.com/accounts/docs/OAuth
I'm trying to consume twitter's REST api mentioned at this link using WCF REST

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.