I’ve a Streamlit app running on a Render web server, for which I’ve implemented a Google OAuth flow (using https:// github .com /dnplus/streamlit-oauth). Keep in mind the Google OAuth is not used to register/login users but to allow them to connect their Google Drive to the web app.
While this works well on my localhost, it fails to reach the redirect_uri
when hosted on Render. The streamlit-oauth package is designed (as far as I can tell) to set up a route (/_stcore/oauth/callback
) so to avoid the need for a secondary server/port. Everything should be working with the one open PORT I bond the Render web server to (through specifying it in the environment).
Redirect URIs:
- http:// localhost:8501 /_stcore/oauth/callback (works well)
- https:// mywebapp.onrender .com:8501 /_stcore/oauth/callback (fails)
Environment:
PORT : 8501
In the Deploy logs I can see:
==> Detected service running on port 8501
Screenshots:
- https:// pasteboard .co /ZqrGdeqHsYMN.png
- https:// pasteboard .co /TydXHl5fKR6J.png
So I’m not sure why this is still not working. Please help!!!