Google OAuth not working in Streamlit Cloud

I have a few apps on the streamlit cloud and just added authentication. While Google OAuth works locally, it refuses to work when deployed to streamlit cloud

After a full day of pulling my hair out and not finding any online answers, I’m wondering if anyone has figured this. It would appear I will have to move these apps to another cloud or get a fixed domain.

My hunch is there is something weird about the streamlit domain being used

Hi, I am facing the same issue. It works fine on localhost. but after deployment it says error 403 or " accounts.google.com refused to connect." did you find any solutions or any workarounds?

any luck? am having exactly the same issue.

@Saif @john12 I had to move my app to Render. Fanilio uploaded this video a couple months ago where he added it: https://www.youtube.com/watch?v=0M4K53XBsjo&list=PLMW3Kor-C_bSoul_GgKbbc9_k0rlE8eN8&index=3

Yeah. I checked out his video but but he only fixed it locally and not on cloud. I did the same thing he did, and I’m still getting blocked.

My project GitHub - claceio/clace: Webapp management for internal tools, app server for containerized apps is an easy way to run multiple Streamlit apps on one machine and add Google OAuth to them. See Clace : Streamlit app deployment platform for intro. No code changes required in the app, the OAuth auth is done in a proxy before the API hits the Streamlit app. App Authentication – Internal Tools Deployment Platform | Clace has the OAuth config details.