This is a migrated thread and some comments may be shown as answers.

Decode the WWW-Authenticate header

2 Answers 1779 Views
Fiddler Classic
This is a migrated thread and some comments may be shown as answers.
Sagi
Top achievements
Rank 1
Sagi asked on 11 Mar 2015, 08:23 AM
Hi ,
How can I decode the  WWW-Authenticate header in c#.
I have the following header :
Authorization: Negotiate TlRMTVNTUAADAAAAGAAYAIAAAAAYABgAmAAAAAYABgBYAAAADAAMAF4AAAAWABYAagAAABAAEACwAAAAFYKI4gYC8CMAAAAPffbxvOGkL8ns+08wCF8mpUcARQBSAHMAawBhAHIAbgBpAFMASwBBAFIATgBJAC0ATQBPAEIATABmpA4p85r6qgAAAAAAAAAAAAAAAAAAAADhTsbpNSiV0RYcgZydNiGaRJqQVfHQAM80vSRnAZubLRwjwE2TnLrY

I (guess), that the information presented in the "Auth" tab is the decoding of this header.
A'm I correct ?
How can I do it in C# ?
thx
Sagi

2 Answers, 1 is accepted

Sort by
0
Eric Lawrence
Telerik team
answered on 13 Mar 2015, 02:34 PM
Hello, Sagi--

The text following the word NEGOTIATE is a base64-encoded byte array. I'm not aware of any open-source C# code that parses this type of byte array.


Regards,
Eric Lawrence
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Sung Hoon
Top achievements
Rank 1
answered on 06 Aug 2018, 06:55 AM

Firstly, it is not safe to post your authorize negotiate header values on internet because people can decode it.

Look for KerberosAuthenticationTester.exe and you should be able to decode it.

Tags
Fiddler Classic
Asked by
Sagi
Top achievements
Rank 1
Answers by
Eric Lawrence
Telerik team
Sung Hoon
Top achievements
Rank 1
Share this question
or