これはIdentityServer3の素晴らしいチュートリアルであり、GOOGLE +ログインが含まれています
https://identityserver.github.io/Documentation/docs/overview/mvcGettingStarted.html
var google = new GoogleOAuth2AuthenticationOptions
{
AuthenticationType = "Google",
Caption = "Google",
SignInAsAuthenticationType = signInAsType,
ClientId = "xxxxx-8boio83mb57ruogr9af9ut09fkg56b27.apps.googleusercontent.com",
ClientSecret = "5fWcBT0udKY7_b6E3gEiJlze"
};
app.UseGoogleAuthentication(google);
var fb = new FacebookAuthenticationOptions
{
AuthenticationType = "Facebook",
Caption = "Facebook",
SignInAsAuthenticationType = signInAsType,
AppId = "xxxxxxx",
AppSecret = "9d6ab75f921942e61fb43a9b1fc25c63"
};
app.UseFacebookAuthentication(fb);
問題は、GOOGLE+ をクリックするとアクセス トークンが返されることですが、このトークンは Google API に対して有効ではありません。すべての UserData を取得できるように、Google+ API で有効なトークンを取得できません。
FBと同じ問題
これは可能ですか?