第52章 撤销端点(Revocation Endpoint) - Identity Server 4 中文文档(v1.0.0)

此端点允许撤消访问令牌(仅限引用令牌)和刷新令牌。它实现了令牌撤销规范(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地址

posted @ 2019-04-28 22:21  ThinkJay  阅读(586)  评论(0编辑  收藏  举报