0
私はAzure Mobile Appsを使用しており、MicrosoftアカウントとFacebookアカウントで認証情報を設定しています。Azure Mobile Apps認証 - 無効な認証応答の形式
https://studybuddy.azure-mobile.net/.auth/login/microsoftaccount/callback https://studybuddy.azure-mobile.net/.auth/login/facebook/callback
^^これは、私は信じて、トークンを返しません。ログインから戻ってくるはずの「トークン」が存在しないため、「ユーザー」は設定されません。
関連するコード:
private async System.Threading.Tasks.Task<bool> AuthenticateAsync()
{
string message;
bool success = false;
try
{
// Change 'MobileService' to the name of your MobileServiceClient instance.
// Sign-in using Facebook authentication.
user = await App.MobileService
.LoginAsync(MobileServiceAuthenticationProvider.Facebook);
message =
string.Format("You are now signed in - {0}", user.UserId);
success = true;
}
catch (InvalidOperationException e)
{
message = "You must log in. Login Required";
}
var dialog = new MessageDialog(message);
dialog.Commands.Add(new UICommand("OK"));
await dialog.ShowAsync();
return success;
}