@Alias(value="authorization-code-grant-type") @NoExtend @NoInstantiate public class DefaultAuthorizationCodeGrantType extends AbstractGrantType
oauth:authentication-code-config.
This config will: - If the authorization-request is defined then it will create a flow listening for an user call to begin the oauth login. - If the token-request is defined then it will create a flow for listening in the redirect uri so we can get the authentication code and retrieve the access token
customParameterExtractors, expressionEvaluator, lockFactory, muleContext, oAuthService, resolver, responseAccessToken, responseExpiresIn, responseRefreshToken, tokenManager| Constructor and Description |
|---|
DefaultAuthorizationCodeGrantType() |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(org.mule.runtime.http.api.domain.message.request.HttpRequestBuilder builder) |
void |
doInitialize() |
boolean |
equals(Object obj) |
String |
getAuthorizationUrl() |
Map<String,String> |
getCustomParameters() |
org.mule.runtime.oauth.api.AuthorizationCodeOAuthDancer |
getDancer() |
String |
getExternalCallbackUrl() |
org.mule.runtime.http.api.HttpService |
getHttpService() |
String |
getLocalAuthorizationUrl() |
org.mule.runtime.extension.api.runtime.parameter.Literal<String> |
getLocalAuthorizationUrlResourceOwnerId() |
String |
getLocalCallbackConfig() |
String |
getLocalCallbackConfigPath() |
String |
getLocalCallbackUrl() |
org.mule.runtime.extension.api.runtime.parameter.ParameterResolver<String> |
getResourceOwnerId() |
org.mule.runtime.extension.api.runtime.parameter.Literal<String> |
getState() |
ConfigOAuthContext |
getUserOAuthContext() |
int |
hashCode() |
boolean |
isEncodeClientCredentialsInBody() |
void |
retryIfShould(org.mule.runtime.extension.api.runtime.operation.Result<Object,org.mule.extension.http.api.HttpResponseAttributes> firstAttemptResult,
Runnable retryCallback,
Runnable notRetryCallback) |
void |
setAuthorizationUrl(String authorizationUrl) |
void |
setEncodeClientCredentialsInBody(boolean encodeClientCredentialsInBody) |
void |
setExternalCallbackUrl(String externalCallbackUrl) |
void |
setHttpService(org.mule.runtime.http.api.HttpService httpService) |
void |
setLocalAuthorizationUrl(String localAuthorizationUrl) |
void |
setLocalAuthorizationUrlResourceOwnerId(org.mule.runtime.extension.api.runtime.parameter.Literal<String> localAuthorizationUrlResourceOwnerId) |
void |
setLocalCallbackConfig(String localCallbackConfig) |
void |
setLocalCallbackConfigPath(String localCallbackConfigPath) |
void |
setLocalCallbackUrl(String localCallbackUrl) |
void |
setResourceOwnerId(org.mule.runtime.extension.api.runtime.parameter.ParameterResolver<String> resourceOwnerId) |
void |
setState(org.mule.runtime.extension.api.runtime.parameter.Literal<String> state) |
boolean |
shouldRetry(org.mule.runtime.extension.api.runtime.operation.Result<Object,org.mule.extension.http.api.HttpResponseAttributes> firstAttemptResult) |
buildAuthorizationHeaderContent, configureBaseDancer, dispose, getClientId, getClientSecret, getCustomParameterExtractors, getRefreshTokenWhen, getResponseAccessToken, getResponseExpiresIn, getResponseRefreshToken, getScopes, getTlsContextFactory, getTokenUrl, initialise, initTokenManager, isDefaultTokenManager, readsAuthenticatedResponseBody, setRefreshTokenWhen, start, stoppublic boolean equals(Object obj)
equals in class AbstractGrantTypepublic int hashCode()
hashCode in class AbstractGrantTypepublic void setLocalCallbackConfig(String localCallbackConfig)
public void setLocalCallbackConfigPath(String localCallbackConfigPath)
public void setLocalCallbackUrl(String localCallbackUrl)
public void setExternalCallbackUrl(String externalCallbackUrl)
public org.mule.runtime.extension.api.runtime.parameter.Literal<String> getState()
public void setState(org.mule.runtime.extension.api.runtime.parameter.Literal<String> state)
public org.mule.runtime.extension.api.runtime.parameter.Literal<String> getLocalAuthorizationUrlResourceOwnerId()
public void setLocalAuthorizationUrlResourceOwnerId(org.mule.runtime.extension.api.runtime.parameter.Literal<String> localAuthorizationUrlResourceOwnerId)
public String getLocalAuthorizationUrl()
public void setLocalAuthorizationUrl(String localAuthorizationUrl)
public String getAuthorizationUrl()
public void setAuthorizationUrl(String authorizationUrl)
public org.mule.runtime.extension.api.runtime.parameter.ParameterResolver<String> getResourceOwnerId()
public void setResourceOwnerId(org.mule.runtime.extension.api.runtime.parameter.ParameterResolver<String> resourceOwnerId)
public void setEncodeClientCredentialsInBody(boolean encodeClientCredentialsInBody)
public org.mule.runtime.http.api.HttpService getHttpService()
public void setHttpService(org.mule.runtime.http.api.HttpService httpService)
public String getLocalCallbackConfig()
public String getLocalCallbackConfigPath()
public String getLocalCallbackUrl()
public String getExternalCallbackUrl()
public ConfigOAuthContext getUserOAuthContext()
public final void doInitialize()
throws org.mule.runtime.api.lifecycle.InitialisationException
doInitialize in class AbstractGrantTypeorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic void authenticate(org.mule.runtime.http.api.domain.message.request.HttpRequestBuilder builder)
throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionpublic boolean shouldRetry(org.mule.runtime.extension.api.runtime.operation.Result<Object,org.mule.extension.http.api.HttpResponseAttributes> firstAttemptResult) throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionpublic void retryIfShould(org.mule.runtime.extension.api.runtime.operation.Result<Object,org.mule.extension.http.api.HttpResponseAttributes> firstAttemptResult, Runnable retryCallback, Runnable notRetryCallback) throws org.mule.runtime.extension.api.exception.ModuleException
org.mule.runtime.extension.api.exception.ModuleExceptionpublic org.mule.runtime.oauth.api.AuthorizationCodeOAuthDancer getDancer()
getDancer in class AbstractGrantTypepublic boolean isEncodeClientCredentialsInBody()
isEncodeClientCredentialsInBody in class AbstractGrantTypeCopyright © 2025 MuleSoft, Inc.. All rights reserved.