We have successfully deployed Streamlit using Okta as our OIDC connector using st.login without any issues. Where I’m having an issue is when a user is not assigned the app, I’m not able to capture anything on the redirect back using st.query_params so that I can prevent the app from trying to redirect back to Okta for sign in, thus getting the app stuck in a loop. (Yes, to prevent the constant loop, I could have implemented a button but since the user will be clicking from an Okta tile, I’m trying to prevent them from having to click yet another button to login through Okta.)
With that said, does anyone have any ideas on how I can capture the “access_denied. Error description: User is not assigned to the client application?” that I see in the terminal when I run this locally, to then display an error message?
I’ve tried plenty of ideas but maybe I’m clearly missing something.
Streamlit: 1.50
Python: 3.11.9
Thank you
Chandler