Closed cyrfar closed 2 months ago
Two things are going on here.
Lets first see if #745 would have given you the hints to get it working faster.
Hi Maarten, I deployed to AWS (without the proper proxy/uvicorn config on purpose) and indeed got the warning in the logs
Locally (where there is no proxy server), I do not get the warning, as expected.
Great, do you think this would have helped you from the start?
Yes!
Hi, I was trying to test auth in a Solara app and noticed that somewhere along the way redirect urls get overwritten by a default values rather than use the
SOLARA_BASE_URL
that I set in my environment. I suspect maybe theredirect_uri
being passed hereresult = await oauth.oauth1.authorize_redirect(request, str(request.base_url) + "_solara/auth/authorize")
should be using
settings.main.base_url
(which correctly updates when I setSOLARA_BASE_URL
) instead ofrequest.base_url
(which is based on default values).In a more detailed discussion with @maartenbreddels in the Discord channel we suspect this to be a small bug and a fix could potentially resolve the issue.