0

I have a javascript app which is protected by Single sign on(SSO) using nginx as reverse proxy.Once the user tries to hit the url of my app ,it redirects to SSO app for authentication.Subsequently the user provides his credentials and the SSO authentication calls my app with headers which have username as one of the headers.How do I extract the username header in my app? I went through the thread Accessing the web page's HTTP Headers in JavaScript but it seems that we have to make XMLHttpRequest request again.If I do that then the SSO app gives authorisation error? I want to extract the header on first redirection from SSO app to my app.

Chirayu Sharma
  • 75
  • 1
  • 11

0 Answers0