Google Authentication using OWIN Oauth in MVC5 not hitting ExternalLoginCallback function

前端 未结 4 1421
不思量自难忘°
不思量自难忘° 2020-12-09 03:36

I am currently upgrading my login process for Google to use OAuth before they depricate their OpenID login method.

The steps I have Identified so far is that I have

4条回答
  •  轮回少年
    2020-12-09 03:45

    Try only this

    var googleOAuth2AuthenticationOptions = new GoogleOAuth2AuthenticationOptions
            {
                ClientId = "MYCLIENTID",
                ClientSecret = "MYSECRET",
            };
    app.UseGoogleAuthentication(googleOAuth2AuthenticationOptions);
    

    This worked for me

提交回复
热议问题