如何根据用户定位要撤销的参考令牌? [英] How to locate reference tokens to revoke based on the user?

查看:93
本文介绍了如何根据用户定位要撤销的参考令牌?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将IdSvr客户端配置为返回参考令牌,以使其可撤销.我还使用IdentityServer.EntityFramework库将生成的参考令牌存储在Tokens表中.令牌吊销端点要求吊销令牌.作为管理员,我想调用吊销,但是我不知道访问令牌,因为密钥是散列存储在数据库中的.管理员如何找到要撤消用户的令牌?

I configured my IdSvr client to return reference tokens to make them revocable. I'm also using the IdentityServer.EntityFramework library to store the generated reference tokens in the Tokens table. The Token Revocation endpoint requires the token to revoke. As an administrator I want to call revocation but I don't know the access token as the key is stored hashed in the database. How would the administrator locate the tokens to revoke for a user?

推荐答案

您可以按主题和客户ID撤消.

You can revoke by subject and client id.

这篇关于如何根据用户定位要撤销的参考令牌?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆