How do I access the logged in (SAML 2) user's username?

Hi Chris, @chriddyp

We have on-premise Plotly+Dash installed and integrated with our SSO infrastructure via SAML 2. I’d like to be able to display the logged in user’s username in my dashboards and also hit internal platform APIs using that username. How can I do this? I’ve tried to use flask.session but I’m not getting anywhere - the session object is empty.

Thanks in advance!