gpt4 book ai didi

javascript - Slack OAuth 设置步骤 1 - 使用 Postman 进行测试 - 错误 : Invalid client_id parameter

转载 作者:行者123 更新时间:2023-11-29 23:16:19 25 4
gpt4 key购买 nike

我正在设置 oauth following the process laid out by Slack对于我的 Slack 应用程序(我之前为同一个应用程序使用过 token )。不幸的是,我在第 1 步遇到了障碍。我正在使用 Postman 来测试 GEThttps://slack.com/oauth/authorize 的请求,方法是传递沿着 3 个参数(client_idscoperedirect_uri)期待一些能让我更接近接收 code 的东西(第2步)。但我收到的是 Invalid client_id parameter 的错误消息。我已经根据 Slack 提供的内容多次检查了 Postman 中的 client_id,但无法弄清楚这个问题的根源。我做错了什么?

此外,我正在考虑使用 Passport 和 Passport-Slack 策略进行身份验证。

enter image description here

enter image description here

最佳答案

这不起作用的原因是您已经在 header 中定义了属性,但您需要将这些属性作为 GET 参数提供。

要修复,请将它们从 header 中移除并将它们添加到 URL(例如 ?client_id=xxx&scope=xxx)或单击 旁边的 Params发送按钮直接输入。

关于javascript - Slack OAuth 设置步骤 1 - 使用 Postman 进行测试 - 错误 : Invalid client_id parameter,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52672722/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com