简体   繁体   English

为禁用用户刷新 WSO2IS 访问令牌

[英]WSO2IS access token refreshed for disabled user

In WSO2 Identity Server 5.9.0 I am using OAuth 2.0 Authorization Code.在 WSO2 Identity Server 5.9.0 中,我使用的是 OAuth 2.0 授权码。 Access tokens are short-lived and are refreshed by refresh tokens.访问令牌是短暂的,由刷新令牌刷新。 It implements current recommendation for SPAs and it works fine.它实现了当前对 SPA 的建议,并且运行良好。

I also configured account disabling and I though that when I disable user which holds refresh token the user won't be able to get new access token.我还配置了帐户禁用,但是当我禁用持有刷新令牌的用户时,用户将无法获得新的访问令牌。 But /oauth2/token endpoint is issuing new tokens no matter if user is disabled or not.但是/oauth2/token端点正在发布新令牌,无论用户是否被禁用。 Is this expected?这是预期的吗? How can I deny given user to refresh access token?如何拒绝给定用户刷新访问令牌?

I found a workaround.我找到了解决方法。 If locking is used instead of disabling then it works as expected.如果使用锁定而不是禁用,那么它会按预期工作。 Submitted issue to WSO2.向 WSO2 提交问题

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

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