我的设置: .net后端的azure移动服务,配置谷歌 Phonegap(带有Cordova CTP3工具的VS2013) 该服务适用于Android设备 问题: 使用纹波进行身份验证不起作用(对话框未关闭) 使用ripple,当我调用client
> .net后端的azure移动服务,配置谷歌
> Phonegap(带有Cordova CTP3工具的VS2013)
>该服务适用于Android设备
问题:
>使用纹波进行身份验证不起作用(对话框未关闭)
使用ripple,当我调用client.login()时会出现身份验证对话框,它会进行身份验证,但弹出窗口不会关闭.并且永远不会调用done()回调.弹出窗口中的url如下所示:https:// localhost:44307 / login / done #tandle = {“user”:{“userId”:“Google:1 …
我不确定它是否应该工作,但使用html客户端(从管理门户下载)可以正常使用身份验证.我已经尝试在ripple中禁用代理,并在没有运气的情况下重新编写项目.
更新:我正在使用默认客户端,这里没什么特别的
//
<script src="http://ajax.aspnetcdn.com/ajax/mobileservices/MobileServices.Web-1.2.5.min.js"></script>
var client = new WindowsAzure.MobileServiceClient(
'https://my-app-service.azure-mobile.net/',
//'https://localhost:44307/',
'jFWBtWeZsRaerKJzkCVC........');
var service = {
isSettingsLoaded: false,
saved: null,
login: function() {
var self = this;
var dfd = $q.defer();
client.login('google').done(function(d) {
// This is not called when using Ripple
}
);
return dfd.promise;
}
}
谢谢你的帮助
看待
Larsi
我遇到了同样的问题,修复方法是将您的应用网址添加到允许的外部重定向中.见How to: Configure your Mobile App Service for External Redirect URLs.中的第7步
