SHARE
TWEET

Untitled

a guest Aug 19th, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public void ConfigureAuth(IAppBuilder app)
  2. {
  3. app.SetDefaultSignInAsAuthenticationType(CookieAuthenticationDefaults.AuthenticationType);
  4.  
  5. app.UseCookieAuthentication(new CookieAuthenticationOptions());
  6.  
  7. app.UseOpenIdConnectAuthentication(
  8.                 new OpenIdConnectAuthenticationOptions
  9.                 {
  10.                     ClientId = Config.ClientId,
  11.                     ClientSecret = Config.ClientSecret,
  12.                     Authority = Config.Authority,
  13.                     PostLogoutRedirectUri = Config.PostLogoutRedirectUri,
  14.                     RedirectUri = Config.PostLogoutRedirectUri,  
  15.                     Notifications = new OpenIdConnectAuthenticationNotifications()
  16.                     {
  17.                     }
  18.                 });
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top