hunkim / streamlit-google-oauth

An example Streamlit application that incorporates Google OAuth 2.0
52 stars 39 forks source link

Doesn't work when deployed #5

Open tom-doerr opened 1 year ago

tom-doerr commented 1 year ago

It works for me on localhost, but not when deployed even though I added the redirect URIs. "Access blocked: This app’s request is invalid".

hunkim commented 1 year ago

3 It only works if it's a standalone app.

il-dat commented 1 year ago

It's true that it doesn't work when deployed to Streamlit Community Cloud. Behind the scene, it embedded the app into the iframe, and hence failed Google Login. Error message:

Refused to display 'https://accounts.google.com/' in a frame because it set 'X-Frame-Options' to 'deny'.

Is there any workaround idea? Thanks