調用登錄方法,輸入則有效憑據獲得: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