Skip to content

Instantly share code, notes, and snippets.

@azzlack
Created October 11, 2013 14:30
Show Gist options
  • Save azzlack/6935644 to your computer and use it in GitHub Desktop.
Save azzlack/6935644 to your computer and use it in GitHub Desktop.
Getting auth cookie when using System.IdentityModel.Services.Tokens.MachineKeySessionSecurityTokenHandler and System.IdentityModel.Services.Tokens.SessionSecurityTokenHandler
// Need to use cookiehandler to get cookie since it's chunked. See System.IdentityModel.Services.ChunkedCookieHandler
var cookie = FederatedAuthentication.SessionAuthenticationModule.CookieHandler.Read();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment