I have a windows desktop application. I need to open SSO login page in windows application. For this, I am using windows web browser control to open SSO login page. Once successfully logged-in, I need to get Authorization header from SSO login and use this authorization token for consecutive REST calls.
The issue here is, I am not able to extract authorization header Navigated and DocumentCompleted events. Can anyone suggest how I can extract this authorization header from the first call and how I can use the same header for subsequent REST calls?
Thanks in advance!!
What I have tried:
I tried to handle Navigated and DocumentCompleted events. But I am not getting http response headers in these events.