
spring securityhttps://www.youtube.com/watch?v=R8m48ARSTm4
汪云飞记录本
Spring
展开
-
Spring Cloud下OAUTH2注销的实现
接上文Spring Cloud下基于OAUTH2认证授权的实现,我们将基于Spring Cloud实现OAUTH2的注销功能。1 增加自定义注销Endpoint所谓注销只需将access_token和refresh_token失效即可,我们模仿org.springframework.security.oauth2.provider.endpoint.TokenEndpoint写一个使...2017-07-25 12:40:30 · 5796 阅读 · 1 评论 -
Spring Cloud下OAUTH2注销的实现
oken失效即可,我们模仿org.springframework.security.oauth2.provider.endpoint.TokenEndpoint写一个使access_token和refresh_token失效的Endpoint:@FrameworkEndpointpublic class RevokeTokenEndpoint { @Autowired @Qualifier("consumerTokenServices") Con2017-07-25 12:40:30 · 1695 阅读 · 0 评论