Ejemplo n.º 1
0
 @Override
 public void removeAccessTokenUsingRefreshToken(OAuth2RefreshToken refreshToken) {
   /*Query query = new Query();
   query.addCriteria(Criteria.where("refreshToken").is(refreshToken.getValue()));
   OAuth2AuthenticationAccessToken token = mongoTemplate.findOne(query, OAuth2AuthenticationAccessToken.class, "oauth2_access_token");*/
   OAuth2AuthenticationAccessToken token =
       oAuth2AccessTokenDao.findByRefreshToken(refreshToken.getValue());
   if (token != null) {
     oAuth2AccessTokenDao.delete(token);
   }
 }