Skip to content

Instantly share code, notes, and snippets.

@SteveSyfuhs
Created March 19, 2017 19:54
Show Gist options
  • Save SteveSyfuhs/acfce60f559bbc89e45d5e1eed3b09de to your computer and use it in GitHub Desktop.
Save SteveSyfuhs/acfce60f559bbc89e45d5e1eed3b09de to your computer and use it in GitHub Desktop.
A few lines of code validates a ticket.
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