调用登录方法,输入则有效凭据获得:Azure的移动应用-JS-客户端登录
您没有权限查看该目录或页面
中的网址弹出窗口是:“https://zzz.azurewebsites.net/.auth/login/aad/callback”
我期待登录方法只需完成并返回用户(或身份验证令牌等),就像它在我的移动(Xamarin)应用程序中使用MobileServiceClient时一样。
this.client = new WindowsAzure.MobileServiceClient('https://zzz.azurewebsites.net');
this.client.login("aad").done(function (results) {
console.log(results);
alert("You are now logged in as: " + results.userId);
}, function (err) {
alert("Error: " + err);
});
我在本地机器上调试这个web应用程序。
CORS如何在您的应用服务上设置? –
我的应用服务中没有任何CORS条目。 – Triple888Three