dnplus / streamlit-oauth

Simple OAuth Component for Streamlit App
MIT License
111 stars 18 forks source link

Need help - may not even be a code issue #26

Closed HobbyProjects closed 4 months ago

HobbyProjects commented 4 months ago

Would appreciate some help here. After the user clicks the authorize button, they get directed to the authorization endpoint and get a code. They're then redirected to the callback URL - which is in my case is

https:///component/streamlit_oauth.authorize_button/index.html?code=asdffg****

but I see the lib is not sending that code to exchange with a token. The URL just displays the authorize button. Would appreciate some help as I am not sure what to check at this point.

dnplus commented 4 months ago

I guess it was the CORS problem.

You can try examples first with (to avoid misconfiguration)

streamlit run --server.enableCORS=false --server.enableXsrfProtection=false google.py

See if work or not

dnplus commented 4 months ago

close because no response