我创建了一个Mobile Service应用程序,并将默认模板部署到Azure . 当我尝试访问它时,会提示我使用Windows身份验证弹出窗口 .

然后,我将其配置为使用Azure Active Directory(根据此处的文档:http://azure.microsoft.com/en-us/documentation/articles/mobile-services-how-to-register-active-directory-authentication/和此处:http://azure.microsoft.com/en-us/documentation/articles/mobile-services-dotnet-backend-xamarin-ios-get-started-users/#add-authentication),通过向AD添加应用程序并在两者之间指定client-id 's. and app uri',并将域设置为Mobile的租户服务 . 我还安装了Backend Security并将AzureActiveDirectoryExtendedLoginProvider设置为后端的登录提供程序 .

但是,它仍然提示我使用Windows身份验证弹出窗口,但现在当我转到.azure-mobile.net / login / aad时,它会按预期将我发送到Active Directory登录页面,但出现以下错误

AADSTS70001: Application with identifier xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx was not found in the directory yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy

应用程序标识符是正确的标识符,但目录标识符不属于我的活动目录,该目录是我拥有的唯一目录,并且在移动服务中配置为租户 . 当我尝试从移动应用程序登录移动服务时,它只给我一个空白页面 .

我还尝试使用不同的域/租户创建另一个AD,但它仍然在错误消息中提供相同的目录guid .