public class AutoAuthorizationCodeTokenRequestHandler extends AbstractAuthorizationCodeTokenRequestHandler
AbstractTokenRequestHandler.TokenResponse, AbstractTokenRequestHandler.TokenUrlResponseException| Modifier and Type | Field and Description |
|---|---|
static String |
AUTHORIZATION_STATUS_QUERY_PARAM_KEY |
static int |
FAILURE_PROCESSING_REDIRECT_URL_REQUEST_STATUS |
static int |
NO_AUTHORIZATION_CODE_STATUS |
static int |
TOKEN_NOT_FOUND_STATUS |
static int |
TOKEN_URL_CALL_FAILED_STATUS |
muleContext, parameterExtractors, responseAccessToken, responseExpiresIn, responseRefreshToken| Constructor and Description |
|---|
AutoAuthorizationCodeTokenRequestHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected Function<org.mule.runtime.extension.api.runtime.operation.Result<Object,HttpRequestAttributes>,org.mule.runtime.extension.api.runtime.operation.Result<String,HttpResponseAttributes>> |
createRedirectUrlProcessor() |
void |
doRefreshToken(ResourceOwnerOAuthContext resourceOwnerOAuthContext)
Executes a refresh token for a particular user.
|
void |
init()
Starts the http listener for the redirect url callback.
|
createListenerForCallbackUrl, getOauthConfig, refreshToken, setOauthConfig, start, stopgetMuleContext, getRefreshTokenWhen, getTokenUrl, initialise, invokeTokenUrl, isEmpty, processTokenResponse, setMuleContext, setTlsContextFactory, setTokenUrl, tokenResponseContentIsValidpublic static final String AUTHORIZATION_STATUS_QUERY_PARAM_KEY
public static final int NO_AUTHORIZATION_CODE_STATUS
public static final int TOKEN_URL_CALL_FAILED_STATUS
public static final int TOKEN_NOT_FOUND_STATUS
public static final int FAILURE_PROCESSING_REDIRECT_URL_REQUEST_STATUS
public AutoAuthorizationCodeTokenRequestHandler()
public void init()
throws org.mule.runtime.api.exception.MuleException
init in class AbstractAuthorizationCodeTokenRequestHandlerorg.mule.runtime.api.exception.MuleException - if the listener couldn't be created.protected Function<org.mule.runtime.extension.api.runtime.operation.Result<Object,HttpRequestAttributes>,org.mule.runtime.extension.api.runtime.operation.Result<String,HttpResponseAttributes>> createRedirectUrlProcessor()
createRedirectUrlProcessor in class AbstractAuthorizationCodeTokenRequestHandlerpublic void doRefreshToken(ResourceOwnerOAuthContext resourceOwnerOAuthContext)
doRefreshToken in class AbstractAuthorizationCodeTokenRequestHandlerresourceOwnerOAuthContext - oauth context for who we need to update the access token.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.