由于 'oath authorisation url mismatch',在 Slack 中安装 Dialogflow 机器人失败
Installing Dialogflow bot in Slack fails due to 'oath authorisation url mismatch'
我有一个简单的 Dialogflowbot,我正试图将其与我的 Slack 工作区集成。
- 我已经为机器人制作了一个 Slack 应用程序。
- 我已经在 Dialogflow 集成对话框中添加了所有信息。
- 在 Slack 应用端,我设置了机器人用户,添加了事件订阅(包括来自 DF 的 link)并设置了 OAuth 范围并添加了 URL.
但是,机器人不会回复。 DF 日志中的一切看起来都很好,但我在 Slack 中没有收到响应。以前我已经能够通过单击 'Manage distribution' -tab 下的 'Install to Slack' 按钮来解决这种情况。但是,现在当我这样做(并允许安装)时,我收到以下错误消息:
While starting bot the error appears:
Bot start error: oauth_authorization_url_mismatch
从 Slack 文档中我发现这意味着 "The OAuth flow was initiated on an incorrect version of the authorization url. The flow must be initiated via /oauth/authorize." 然而,OAuth URL Dialogflow 提供的形式是 bots.dialogflow.com/slack/<TOKEN>/start
.
我
- 联系了 Slack 和 Dialogflow 支持
- 完成了一堆谷歌搜索和
- 询问了一些也在 Slack 机器人上工作的人
但我一无所获。也许这里有人会 运行 同样的问题会知道该怎么办?
最近 Slack 团队 made a change 在 oauth 身份验证中进行了向后不兼容的更改。此更改破坏了与 Dialogflow 的集成。
幸运的是,旧功能尚未从 Slack 中完全删除。在我上面分享的 link 中(here's again), at the bottom of the documentation there's an option to "Create a classic Slack app". If you click on it, you will be able to create a "legacy" bot and use follow the Dialogflow-Slack integration guide;它将按预期工作。
需要注意的一件重要事情是,您会看到 "Update Scopes" 的选项。小心不要进行此更新,因为这会将身份验证从经典方法更改为新方法,并且会破坏机器人。
最后,the Dialogflow team already knows about this issue 他们正在努力使集成与新的 Slack 身份验证兼容。您可以订阅该 IssueTracker(单击标题旁边的星号)并获取有关其进展的更新。
我有一个简单的 Dialogflowbot,我正试图将其与我的 Slack 工作区集成。
- 我已经为机器人制作了一个 Slack 应用程序。
- 我已经在 Dialogflow 集成对话框中添加了所有信息。
- 在 Slack 应用端,我设置了机器人用户,添加了事件订阅(包括来自 DF 的 link)并设置了 OAuth 范围并添加了 URL.
但是,机器人不会回复。 DF 日志中的一切看起来都很好,但我在 Slack 中没有收到响应。以前我已经能够通过单击 'Manage distribution' -tab 下的 'Install to Slack' 按钮来解决这种情况。但是,现在当我这样做(并允许安装)时,我收到以下错误消息:
While starting bot the error appears:
Bot start error: oauth_authorization_url_mismatch
从 Slack 文档中我发现这意味着 "The OAuth flow was initiated on an incorrect version of the authorization url. The flow must be initiated via /oauth/authorize." 然而,OAuth URL Dialogflow 提供的形式是 bots.dialogflow.com/slack/<TOKEN>/start
.
我
- 联系了 Slack 和 Dialogflow 支持
- 完成了一堆谷歌搜索和
- 询问了一些也在 Slack 机器人上工作的人
但我一无所获。也许这里有人会 运行 同样的问题会知道该怎么办?
最近 Slack 团队 made a change 在 oauth 身份验证中进行了向后不兼容的更改。此更改破坏了与 Dialogflow 的集成。
幸运的是,旧功能尚未从 Slack 中完全删除。在我上面分享的 link 中(here's again), at the bottom of the documentation there's an option to "Create a classic Slack app". If you click on it, you will be able to create a "legacy" bot and use follow the Dialogflow-Slack integration guide;它将按预期工作。
需要注意的一件重要事情是,您会看到 "Update Scopes" 的选项。小心不要进行此更新,因为这会将身份验证从经典方法更改为新方法,并且会破坏机器人。
最后,the Dialogflow team already knows about this issue 他们正在努力使集成与新的 Slack 身份验证兼容。您可以订阅该 IssueTracker(单击标题旁边的星号)并获取有关其进展的更新。