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

Error: redirect_uri_mismatch #353

Closed
halburgiss opened this issue Dec 1, 2016 · 3 comments
Closed

Error: redirect_uri_mismatch #353

halburgiss opened this issue Dec 1, 2016 · 3 comments

Comments

@halburgiss
Copy link

The issue tracker is for reporting product deficiencies. "How do I?" questions should be posted to the discussion forum at https://groups.google.com/group/google-apps-manager. When in doubt, start at the discussion forum and return here only when instructed to do so.

Please confirm the following:

Full steps to reproduce the issue:

  1. create new account - follow all instructions
  2. Run any gam command in terminal
  3. Follow "Continue to authorization" instructions - press "c"
  4. Go to following link your browser: https://goo.gl/3B9xx
  5. Always produces this error:
400. That’s an error.

Error: redirect_uri_mismatch

The redirect URI in the request, urn:ietf:wg:oauth:2.0:oob, can only be used by a Client ID for native application. It is not allowed for the WEB client type. You can create a Client ID for native application at https://console.developers.google.com/apis/credentials/oauthclient

The operable ID is a web application:

OAuth 2.0 client IDs

Hal	Dec 1, 2016	Web application	104459654880-hv8m5u90sg62fxxxxxxxxxx4bhal84m1heogo.apps.googleusercontent.com

I have added a redirect URI for http://localhost (I haven't reallly a clue what this should be).

{
    "installed": {
        "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
        "auth_uri": "https://accounts.google.com/o/oauth2/auth",
        "client_id": "104459654880-hv8m5u9xxxxxxxxxx4bhal84m1heogo.apps.googleusercontent.com",
        "client_secret": "xxxx",
        "project_id": "gam-project-hmh-7cn-yua",
        "redirect_uris": [
            "urn:ietf:wg:oauth:2.0:oob",
            "http://localhost"
        ],
        "token_uri": "https://accounts.google.com/o/oauth2/token"
    }
}

Expected outcome (what are you trying to do?):

Use gam, particularly to manage google calendars for a google apps for business domain.

Actual outcome (what errors or bad behavior do you see instead?):

See above.

@taers232c
Copy link
Contributor

taers232c commented Dec 1, 2016 via email

@halburgiss
Copy link
Author

Oops, missed that "Other", and assumed I'd be at least partially in a browser.

In any case, THANK YOU! xoxoxox

@svlux
Copy link

svlux commented Mar 4, 2018

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

3 participants