Created
March 19, 2017 19:54
-
-
Save SteveSyfuhs/acfce60f559bbc89e45d5e1eed3b09de to your computer and use it in GitHub Desktop.
A few lines of code validates a ticket.
This file contains 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
var secret = "P@ssw0rd!"; // => Encoding.Unicode.GetBytes(...) | |
var validator = new SimpleKerberosValidator(secret); | |
ClaimsIdentity identity = validator.Validate("YIIG6QYGKwYBBQUCoIIG3TCCBtmgMDAuBgkqhkiC9xI..."); | |
Debug.Assert(identity.Name == "user@domain.com"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment