How can a Spring Security OAuth2 failure handler access the token used by the failed request?
My custom OAuth2AuthorizationFailureHandler can load the current cached token, but I need the token used by the request that failed so that invalidation does not remove its replacement. These can differ when a replacement is stored while a request is in flight. In a non-servlet client_credentials application, concurrent callers share an OAuth2ClientHttpRequestInterceptor, a client registration and a principal. The ordering I need to handle is: A resource request is sent with T1. Another caller stores T2 for the same registration/principal while that request is in flight. The request using T1 r
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.