Decode the WWW-Authenticate header

2 posts, 0 answers
  1. Sagi
    Sagi avatar
    60 posts
    Member since:
    Sep 2008

    Posted 11 Mar 2015 Link to this post

    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. Eric Lawrence
    Admin
    Eric Lawrence avatar
    833 posts

    Posted 13 Mar 2015 Link to this post

    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.

     
Back to Top