Git Product home page Git Product logo

Comments (6)

zquestz avatar zquestz commented on July 28, 2024

This is caused by a misconfiguration of your app with google.

Head to:

https://code.google.com/apis/console

Then make sure you have an https redirect url.

from omniauth-google-oauth2.

kbighorse avatar kbighorse commented on July 28, 2024

That's what I thought, but then how does the request get set in the first place? I've tried both ways in my Google app, but only http works. The request sends a http redirect_uri in both cases, never https. I'm sure I'm missing something simple here.

from omniauth-google-oauth2.

kbighorse avatar kbighorse commented on July 28, 2024

Maybe it matters where I send the request from? I'm pretty sure I've tested that too, but maybe not, since it only makes sense in production.

from omniauth-google-oauth2.

zquestz avatar zquestz commented on July 28, 2024

You can always use the following in an initializer:

OmniAuth.config.full_host = "https://yourdomain.com"

from omniauth-google-oauth2.

zquestz avatar zquestz commented on July 28, 2024

So I assume you're using: omniauth_authorize_path to generate the url?

from omniauth-google-oauth2.

kbighorse avatar kbighorse commented on July 28, 2024

yes:

user_omniauth_authorize_path(:google_oauth2)

I will try that full_host config as well, thank you!

from omniauth-google-oauth2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.