Hello, I am a student currently working on building an app. In this app, users are redirected to Google login authentication. After authentication, they are prompted to give consent for specific information. Once consent is granted, the user is redirected back to the Streamlit page.
The issue I’m encountering is that the code works perfectly on localhost, but when running it on the web version, I receive a 404 Error from Google. I suspect the problem might be related to the JavaScript Origins settings in the OAuth 2.0 credentials I’ve configured, specifically, the URL of the Streamlit app. However, I’m struggling to rectify this issue.
I’m not entirely sure whether this error stems from OAuth or Streamlit, which is why I’m posting it here for assistance.
PS: I’m uncertain about whether this error is related to OAuth or Streamlit, so I’m seeking help in this forum.
I apologize I missed out on providing more information.
I am using gcsa in my code (google calendar api), plan to edit the user’s google calendar.
(following is a test code where I am trying to print the events from the calendar.)
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.