peatio icon indicating copy to clipboard operation
peatio copied to clipboard

Google Authentication Redirect URI error

Open Coding-Jewelry opened this issue 8 years ago • 3 comments

Now I am trying to install Rubykube Peatio on my EC2. I have set variables(client_id, client_secret, etc) correctly for Google Authentication.

But when I click "Sign in with Google" button, then it displays a google error page like the below.

"The redirect URI in the request, http://127.0.0.1:3000/auth/google_oauth2/callback, does not match the ones authorized for the OAuth client."

I am not sure why the redirect URI is showing as 127.0.0.1:3000 in spite of I have set it correctly on Google as well as config/application.yml file.

Please let me know once you know it. Thanks.

Coding-Jewelry avatar Jun 17 '18 17:06 Coding-Jewelry

@Coding-Jewelry Please ensure that nginx forwards Host header to upstream. For correct up to date nginx config see ci/nginx/server.conf in 1.8 branch.

k1T4eR avatar Jun 17 '18 17:06 k1T4eR

It works correctly. Thanks.

Coding-Jewelry avatar Jun 17 '18 18:06 Coding-Jewelry

@Coding-Jewelry me too help me

goodstardust avatar Jul 03 '18 12:07 goodstardust