St.query_params not returning values but st.experimental_get_query_params does

I built an app that authenticates via pingfederate OAUTH2. It requires some Flask server components that work with pingfederate. Ultimately, the Flask server responds back to the Streamlit App with a redirect to my application with some authorization parameters returned in the URI. The NEW page loads (old page is also running) and displays the parameters in the browser URL but streamlit does not see them when calling st.query_params (st.query_params is actually showing None). If I call st.experimental_get_query_params the parameters are visible and correct.

Before redirect:

After redirect:

The code:
st.write(‘st.experimental_get_query_params()’)

st.write(st.experimental_get_query_params())

st.write(‘st.query_params’)

st.write(st.query_params)

Any thoughts on what it will take for the st.query_params to see what is in the URL bar? I was looking into hacks for getting the browser-displayed URL but I’d prefer to not go that route. I am running version 1.43.2. Thanks!

Well, after a system restart st.query_params appears to be working. odd. closing.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.