ent*_*pic 5 reactjs botframework microsoft-teams
我正在一个多租户团队应用程序中工作,并且想要使用 SSO 向机器人添加一个选项卡。在我的开发环境中,这一切都工作正常,我可以毫无问题地登录。当我将其部署到 QA 环境时,出现以下错误
AUTHMSAL: Event: adal:tokenRenewFailure, code: invalid_resource|AADSTS500011: The resource principal named api://[mydomain]/[myappid] was not found in the tenant named [tenant]. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant.
Trace ID: d9eae514-36e0-4c28-afeb-3312133b0a01
Correlation ID: 82e84904-a4ef-490a-a114-b5efb68eb701
Timestamp: 2021-05-14 15:22:47Z, resource: api://[mydomain]/[myappid], action: resourceDisabled
Run Code Online (Sandbox Code Playgroud)
我不确定为什么会失败。我已在 QA 中检查了租户,并确认我的应用程序列在“企业应用程序”下,并且权限已获得同意,并获得了管理员同意。我还检查了我的开发环境和 qa 环境的应用程序注册设置是否存在任何差异(除了 URI 名称),结果没有任何差异。
这是我用来尝试检索 AuthToken 的代码
AUTHMSAL: Event: adal:tokenRenewFailure, code: invalid_resource|AADSTS500011: The resource principal named api://[mydomain]/[myappid] was not found in the tenant named [tenant]. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant.
Trace ID: d9eae514-36e0-4c28-afeb-3312133b0a01
Correlation ID: 82e84904-a4ef-490a-a114-b5efb68eb701
Timestamp: 2021-05-14 15:22:47Z, resource: api://[mydomain]/[myappid], action: resourceDisabled
Run Code Online (Sandbox Code Playgroud)
有人能指出我哪里出了问题吗?
@entropic @Anand @Jagadeesh-MSFT
我遇到了类似的情况,当我测试基于 Microsoft 提供的示例 Microsoft Teams - 选项卡 Azure AD 单点登录示例创建的选项卡应用程序时,收到来自getAuthToken的ResourceDisabled错误
我所做的是根据此 清单文件纠正webApplicationInfo.resource元素中的 AppID有错误/静态资源 url #3
我现在可以获得正确的结果:
[img] getAuthToken 现已成功
注意:我还将架构版本从 1.5 更新到 1.9,但似乎此更改与该问题无关。
"$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.9/MicrosoftTeams.schema.json",
"manifestVersion": "1.9",
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4549 次 |
| 最近记录: |