第52章 撤销端点(Revocation Endpoint)

此端点允许撤消访问令牌(仅限引用令牌)和刷新令牌。它实现了令牌撤销规范(RFC 7009)。

  • token
    要撤销的令牌(必填)

  • token_type_hint
    access_tokenrefresh_token(可选)

示例

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

注意
您可以使用IdentityModel客户端库以编程方式从.NET代码访问吊销端点。有关更多信息,请查看IdentityModel文档

github地址

原文地址:https://www.cnblogs.com/thinksjay/p/10787324.html