I'm facing an issue with spring security oauth 2, at first connexion I'm getting my token and refresh token, everything is ok.
but it's seems the token is never checked, when it expire no refresh request is made, nothing happen and i'm still authenticated.
I debugged the issue and i noticed that my OAuth2ClientAuthenticationProcessingFilter is never called after first authentication.
here is how i define this filter :
@Bean
public OAuth2ClientAuthenticationProcessingFilter oAuth2ClientAuthenticationProcessingFilter(){
OAuth2ClientAuthenticationProcessingFilter filter = new OAuth2ClientAuthenticationProcessingFilter("/myApp/**|/api/**");
filter.setRestTemplate(oAuth2RestTemplate);
filter.setTokenServices(tokenService);
return filter;
}
any help would be welcome, it's acouple of hours i'm struggling on this one