美文网首页
令牌撤销 Endpoint

令牌撤销 Endpoint

作者: 灭蒙鸟 | 来源:发表于2017-02-25 17:59 被阅读222次

layout: docs-default

令牌撤销

这个endpoint用来撤销访问令牌(仅参考令牌)和更新令牌。
实现了令牌撤销规格(RFC 7009).

支持一下参数:

  • token (必填)
    • 待撤销的令牌
  • token_type_hint
    • 访问令牌或者更新令牌

请求必须来自已经通过认证。
例子:

POST /connect/revocation HTTP/1.1
Host: server.example.com
Content-Type: application/x-www-form-urlencoded
Authorization: Basic czZCaGRSa3F0MzpnWDFmQmF0M2JW

token=45ghiukldjahdnhzdauz&token_type_hint=refresh_token

相关文章

网友评论

      本文标题:令牌撤销 Endpoint

      本文链接:https://www.haomeiwen.com/subject/wtnpyttx.html