LDAP 身份验证在 ripple 和实际设备上失败,但在浏览器上失败
LDAP authentication fails on ripple and actual device but not on browser
我正在尝试从远程服务器中的 LDAP 服务获取 Ionic 应用程序 的授权令牌。
当我在 浏览器 中使用命令 ionic serve 和 运行 Ionic App 时,我可以获得授权令牌当我使用 Postman,
BUT 当我使用 ripple 进行调试时,它会花费很多时间并最终 失败 应用程序或当我在 phone 或 平板电脑 .
上测试时
错误说:
- 状态:503
- 状态文本:服务不可用
- 数据:html 来自 http://s3.amazonaws.com/heroku_pages/error.html
的代码
var deferred = $q.defer();
var req = {
method: 'GET',
url: 'http://host:port/adap?bind=token',
headers: {
Authorization: 'Basic <username>:<password>'
}
};
$http( req )
.then(function(data, status, headers, config) {
console.log(data);
deferred.resolve(data.data);
})
.catch(function(data) {
console.error(data.data);
deferred.reject(err);
});
return deferred.promise;
有人对这个问题有什么提示吗?
提前致谢
你说的服务是可用的,那肯定是app端的问题。
检查IP表,并检查ripple的代理并将其设置为none.
我正在尝试从远程服务器中的 LDAP 服务获取 Ionic 应用程序 的授权令牌。
当我在 浏览器 中使用命令 ionic serve 和 运行 Ionic App 时,我可以获得授权令牌当我使用 Postman,
BUT 当我使用 ripple 进行调试时,它会花费很多时间并最终 失败 应用程序或当我在 phone 或 平板电脑 .
上测试时错误说:
- 状态:503
- 状态文本:服务不可用
- 数据:html 来自 http://s3.amazonaws.com/heroku_pages/error.html 的代码
var deferred = $q.defer();
var req = {
method: 'GET',
url: 'http://host:port/adap?bind=token',
headers: {
Authorization: 'Basic <username>:<password>'
}
};
$http( req )
.then(function(data, status, headers, config) {
console.log(data);
deferred.resolve(data.data);
})
.catch(function(data) {
console.error(data.data);
deferred.reject(err);
});
return deferred.promise;
有人对这个问题有什么提示吗?
提前致谢
你说的服务是可用的,那肯定是app端的问题。
检查IP表,并检查ripple的代理并将其设置为none.