OAuth2FailureContext
When an OAuth 2.0 authorization operation fails, the error and error description provided by the authorization service are injected into this context for use downstream.
For example, when the
OAuth2TokenExchangeFilter fails
to exchange a token, it injects the error and description into this context.
The context is passed into calls to the failureHandler
in the
OAuth2TokenExchangeFilter.
This context supports OAuth 2.0 error messages in the format given by RFC 6749.