Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Redirect_URI not resolving correctly #97

Open
mastari opened this issue Jul 31, 2023 · 2 comments
Open

Redirect_URI not resolving correctly #97

mastari opened this issue Jul 31, 2023 · 2 comments

Comments

@mastari
Copy link

mastari commented Jul 31, 2023

Steps to Reproduce

  1. Change redirect_uri parameter to some value in config:
    config :ueberauth, Ueberauth.Strategy.Google.OAuth, redirect_uri: 'https://example.com'

  2. Check network logs

Expected Result

Expected redirect_uri to be https://example.com

Actual Result

Got redirect_uri to be http://example.com

My Suspicion

My endpoint uses HTTP and I get HTTPS throught NGINX. I think the uri is resolving to the endpoint HTTP status instead of explicitly using the string I provided it.

@yordis
Copy link
Member

yordis commented Aug 1, 2023

Can you replicate this by adding a new unit test to the package? I'm here to help you with it.

You could start by copy-pasting one test case from https://github.com/ueberauth/ueberauth_google/blob/master/test/strategy/google_test.exs

@paulswartz
Copy link

Is Plug.SSL being called in the pipeline with Ueberauth in it? That uses the x-forwarded-for header to set the correct scheme.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants