Closed namirinz closed 1 month ago
Edited: Add redirect URL
Hi @namirinz
Maybe you can try /component/streamlit_oauth.authorize_button/index.html see if work or not
We found there is some difference depends on deployment environment, it should be a problem from streamlit ComponentRequestHandler
But in my local environment without /index.html shows read error
After adding /index.html in redirect uri. It's working with no any error now!
Thank you for your response.
The popup window appear and I can managed to login with getting a result token. But the window show
read error
text and when the log text from streamlit showread error
FYI my streamlit was deployed in Kubernetes.
My redirect URL: https://MYURL.com/component/streamlit_oauth.authorize_button
Error Message
2024-06-07 04:25:25.824 ComponentRequestHandler: GET /usr/local/lib/python3.10/site-packages/streamlit_oauth/frontend/dist read errorTraceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/streamlit/web/server/component_request_handler.py", line 54, in get with open(abspath, "rb") as file:IsADirectoryError: [Errno 21] Is a directory: '/usr/local/lib/python3.10/site-packages/streamlit_oauth/frontend/dist'
Dependency Version
Streamlit Config
Streamlit Code