Last active
December 11, 2015 12:58
-
-
Save jazlalli/4604200 to your computer and use it in GitHub Desktop.
JWT header
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// jwt header | |
var header = new { typ = "JWT", alg = "RS256" }; | |
// encoding | |
var headerBytes = Encoding.UTF8.GetBytes(_jsonProvider.Serialize(header)); | |
var headerEncoded = _base64Encoder.ToBase64UrlEncodedString(headerBytes); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment