How to extract headers in streamlit app

Hi all,

I’m currently facing some issue with accessing custom request headers and not able to get logged-in user details in my streamlit app which I need further to implement role-based access for the user. I’m using streamlit==1.20.0 and my virtualhost config to host the app on the portal looks like below. Can someone please help? Thanks in advance!