Click here to Skip to main content
14,427,367 members
Rate this:
Please Sign up or sign in to vote.
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 3:16am
Comments
Ramu Morla 24-Oct-17 5:15am
   
Is there any possibility to read headers section

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

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.
   
v2

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100