gpt4 book ai didi

azure - 使用 Azure 移动服务,microsoftaccount 错误和 Twitter 不粘

转载 作者:行者123 更新时间:2023-12-03 01:55:11 24 4
gpt4 key购买 nike

我相信我已遵循所有正确的指示来设置我的 microsoft oauth2 帐户,但我收到了一个错误,其中包含我在下面粘贴的内容。如何调试呢?另外,当我使用 google 或 facebook 进行 oauth 一次时,下次通过时我不会收到提示(我假设设置了 cookie)。当我使用 Twitter 时,它每次都会提示我。这是预期的行为吗?

仅供引用,我的简单代码如下。

我们无法完成您的请求Microsoft 帐户遇到技术问题。请稍后重试。

var client = new WindowsAzure.MobileServiceClient('https://xxx.azure-mobile.net/', 'xxxx');

$(document).ready(function () {
$("#submit1").click(function () {
client.login("google").done(function (results) {
console.log(results);
alert("You are now logged in as google: " + results.userId);
}, function (err) {
alert("Error: " + err);
});
});

$("#submit2").click(function () {
client.login("twitter").done(function (results) {
console.log(results);
alert("You are now logged in as twitter: " + results.userId);
}, function (err) {
alert("Error: " + err);
});
});

$("#submit3").click(function () {
client.login("facebook").done(function (results) {
console.log(results);
alert("You are now logged in as facebook: " + results.userId);
}, function (err) {
alert("Error: " + err);
});
});

$("#submit4").click(function () {
client.login("microsoftaccount").done(function (results) {
console.log(results);
alert("You are now logged in as microsoftaccount: " + results.userId);
}, function (err) {
alert("Error: " + err);
});
});
});

最佳答案

对于 Twitter:您需要在应用程序的“设置”选项卡 https://dev.twitter.com 下选中“允许此应用程序用于使用 Twitter 登录”选项(参见下图)。 。如果未选择该选项,您仍然可以使用 Twitter 登录移动服务,但它不会记住用户。

enter image description here

对于 Microsoft 帐户:您能否检查一下您是否已按照 http://azure.microsoft.com/en-us/documentation/articles/mobile-services-how-to-register-microsoft-authentication/ 中所述的确切步骤进行操作? ?我发现,每隔一段时间我就会错过一个步骤,这会给我一个像您遇到的那样的一般错误。

关于azure - 使用 Azure 移动服务,microsoftaccount 错误和 Twitter 不粘,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23903262/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com