API docs for revoke do not work if token has `+` character
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 50/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Stale
- Domain
- api, documentation
Research direction
Open the linked Admin API documentation section on revoking the token and review the current curl example. Update the example to encode token data safely and clarify that the data token is the user token being logged out; done means the documented command handles tokens containing '+'.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- JavaScript
- Stars
- 118
- Forks
- 161
- Avg merge
- 8h 18m
- Merged PRs (30d)
- 4
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from node-red/node-red.github.io
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
node-red/node-red.github.io#327 ·
-
docs/getting-started/local.md: npm command line is now deprecated, use --location=global not -g Open
Difficulty 1/5 Under an hour Newbie friendliness 62/100
node-red/node-red.github.io#280 · 1 comment ·
-
node-red/node-red.github.io#416 · 1 reaction · 1 assignee ·
-
Difficulty 1/5 1-3 hours Newbie friendliness 50/100
node-red/node-red.github.io#384 ·
-
node-red/node-red.github.io#382 · 1 comment · 1 assignee ·
All issues in node-red/node-red.github.io
Similar issues
-
ai-observability bug team/ai-observability
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
AllTheMods/ATM-10-L#19 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
SignalK/n2k-signalk#345 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
JuliaPluto/PlutoPlotly.jl#72 ·