0

I've setup an environment in Cloud9 to create a website in Rails. I'm currently trying to enable login via Gmail, using the google oauth2 gem, but i ran into this problem and no matter where i look, every solution i've found does not seem to work.

Here is the error:

(https://i.stack.imgur.com/XAiWL.png)

And here is my google development urls:

(https://i.stack.imgur.com/xmg8j.png)

(Sorry, seems like i can't upload images directly to the post yet)

SrKurtz
  • 9
  • 5

2 Answers2

0

I think you are having this issue because Google's OAuth does not support wildcard subdomain matching and your app is basically a subdomain on Cloud9. Check this SO post.

I found a post with similar issues on Cloud9 forums

I googled with "OAuth c9.io".

Zalom
  • 696
  • 9
  • 18
  • I've read these before, but it seems the Google Developer website changed, and now not even registering subdomains is possible. – SrKurtz Oct 08 '18 at 21:54
0

Have you added the authorized redirect URIs?. It´s in the Credentials tab. You must edit your OAuth 2.0 client IDs and set the URIs there.

Steps:

Pablo
  • 3,004
  • 1
  • 12
  • 19