简体   繁体   English

在 Denylist 策略上撤销对 devise-jwt 的访问

[英]Revoke access to devise-jwt on Denylist strategy

I am using devise-jwt gem, from what I see on the wrapped gem https://github.com/waiting-for-dev/warden-jwt_auth there is a static method revoke_jwt(payload, user) I want to write a script that will revoke access on a specific user, what will be the payload in this case?我正在使用 devise-jwt gem,从我在包装的 gem https://github.com/waiting-for-dev/warden-jwt_auth上看到的,有一个 static 方法revoke_jwt(payload, user)我想写一个脚本这将撤销特定用户的访问权限,在这种情况下有效负载是什么?

If you are using denylist you should add the jti value to the denylist table on revoke.如果您正在使用拒绝列表,则应在撤销时将 jti 值添加到拒绝列表表中。 Look at mine.看看我的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM