-
|
The example code provided creates a new Authorization Window as annotated, but once authenticated with Google the Authorize button remains. A second attempt at authorization loads the "You've been authenticated" message, but still in that new window. That seemed kind of clunky at first, until I read through the documentation again and saw the following note: set your callback url to https:///component/streamlit_oauth.authorize_button When you say "callback url" do you mean redirect url? I anticipated this change to kill the Authorization window (once authenticated and authorized) and return me back to my original web page where st.rerun() will allow it to update indicating a logged in status. Unfortunately, I received the following read error: 2025-08-20 10:50:36.642 ComponentRequestHandler: GET C:\Users\yeryo\PycharmProjects\EmailAnarchy.venv\Lib\site-packages\streamlit_oauth\frontend\dist read error Did I misinterpret your instructions? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
I figured out what the issue was... You can now view your Streamlit app in your browser. Local URL: http://localhost:8501 And the two links at the bottom are clickable. When selecting the localhost url, this is where it was causing me issues. By navigating to the site using the actual loopback IP and port number (http://127.0.0.1:8501) I was able to get the desired login experience. |
Beta Was this translation helpful? Give feedback.
I figured out what the issue was...
I reverted the 'redirect_uri' to "http://127.0.0.1:8501
When launching the streamlit app from cli it provides the following output:
(.venv) PS C:\Users\yeryo\PycharmProjects\EmailAnarchy> streamlit run tmp.py
You can now view your Streamlit app in your browser.
Local URL: http://localhost:8501
Network URL: http://192.168.5.188:8501
And the two links at the bottom are clickable. When selecting the localhost url, this is where it was causing me issues. By navigating to the site using the actual loopback IP and port number (http://127.0.0.1:8501) I was able to get the desired login experience.