0

We know if we utilise the Resource Owner Password Credential flow for doorkeeper, the generated JSON params for POST are based on the URL here:

{
  "grant_type"    : "password",
  "username"      : "[email protected]",
  "password"      : "sekret",
  "client_id"     : "the_client_id",
  "client_secret" : "the_client_secret"
}

I would like to perform a token revocation via POST to /oauth/revoke; thus, what parameters which I need in order to perform the POST via JSON?

Thanks!

1 Answer 1

3

Ok I got it figured out; basically I need to send the following:

curl -H "Authorization: Bearer <token>" \
     -F token=<token>\
     -X POST http://livedo-gunter.codio.io:3000/oauth/revoke

This is based on the link here. Basic authorization has to be enabled first though.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.