多个重定向 uri 在 Slack 中不起作用

发布于 2025-01-10 12:28:06 字数 358 浏览 5 评论 0原文

我们在应用程序中使用 slack 来使用 oAuth。

要求:

我们想要的是为不同的域配置不同的重定向 uri(例如为本地主机、测试和生产模式配置不同的重定向 uri) 我们在 slack 的应用程序设置中配置了多个重定向 url,并且还在 oAuth 流 url 中添加了redirect_uri。

错误:

但是当用户通过 slack 授权并重定向回 url oAuth 流 url 时,我们会收到“bad_redirect_uri”响应错误。如果我们尝试在应用程序设置中配置单个重定向 uri,那么它就可以正常工作。

谢谢

We are using oAuth using slack in our application.

REQUIREMENT:

What we want is to configure different redirect uri's for different domains ( like different redirect uri's for localhost, test and production mode)
and We have configured multiple redirect url's in app settings of slack and have also added redirect_uri in oAuth flow url as well.

ERROR:

But When user is authorized by slack and redirects back to the url oAuth flow url then we are getting "bad_redirect_uri" error in response. If we try by configuring single redirect uri in app settings, then it works fine.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文