I have some users who are accessing some APIs with valid JWT token but because their tasks on their side take much more time than the token expire time, when they come to the API again, the JWT token expires already. They shouldn't refresh their token, they have to come the same token and reach some APIs even with the expired tokens.
I am using the spring.security.oauth2.resourceserver
to authenticate with our authorization server.
So, what I am trying to achieve is that if the token origin is correct and with that good format I need to accept the request even with the expired token.
Yes, I know it seems not a good approach but if this is possible please educate me.
I already read about ClientHttpRequestInterceptor
from here and dived to the source code of resource server
but couldn't find the appropriate way.