cordova - Cordova Microsoft CRM 2011 get AuthToken
问题描述
I'm using Cordova v8.0.0 and trying to get the Access Token from an On-Premises MS Dynamics CRM 2011.
I'm running the below but it is just redirecting to a page that doesn't exist as below.
I'm running the code below
var resource = 'https://crm.orgdomain.com';
var clientId = 'xxxx-xxxx-xxxx-xxxx-xxxx';
var redirectUri = 'msauth://com.domain.app/llbcvRoS2B87ZqPE8YbTtZdCziA%3D';
var authContext = new Microsoft.ADAL.AuthenticationContext(xhr.responseURL, false);
var authresult = authContext.acquireTokenAsync(resource, clientId, authorization_URI);
解决方案
推荐阅读
- c - GCC 没有警告,虽然它应该
- mysql - 如何索引列中具有重复值的行?
- java - 流程图中的扫描仪| 爪哇
- angular - 将搜索过滤器添加到 Angular-6-datatable
- mysql - 如何仅从没有架构的选定表中转储数据
- ios - 为什么 tableview 数据源不会从 Realm Collection 观察者改变?
- javascript - Chrome JS 错误:混合内容:对于机器人
- apache-spark - Spark-提交 CoarseGrainedExecutorBackend 错误
- javascript - 如何使用 DataTables 和 Excel 解决 parseXML 问题?
- javascript - Karma - Jasmine 断开连接超时