microsoft-teams - Microsoft Teams TASK 模块 SSO 返回“未找到定义”错误
问题描述
从任务模块调用@microsoft/ teams -js 时Definition not found
出现错误。msTeams.authentication.getAuthToken
@microsoft/teams-js版本 - 1.7.0 和 1.11.0
环境- 桌面和移动
return new Observable<any>(subscriber => {
this.teamsService.authentication.getAuthToken({
resources: ['https://graph.microsoft.com/openid',
'https://graph.microsoft.com/user.read.all',
'https://graph.microsoft.com/group.read.all',
'https://graph.microsoft.com/groupmember.read.all'],
successCallback: clientToken => {
subscriber.next({ clientToken, type: this.authType });
subscriber.complete();
},
failureCallback: reason => {
subscriber.error(reason);
}
});
});
解决方案
推荐阅读
- mongodb - MongoDB 启用 oplog 窗口
- reactjs - 我有一个提交按钮,当我单击提交按钮时,我想重定向到另一个路由器链接
- python - 使用 Elementree 从另一个子元素读取
- laravel - 如何根据特定字段对 Laravel Eloquent 查询中的数据进行排序
- swift - 如何在字典中安全地强制展开时间
- charts - 我需要每周在 Power BI 报告中的图表上签名
- java - 使用线程处理多个文件
- apache-kafka - 带有引导服务器的 kafka 主题描述显示不同的主题配置
- elasticsearch - 如果字符串在数组中有 90% 的单词,则返回
- ios - 如何使用 UITableView 创建类似设计的 iOS 13 联系人应用程序?