kishancool11 / GoogleLoginMVC

Custome google login in mvc without default Identity provider
9 stars 3 forks source link

google Authentication don't appear ! #4

Closed SuperChuck83 closed 5 years ago

SuperChuck83 commented 5 years ago

hello, I follow step by steap your project but the google auth page never appear...

if i understand well it's the call of "SignIn" who redirect on google auth page isn't it ? just by doing it in : HttpContext.GetOwinContext().Authentication.Challenge(new AuthenticationProperties { RedirectUri = "Account/GoogleLoginCallback" }, "Google");

Thank you

kishancool11 commented 5 years ago

You need to configure Startup.cs page where in partial page detail configuration is there inside ConfigureAuth Function.

You need to configure Google account using method UseGoogleAuthentication which in Microsoft.Owin.Security.Google library. This library take care of calling correct google page.