API docs for revoke do not work if token has `+` character
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 50/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 领域
- api, documentation
调研方向
打开链接的 Admin API 文档中关于撤销 token 的部分,并查看当前的 curl 示例。更新示例,以安全地编码 token 数据,并明确说明 data token 是正在注销的用户 token;完成标准是文档中的命令能够处理包含 '+' 的 token。
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- JavaScript
- 星标
- 118
- 派生
- 161
- 平均合并
- 8 小时 18 分钟
- 30 天内合并 PR
- 4
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
node-red/node-red.github.io 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 68/100
node-red/node-red.github.io#327 ·
-
难度 1/5 1 小时以内 新手友好度 62/100
node-red/node-red.github.io#280 · 1 条评论 ·
-
node-red/node-red.github.io#416 · 1 个 reaction · 已指派 1 人 ·
-
难度 1/5 1-3 小时 新手友好度 50/100
node-red/node-red.github.io#384 ·
-
node-red/node-red.github.io#382 · 1 条评论 · 已指派 1 人 ·
查看 node-red/node-red.github.io 的全部 Issue
相似的 Issue
-
awaiting triage bug Causes friction Hop Gui P1 P2 Transforms
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 70/100
georgestephanis/p2026#40 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
Margaret-Petersen/food-delivery-app-clone-react-native#1981 ·