Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void ConfigureAuth(IAppBuilder app)
- {
- var cookieOptions = new CookieAuthenticationOptions
- {
- LoginPath = new PathString("/Account/Login")
- };
- app.UseCookieAuthentication(cookieOptions);
- app.SetDefaultSignInAsAuthenticationType(cookieOptions.AuthenticationType);
- app.UseGoogleAuthentication(new GoogleOAuth2AuthenticationOptions
- {
- ClientId = ConfigurationManager.AppSettings["ClientId"],
- ClientSecret = ConfigurationManager.AppSettings["ClientSecret"]
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement