Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement