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
{{ message }}
Repository navigation
JSONDecodeError when running the identity sample app #148
I am working on a streamlit web app in Python that will be running on an EC2 instance. I am trying to set up SSO for our organization using Azure AD B2C and have been following the steps listed here:
I have no issues with the first 4 steps but am running into an issue for step 5 when I try to run the sample web app. After executing 'python -m flask run --host localhost --port 5000' I receive a JSONDecodeError that looks like this:
I ran this both on an EC2 instance and on my local machine and each time the exact same error was produced. Can someone please point me in the right direction to get this working? Thank you
Can you double check your configuration in .env to see whether you defined a REDIRECT_URI?
Hi Ray,
Thank you so much for the quick response. This fixed everything right away. I do now see that in .env.sample.b2c the REDIRECT_URI is included but in the guide that I originally linked it is not. Perhaps it would be helpful to include it in the guide as well. Thanks again for your help and have a nice weekend.
FYI: Upgrade an underlying library by pip install -U identity to get its 0.8.1 version, and you will see a nicer error message when/if you forget to configure redirect_uri for your B2C authority.
Login Failure
configuration_error
This authority does not support device code flow. Please configure a redirect_uri to use auth code flow.
Activity
rayluo commentedon May 24, 2024
Can you double check your configuration in
.envto see whether you defined a REDIRECT_URI?mattrochford commentedon May 24, 2024
Hi Ray,
Thank you so much for the quick response. This fixed everything right away. I do now see that in .env.sample.b2c the REDIRECT_URI is included but in the guide that I originally linked it is not. Perhaps it would be helpful to include it in the guide as well. Thanks again for your help and have a nice weekend.
Best,
Matt
rayluo commentedon May 26, 2024
FYI: Upgrade an underlying library by
pip install -U identityto get its 0.8.1 version, and you will see a nicer error message when/if you forget to configure redirect_uri for your B2C authority.