@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
expressionEvaluator, lockFactory, muleContext, oAuthService, parameterExtractors, 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) |
boolean |
equals(Object obj) |
org.mule.runtime.oauth.api.AuthorizationCodeOAuthDancer |
getDancer() |
String |
getExternalCallbackUrl() |
String |
getLocalCallbackConfig() |
String |
getLocalCallbackConfigPath() |
String |
getLocalCallbackUrl() |
ConfigOAuthContext |
getUserOAuthContext() |
int |
hashCode() |
void |
initialise() |
boolean |
isEncodeClientCredentialsInBody() |
void |
retryIfShould(org.mule.runtime.extension.api.runtime.operation.Result<Object,org.mule.extension.http.api.HttpResponseAttributes> firstAttemptResult,
Runnable retryCallback,
Runnable notRetryCallback) |
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, initTokenManager, start, stoppublic boolean equals(Object obj)
equals in class AbstractGrantTypepublic int hashCode()
hashCode in class AbstractGrantTypepublic String getLocalCallbackConfig()
public String getLocalCallbackConfigPath()
public String getLocalCallbackUrl()
public String getExternalCallbackUrl()
public ConfigOAuthContext getUserOAuthContext()
public final void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableinitialise 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)
public org.mule.runtime.oauth.api.AuthorizationCodeOAuthDancer getDancer()
getDancer in class AbstractGrantTypepublic boolean isEncodeClientCredentialsInBody()
isEncodeClientCredentialsInBody in class AbstractGrantTypeCopyright © 2019 MuleSoft, Inc.. All rights reserved.