node-red / node-red/node-red.github.io
API docs for revoke do not work if token has `+` character
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 118
- 派生
- 161
- 平均合并
- 8 小时 18 分钟
- 30 天内合并 PR
- 4
描述
REF: https://discourse.nodered.org/t/node-red-token-revokation/69881/4?u=steve-mcl
The example to revoke shown here > https://nodered.org/docs/api/admin/oauth#revoking-the-token < fails to logout a user if the data token contains a + character.
Assuming nothing has changed other than being lucky enough to get a token with a + char then we should probably update the example to use --data-urlencode
Also, make clear that the data part token is the token of the user to log out.
e.g.
curl --data-urlencode 'token=USER_TO_LOG_OUT_SECRET_TOKEN' -H "Authorization: Bearer ANY_USER_SECRET_TOKEN" http://localhost:1880/auth/revoke
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
打开链接的 Admin API 文档中关于撤销 token 的部分,并查看当前的 curl 示例。更新示例,以安全地编码 token 数据,并明确说明 data token 是正在注销的用户 token;完成标准是文档中的命令能够处理包含 '+' 的 token。
由索引模型根据 Issue 内容生成。
评估
- 领域
- api, documentation
- Issue 类型
- 文档
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 50/100