OAuth 2.0 REST template
Provides client-side OAuth 2.0 support to HTTP (REST) request.
REST template that is able to make OAuth 2.0 authenticated REST requests with the credentials of the provided resource.
This eMagiz version of OAuth2RestTemplate
uses scope "thread"
instead of the scopes "session"
and "request"
used by the standard Spring Security OAuth version. This enables the OAuth2RestTemplate
to run without a web application context. See also OAuth 2.0 access token advice on how to integrate this with a Spring Integration message flow.
Resource
The OAuth 2.0 resource governing the configuration of this client.
Required
Retry bad access tokens
Whether a request that has an existing access token and which then leads to an AccessTokenRequiredException
should be retried (immediately, once). Useful if the remote server doesn't recognize an old token which is stored in the client, but is happy to re-grant it.
Default is true
.
Id
Name that uniquely identifies this flow component.
Required