public interface ExtensionsOAuthManager
Among other things, it manages access token callbacks, authorization endpoints, etc.
| Modifier and Type | Method and Description |
|---|---|
Optional<ResourceOwnerOAuthContext> |
getOAuthContext(OAuthConfig config) |
void |
invalidate(String ownerConfigName,
String resourceOwnerId)
Invalidates the OAuth information of a particular resourceOwnerId
|
void |
refreshToken(String ownerConfigName,
String resourceOwnerId,
OAuthConnectionProviderWrapper connectionProvider)
Performs the refresh token flow
|
AuthorizationCodeOAuthDancer |
register(OAuthConfig config)
Becomes aware of the given
config and makes sure that the access token callback
and authorization endpoints are provisioned. |
AuthorizationCodeOAuthDancer |
register(OAuthConfig config,
List<AuthorizationCodeListener> listeners) |
AuthorizationCodeOAuthDancer register(OAuthConfig config) throws org.mule.runtime.api.exception.MuleException
config and makes sure that the access token callback
and authorization endpoints are provisioned.config - an OAuthConfigorg.mule.runtime.api.exception.MuleExceptionAuthorizationCodeOAuthDancer register(OAuthConfig config, List<AuthorizationCodeListener> listeners)
void invalidate(String ownerConfigName, String resourceOwnerId)
ownerConfigName - the name of the extension config which obtained the tokenresourceOwnerId - the id of the user to be invalidatedvoid refreshToken(String ownerConfigName, String resourceOwnerId, OAuthConnectionProviderWrapper connectionProvider)
ownerConfigName - the name of the extension config which obtained the tokenresourceOwnerId - the id of the user to be invalidatedconnectionProvider - the OAuthConnectionProviderWrapper which produces the connectionsOptional<ResourceOwnerOAuthContext> getOAuthContext(OAuthConfig config)
config - an OAuthConfigResourceOwnerOAuthContext for the given config or Optional.empty()
if authorization hasn't yet taken place or has been invalidatedCopyright © 2003–2024 MuleSoft, Inc.. All rights reserved.