[英]Rails revoke token using doorkeeper gem
I am using Doorkeeper gem with device to authenticate my rest api application calls.我正在使用带有设备的 Doorkeeper gem 来验证我的 rest api 应用程序调用。
While deleting the user, I am just inactivating the user in back-end database so I wanna to revoke access token while I am deleting the account to prevent access by deleted user access token.在删除用户时,我只是在后端数据库中停用用户,因此我想在删除帐户时撤销访问令牌以防止被删除的用户访问令牌访问。
Looks like POST /oauth/revoke
should do the job:看起来POST /oauth/revoke
应该可以完成这项工作:
https://github.com/doorkeeper-gem/doorkeeper/wiki/API-endpoint-descriptions-and-examples#post-oauthrevoke https://github.com/doorkeeper-gem/doorkeeper/wiki/API-endpoint-descriptions-and-examples#post-oauthrevoke
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.