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

Invalid_client error with gmail contacts oauth #41

Closed
yangtheman opened this issue Apr 25, 2013 · 2 comments
Closed

Invalid_client error with gmail contacts oauth #41

yangtheman opened this issue Apr 25, 2013 · 2 comments

Comments

@yangtheman
Copy link

Hi! First of all, thanks for the gem!

I think this requires a simple fix, but not sure where to look/see since it looks like I have everything correctly....

I have a link to [my_domain]/contacts/gmail on a test page. When I click on the link, I get the following error. I double-checked OAuth Key and Secret, and they are correct.

Error: invalid_client
Request Details
scope=https://www.google.com/m8/feeds
response_type=code
access_type=online
redirect_uri=http://[my_domain]/contacts/gmail/callback
approval_prompt=auto
client_id=[OAuth Consumer Key]

Any help would be much appreciated!

Thanks.

@Diego81
Copy link
Owner

Diego81 commented Apr 25, 2013

That's very strange indeed. Please, check out this example to see if you have done everything right: https://github.com/sonianand11/omnicontacts_example

@yangtheman
Copy link
Author

Ha. I figured it out. It turned out that I got the wrong OAuth credentials. I was following this article and went here to get OAuth credentials, but this was the WRONG place.

The correct place is Google API Console and create a new project to get the right OAuth credentials. Diego, you might want to mention it in the README.

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

2 participants