Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message after successful login #27

Open
arbi-dev opened this issue Apr 28, 2024 · 0 comments
Open

Error message after successful login #27

arbi-dev opened this issue Apr 28, 2024 · 0 comments

Comments

@arbi-dev
Copy link

arbi-dev commented Apr 28, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant