public interface OAuth2WebClient extends WebClient
WebClientOAuth2.
This client wraps a WebClient and makes it session aware adding features to it:
access_token if no user is createdaccess_token if current user is expired| Modifier and Type | Method and Description |
|---|---|
static OAuth2WebClient |
create(WebClient webClient,
OAuth2Auth oAuth2Auth)
Create a session aware web client using the provided
webClient instance. |
static OAuth2WebClient |
create(WebClient webClient,
OAuth2Auth oAuth2Auth,
OAuth2WebClientOptions options)
Create a session aware web client using the provided
webClient instance. |
OAuth2WebClient |
withCredentials(Credentials credentials)
Mark that request should be dispatched with authentication obtained from passed
OAuth2Auth provider |
close, create, create, delete, delete, delete, deleteAbs, get, get, get, getAbs, head, head, head, headAbs, patch, patch, patch, patchAbs, post, post, post, postAbs, put, put, put, putAbs, request, request, request, request, request, request, request, request, requestAbs, requestAbs, wrap, wrapstatic OAuth2WebClient create(WebClient webClient, OAuth2Auth oAuth2Auth)
webClient instance.webClient - the web client instanceoAuth2Auth - Configured oAuth2Auth provider to be used when withCredentials(Credentials) usedstatic OAuth2WebClient create(WebClient webClient, OAuth2Auth oAuth2Auth, OAuth2WebClientOptions options)
webClient instance.webClient - the web client instanceoAuth2Auth - Configured oAuth2Auth provider to be used when withCredentials(Credentials) usedoptions - extra configuration for this objectOAuth2WebClient withCredentials(Credentials credentials)
OAuth2Auth providerCopyright © 2022 Eclipse. All rights reserved.