0

我们知道,如果我们为门卫使用资源所有者密码凭证流,则为 POST 生成的 JSON 参数基于此处的 URL :

{
  "grant_type"    : "password",
  "username"      : "user@example.com",
  "password"      : "sekret",
  "client_id"     : "the_client_id",
  "client_secret" : "the_client_secret"
}

我想通过 POST 对 /oauth/revoke 执行令牌撤销;因此,我需要哪些参数才能通过 JSON 执行 POST?

谢谢!

4

1 回答 1

3

好的,我明白了;基本上我需要发送以下内容:

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

这是基于这里的链接。不过,必须先启用基本授权。

于 2014-09-09T08:56:18.200 回答