Redirect to oauth link?

This SO post describes what I want exactly: oauth 2.0 - Streamlit redirect user to URL without interaction for auth - Stack Overflow

The end goal is, user visits streamlit site, gets redirected to SSO right away without having to click anything.

Is this possible?

The best workaround I could find was to put a <a > hyperlink with the SSO link, meaning the user has to click it. The rest of the site doesn’t load until they get redirected back with the auth code.