You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am getting an error for no obvious reason. The code is the same as suggested. The credentials have been downloaded directly from gcp interface.
Any hint ?
Thank you,
Error :
Erreur 400 : redirect_uri_mismatch
Vous ne pouvez pas vous connecter à cette appli, car elle ne respecte pas le règlement OAuth 2.0 de Google.
Si vous êtes le développeur de l'appli, enregistrez l'URI de redirection dans la console Google Cloud.
Détails de la requête : redirect_uri=http://localhost:8501 flowName=GeneralOAuthFlow
Code :
import streamlit as st
from streamlit_google_auth import Authenticate
st.title('Streamlit Google Auth Example')
authenticator = Authenticate(
secret_credentials_path='google_credentials.json',
cookie_name='oauth_cookie',
cookie_key='U0XDoAVmyu88VTDT',
redirect_uri='http://localhost:8501',
)
# Catch the login event
authenticator.check_authentification()
# Create the login button
authenticator.login()
if st.session_state['connected']:
st.image(st.session_state['user_info'].get('picture'))
st.write('Hello, '+ st.session_state['user_info'].get('name'))
st.write('Your email is '+ st.session_state['user_info'].get('email'))
if st.button('Log out'):
authenticator.logout()
Hi, I am getting an error for no obvious reason. The code is the same as suggested. The credentials have been downloaded directly from gcp interface.
Any hint ?
Thank you,
Error :
Code :
google_credentials.json
The text was updated successfully, but these errors were encountered: