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
Comments
Hal,
When you were setting up your project, there were these instructions:
1. Click the blue "Create credentials" button. Choose "OAuth client ID".
2. Click the blue "Configure consent screen" button. Enter "GAM" for
"Product name to show to users".
3. Leave other fields blank. Click "Save" button.
3. Choose "Other" and click the blue "Create" button.
4. Copy your "client ID" value.
It looks like you my have chosen Web application instead of Other in step
3.GAM is not a Web application.
Delete client_secrets.json and ouath2.txt and do: gam create project
Ross
…On Thu, Dec 1, 2016 at 6:25 AM, Hal Burgiss ***@***.***> wrote:
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:
- I have upgraded to the latest GAM release from
https://git.io/gamreleases and I still have this issue.
- I am typing the command as described in the GAM Wiki at
https://github.com/jay0lee/gam/wiki
<https://github.com/jay0lee/gam/wiki>
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.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#353>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIU8Ly2H4mx8TaHuoSP0GElkjJv27qr-ks5rDtjVgaJpZM4LBc5X>
.
--
Ross Scroggs
ross.scroggs@gmail.com
|
Oops, missed that "Other", and assumed I'd be at least partially in a browser. In any case, THANK YOU! xoxoxox |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
The operable ID is a web application:
I have added a redirect URI for http://localhost (I haven't reallly a clue what this should be).
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.
The text was updated successfully, but these errors were encountered: