Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在受保护资源的控制器中将访问令牌作为字符串获取?我想ConsumerTokenServices.revokeToken(String tokenValue)从这个控制器打电话?
ConsumerTokenServices.revokeToken(String tokenValue)
查看AuthenticationDetails经过身份验证的主体中的 。默认情况下,它将包含访问令牌值以及 IP 和路径信息。
AuthenticationDetails