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
EDIT> Found the problem. Apparently the PYPI version of this app is a bit out of date, and included a hardcoded region check for .us.auth0.com. Threw an error for our app because we are in eu.auth0.com. A very simple fix, and this appears to already be resolved in the github repo, so I did not submit a PR, but please update the pypi version. thanks!
--original message--
Hi, thank you for creating this app! I managed to authenticate successfully (Auth0 logged a successful login) using the simple streamlit code in the quickstart guide but then the app throws the error below, which I understand to mean the token is not being interpreted correctly. Any thoughts on what might be the issue?
ValueError
Traceback:
File "/home/dev/awscli-venv/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 584, in _run_script
exec(code, module.dict)
File "/home/dev/authlogin-st.py", line 34, in
main()
File "/home/dev/authlogin-st.py", line 26, in main
user_info = authenticate_user()
File "/home/dev/authlogin-st.py", line 10, in authenticate_user
user_info = login_button(clientId, domain=domain)
File "/home/dev/awscli-venv/lib/python3.10/site-packages/auth0_component/init.py", line 82, in login_button
elif isAuth(response = user_info, domain = domain):
File "/home/dev/awscli-venv/lib/python3.10/site-packages/auth0_component/init.py", line 89, in isAuth
return getVerifiedSubFromToken(token = response['token'], domain=domain) == response['sub']
File "/home/dev/awscli-venv/lib/python3.10/site-packages/auth0_component/init.py", line 28, in getVerifiedSubFromToken
raise ValueError
The text was updated successfully, but these errors were encountered:
EDIT> Found the problem. Apparently the PYPI version of this app is a bit out of date, and included a hardcoded region check for .us.auth0.com. Threw an error for our app because we are in eu.auth0.com. A very simple fix, and this appears to already be resolved in the github repo, so I did not submit a PR, but please update the pypi version. thanks!
--original message--
Hi, thank you for creating this app! I managed to authenticate successfully (Auth0 logged a successful login) using the simple streamlit code in the quickstart guide but then the app throws the error below, which I understand to mean the token is not being interpreted correctly. Any thoughts on what might be the issue?
ValueError
Traceback:
File "/home/dev/awscli-venv/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 584, in _run_script
exec(code, module.dict)
File "/home/dev/authlogin-st.py", line 34, in
main()
File "/home/dev/authlogin-st.py", line 26, in main
user_info = authenticate_user()
File "/home/dev/authlogin-st.py", line 10, in authenticate_user
user_info = login_button(clientId, domain=domain)
File "/home/dev/awscli-venv/lib/python3.10/site-packages/auth0_component/init.py", line 82, in login_button
elif isAuth(response = user_info, domain = domain):
File "/home/dev/awscli-venv/lib/python3.10/site-packages/auth0_component/init.py", line 89, in isAuth
return getVerifiedSubFromToken(token = response['token'], domain=domain) == response['sub']
File "/home/dev/awscli-venv/lib/python3.10/site-packages/auth0_component/init.py", line 28, in getVerifiedSubFromToken
raise ValueError
The text was updated successfully, but these errors were encountered: