简体   繁体   English

Azure ADv2-找不到token.botframework.com资源

[英]Azure ADv2 - token.botframework.com resource not found

I have a bot hosted in Azure which uses AADv2 authentication. 我在Azure中托管了一个使用AADv2身份验证的机器人。 The authentication was working perfectly until today, when it is throwing an error ("The resource you are looking for has been removed, had its name changed, or is temporarily unavailable") although I didn't change anything in the bot code or configuration. 直到今天,身份验证都可以正常工作,当时它抛出错误(“您正在寻找的资源已被删除,名称已更改或暂时不可用”),尽管我没有更改机器人代码或配置中的任何内容。

I believe it is related with Azure rather than the bot's code since I test the connection from Azure Oauth Settings and it gives me the same error page: "The resource you are looking for has been removed, had its name changed, or is temporarily unavailable". 我认为它与Azure有关,而不是与机器人代码有关,因为我从Azure Oauth设置测试了连接,并且给了我相同的错误页面:“您正在寻找的资源已被删除,名称已更改或暂时不可用”。

This is where I test my connection: 这是我测试连接的地方: 在此处输入图片说明

I followed the instructions given by Microsoft to implement AADv2 in a bot: 我按照Microsoft的指示在漫游器中实现AADv2:

  • Registered an app in apps.dev.microsoft as a Web Platform with redirect URL: https://token.botframework.com/.auth/web/redirect 使用重定向URL在apps.dev.microsoft中将应用程序注册为Web平台: https ://token.botframework.com/.auth/web/redirect

  • Added OAuth Connection Setting to my bot 向我的机器人添加了OAuth连接设置

I believe it is not relevant, but just in case: the bot is developed with NodeJS using the BotFrameworkv4. 我认为这无关紧要,但以防万一:该机器人是使用BotFrameworkv4与NodeJS一起开发的。

Everything seems to work fine now. 现在一切似乎都正常。

We didn't change anything in the code before or after the error and the authentication is back to normal again. 在错误发生之前或之后,我们没有更改代码中的任何内容,因此身份验证又恢复了正常。 I suppose it was an AAD internal error. 我想这是一个AAD内部错误。

Microsoft answered the issue opened by @thomasmartinsen above, apparently there was a faulty service instance causing this problem, it is now repaired. Microsoft上面回答了@thomasmartinsen提出的问题,显然有错误的服务实例导致了此问题,现已修复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 获取Azure ADv2 Rest Api保护的令牌 - Get Token for Azure ADv2 Rest Api Protected 未找到受众的令牌https://storage.azure.com/ - No token found for audience https://storage.azure.com/ BotFramework.com Oauth令牌错误-400错误的请求 - BotFramework.com Oauth Token Error - 400 Bad Request 在https://dev.botframework.com/上注册Azure Bot - Registering an Azure Bot on https://dev.botframework.com/ 是否可以获取资源或范围为https://graph.microsoft.com/的Azure AD的仅应用程序令牌? - Is it possible to get app only token for Azure AD where the resource or scope is https://graph.microsoft.com/? 在 Azure 函数中找不到类型或命名空间名称 c# (Botframework) - Type or Namespace name not found in Azure Functions c# (Botframework) Update-MgPrivilegedAccessResourceRoleSetting:找不到与请求 URI 'https://api.azrbac.mspim.azure.com 匹配的 HTTP 资源 - Update-MgPrivilegedAccessResourceRoleSetting : No HTTP resource was found that matches the request URI 'https://api.azrbac.mspim.azure.com 在哪里可以找到公钥来验证 directline.botframework.com 对话 JWT 令牌? - Where can I find the public key to verify the directline.botframework.com conversation JWT token? Azure 人脸验证资源未找到 - Azure face verify resource not found 找不到资源 Azure Cosmos DB - Resource Not Found Azure Cosmos DB
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM