Authorization for Microsoft App ID xxx failed with status code Forbidden and reason phrase 'Forbidden'

假装没事ソ 提交于 2019-12-02 12:11:33

I found the error after some additional troubleshooting with remote debugging. Based on @JimLewallen's response I looked closer at the "Credentials" portion of the connector object. The OAuthScope for version 3.0 of the Botframework (connector-> Credentials->OAuthScope in the locals of the remote debugger) was pointing to api.botframework.com/.default when it should have been pointing at "graph.microsoft.com/.default". When I created a new bot service application in Visual Studios using the bot template the OAuthScope showed the correct endpoint.

Incorrect Value: OAuthScope "api.botframework.com/.default"

Correct Value: Image from the Remote Debugger showing the correct OAuthScope

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!