-
-
Notifications
You must be signed in to change notification settings - Fork 417
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
Custom redirect_uri prevents callback phase from starting #444
Comments
Hello @Saoma1
It comes from the gem omniauth, they check the current_path against a couple of strings including the callback_path option, see: https://github.com/omniauth/omniauth/blob/a13cd110beb9538ea51be6c614bf43351c3f4e95/lib/omniauth/strategy.rb#L194C4-L194C4 |
@karquelf thank you for the hint, I will check it out! |
It is working now, I was providing the absolute_url instead of relative_url which I've now changed and it did the trick ! Thank you @karquelf , you saved my time |
I would like to reopen an old issue
This still seams to be an problem, running
rails 7.0.4
&omniauth-google-oauth2 1.1.1
I am also not using devise but a custom solution for handling login etc.
when i configure omniauth.rb without a custom redirect
this my output
however, with a custom redirect
my output shows that the callback phase is skipped which leads to
request.env["omniauth.auth"]
being nilThe text was updated successfully, but these errors were encountered: