| Modifier and Type | Method and Description |
|---|---|
ResourceOwnerOAuthContext |
ClientCredentialsOAuthDancer.getContext()
Retrieves the oauth context.
|
ResourceOwnerOAuthContext |
AuthorizationCodeOAuthDancer.getContextForResourceOwner(String resourceOwnerId)
Retrieves the oauth context for a particular user.
|
| Modifier and Type | Method and Description |
|---|---|
OAuthAuthorizationCodeDancerBuilder |
OAuthAuthorizationCodeDancerBuilder.afterDanceCallback(BiConsumer<AuthorizationCodeDanceCallbackContext,ResourceOwnerOAuthContext> callback)
Allows custom code to be run after doing the request to the provided
tokenUrl and processing its results. |
| Modifier and Type | Method and Description |
|---|---|
default void |
AuthorizationCodeListener.onAuthorizationCompleted(ResourceOwnerOAuthContext context)
Invoked when an authorization dance has been completed.
|
default void |
ClientCredentialsListener.onTokenRefreshed(ResourceOwnerOAuthContext context)
Invoked each time a refresh token operation has been completed successfully
|
default void |
AuthorizationCodeListener.onTokenRefreshed(ResourceOwnerOAuthContext context)
Invoked each time a refresh token operation has been completed successfully
|
| Modifier and Type | Class and Description |
|---|---|
class |
ResourceOwnerOAuthContextWithRefreshState
OAuth state for a particular resource owner which typically represents an user.
|
| Constructor and Description |
|---|
ResourceOwnerOAuthContextWithRefreshState(ResourceOwnerOAuthContext original)
Since the runtime can be upgraded when there are already contexts stored, previous versions must be migrated to the new one.
|
| Modifier and Type | Method and Description |
|---|---|
ResourceOwnerOAuthContext |
DefaultClientCredentialsOAuthDancer.getContext() |
ResourceOwnerOAuthContext |
AbstractOAuthDancer.getContextForResourceOwner(String resourceOwnerId)
Retrieves the oauth context for a particular user.
|
| Modifier and Type | Method and Description |
|---|---|
protected <T> CompletableFuture<T> |
AbstractOAuthDancer.doRefreshTokenRequest(Function<ResourceOwnerOAuthContext,CompletableFuture<T>> tokenRefreshRequester,
ResourceOwnerOAuthContext oauthContext) |
protected List<? extends OAuthStateListener> |
AbstractOAuthDancer.getListenersToNotifyInvalidation(ResourceOwnerOAuthContext resourceOwnerOAuthContext)
Retrieves all the listeners that should be notified of a token invalidation event.
|
protected List<? extends OAuthStateListener> |
DefaultAuthorizationCodeOAuthDancer.getListenersToNotifyInvalidation(ResourceOwnerOAuthContext resourceOwnerOAuthContext)
Retrieves all the listeners that should be notified of a token invalidation event, i.e.
|
protected <T> Function<Throwable,? extends T> |
AbstractOAuthDancer.tokenUrlExceptionHandler(ResourceOwnerOAuthContext defaultUserState) |
protected void |
AbstractOAuthDancer.updateOAuthContextAfterTokenResponse(ResourceOwnerOAuthContext defaultUserState) |
protected void |
AbstractOAuthDancer.updateResourceOwnerOAuthContext(ResourceOwnerOAuthContext resourceOwnerOAuthContext)
Updates the resource owner oauth context information
|
| Modifier and Type | Method and Description |
|---|---|
protected <T> CompletableFuture<T> |
AbstractOAuthDancer.doRefreshToken(Supplier<ResourceOwnerOAuthContext> oauthContextSupplier,
Function<ResourceOwnerOAuthContext,CompletableFuture<T>> tokenRefreshRequester)
Method for refreshing tokens in a thread-safe manner across nodes of a cluster.
|
protected <T> CompletableFuture<T> |
AbstractOAuthDancer.doRefreshToken(Supplier<ResourceOwnerOAuthContext> oauthContextSupplier,
Function<ResourceOwnerOAuthContext,CompletableFuture<T>> tokenRefreshRequester)
Method for refreshing tokens in a thread-safe manner across nodes of a cluster.
|
protected <T> CompletableFuture<T> |
AbstractOAuthDancer.doRefreshTokenRequest(Function<ResourceOwnerOAuthContext,CompletableFuture<T>> tokenRefreshRequester,
ResourceOwnerOAuthContext oauthContext) |
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,ResourceOwnerOAuthContext> |
AbstractOAuthDancerBuilder.tokensStore |
| Modifier and Type | Method and Description |
|---|---|
OAuthAuthorizationCodeDancerBuilder |
DefaultOAuthAuthorizationCodeDancerBuilder.afterDanceCallback(BiConsumer<AuthorizationCodeDanceCallbackContext,ResourceOwnerOAuthContext> afterDanceCallback) |
| Constructor and Description |
|---|
AbstractOAuthDancerBuilder(org.mule.runtime.api.scheduler.SchedulerService schedulerService,
org.mule.runtime.api.lock.LockFactory lockProvider,
Map<String,ResourceOwnerOAuthContext> tokensStore,
HttpClientFactory baseHttpClientFactory,
org.mule.runtime.api.el.MuleExpressionLanguage expressionEvaluator) |
DefaultOAuthAuthorizationCodeDancerBuilder(org.mule.runtime.api.scheduler.SchedulerService schedulerService,
org.mule.runtime.api.lock.LockFactory lockProvider,
Map<String,ResourceOwnerOAuthContext> tokensStore,
org.mule.runtime.http.api.HttpService httpService,
HttpClientFactory httpClientFactory,
org.mule.runtime.api.el.MuleExpressionLanguage expressionEvaluator) |
DefaultOAuthClientCredentialsDancerBuilder(org.mule.runtime.api.scheduler.SchedulerService schedulerService,
org.mule.runtime.api.lock.LockFactory lockProvider,
Map<String,ResourceOwnerOAuthContext> tokensStore,
HttpClientFactory httpClientFactory,
org.mule.runtime.api.el.MuleExpressionLanguage expressionEvaluator) |
| Modifier and Type | Method and Description |
|---|---|
BiConsumer<AuthorizationCodeDanceCallbackContext,ResourceOwnerOAuthContext> |
DefaultAuthorizationCodeOAuthDancerConfig.getAfterDanceCallback() |
Map<String,ResourceOwnerOAuthContext> |
OAuthDancerConfig.getTokensStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultAuthorizationCodeOAuthDancerConfig.setAfterDanceCallback(BiConsumer<AuthorizationCodeDanceCallbackContext,ResourceOwnerOAuthContext> afterDanceCallback) |
void |
OAuthDancerConfig.setTokensStore(Map<String,ResourceOwnerOAuthContext> tokensStore) |
Copyright © 2024. All rights reserved.