Last active
September 2, 2017 19:19
-
-
Save BaconSoap/f64ced349148b58f8542e68c93bcfee0 to your computer and use it in GitHub Desktop.
stop clobbering cookies, ASP.NET/OWIN
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
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