Click here to Skip to main content
15,947,389 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Hello,

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.
Posted
Updated 14-Jan-20 2:16am
Comments
Ramu Morla 24-Oct-17 5:15am    
Is there any possibility to read headers section

1 solution

I resolved this myself.

As I explained in question, for Entitlement login, I'm login to actual website login page. Once I logged in to login page, I receives authorization token from response in DocumentCompleted event. And I am using same token for subsequent REST calls.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900