`
pengfeifei26
  • 浏览: 232226 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

oauth2.0怎么验证accesstoken是否正确或合法

 
阅读更多
验证access_token流程  OAuth2AuthenticationProcessingFilter 类
Authentication authResult = authenticationManager.authenticate(authentication);
——》OAuth2AuthenticationManager authenticate 方法  OAuth2Authentication auth = tokenServices.loadAuthentication(token);
——》DefaultTokenServices  loadAuthentication 方法 OAuth2AccessToken accessToken = tokenStore.readAccessToken(accessTokenValue);
——》JdbcTokenStore readAccessToken 方法



oauth2 源码地址

https://github.com/SpringSource/spring-security-oauth/wiki/oauth2

https://github.com/spring-projects
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics