Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API docs for revoke do not work if token has + character #298

Open
Steve-Mcl opened this issue Nov 1, 2022 · 0 comments
Open

API docs for revoke do not work if token has + character #298

Steve-Mcl opened this issue Nov 1, 2022 · 0 comments

Comments

@Steve-Mcl
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant