Why MVC 5 Owin Oauth is not hitting /Account/ExternalLoginCallback action

前端 未结 5 518
孤街浪徒
孤街浪徒 2021-01-12 08:31

I am new to MVC 5 authentication. Currently I tried Google Authorization using Owin The code in startup.Auth.cs

var googleOAuth2Authenticati         


        
5条回答
  •  别那么骄傲
    2021-01-12 09:32

    Try this it may work. Its works for my case

    app.UseGoogleAuthentication(new GoogleOAuth2AuthenticationOptions()
                    {
                        ClientId = "YourClintId",
                        ClientSecret = "YourSecretKey",
                        CallbackPath = new PathString("/Account/ExternalLoginCallback")
                    });
    

提交回复
热议问题