Advertisement
Guest User

Untitled

a guest
Apr 25th, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. private void ConfigureAuth(IAppBuilder app)
  2. {
  3. var cookieOptions = new CookieAuthenticationOptions
  4. {
  5. LoginPath = new PathString("/Account/Login")
  6. };
  7.  
  8. app.UseCookieAuthentication(cookieOptions);
  9.  
  10. app.SetDefaultSignInAsAuthenticationType(cookieOptions.AuthenticationType);
  11.  
  12. app.UseGoogleAuthentication(new GoogleOAuth2AuthenticationOptions
  13. {
  14. ClientId = ConfigurationManager.AppSettings["ClientId"],
  15. ClientSecret = ConfigurationManager.AppSettings["ClientSecret"]
  16. });
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement