Skip to content

Instantly share code, notes, and snippets.

@BaconSoap
Last active September 2, 2017 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BaconSoap/f64ced349148b58f8542e68c93bcfee0 to your computer and use it in GitHub Desktop.
Save BaconSoap/f64ced349148b58f8542e68c93bcfee0 to your computer and use it in GitHub Desktop.
stop clobbering cookies, ASP.NET/OWIN
public void ConfigureAuth(IAppBuilder app)
{
app.SetDefaultSignInAsAuthenticationType(CookieAuthenticationDefaults.AuthenticationType);
app.UseCookieAuthentication(new CookieAuthenticationOptions
{
CookieManager = new SystemWebChunkingCookieManager()
});
var authenticationOptions = new OpenIdConnectAuthenticationNotifications();
app.UseOpenIdConnectAuthentication(authenticationOptions);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment