-
Notifications
You must be signed in to change notification settings - Fork 43
Closed
Labels
Description
Don't know why, but we're having trouble with ElixirAuthGoogle.generate_oauth_url(conn)
on our Calendar
app: dwyl/calendar#38
We've identified that the conn
on Fly.io is actually reporting port: 80
and scheme: :http
get_baseurl_from_conn/1
is setting the scheme to http
instead of https
which means that Google Auth Fails with the Error 400: redirect_uri_mismatch
error. 😢
I think we can check for the presence of the req_headers -> x-forwarded-proto
which is set to "https"
Just need to write a test for this ...
Todo
- Create a test for
{"x-forwarded-proto", "https"}
- Add code to check for it at the top of
get_baseurl_from_conn/1
- Make sure nothing
else
breaks! - Publish new version of the package to test in
calendar
App.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
✅ Done