public class AutoAuthorizationCodeTokenRequestHandler extends AbstractAuthorizationCodeTokenRequestHandler
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 |
logger| Constructor and Description |
|---|
AutoAuthorizationCodeTokenRequestHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected MessageProcessor |
createRedirectUrlProcessor() |
void |
doRefreshToken(MuleEvent currentEvent,
ResourceOwnerOAuthContext resourceOwnerOAuthContext)
Executes a refresh token for a particular user.
|
void |
init()
Starts the http listener for the redirect url callback.
|
void |
setTokenResponseConfiguration(TokenResponseConfiguration tokenResponseConfiguration) |
createListenerForRedirectUrl, getOauthConfig, refreshToken, setOauthConfiggetMuleContext, getRefreshTokenWhen, getTokenUrl, invokeTokenUrl, setMuleContext, setRefreshTokenWhen, setTlsContextFactory, setTokenUrlpublic 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 setTokenResponseConfiguration(TokenResponseConfiguration tokenResponseConfiguration)
public void init()
throws MuleException
init in class AbstractAuthorizationCodeTokenRequestHandlerMuleException - if the listener couldn't be created.protected MessageProcessor createRedirectUrlProcessor()
createRedirectUrlProcessor in class AbstractAuthorizationCodeTokenRequestHandlerpublic void doRefreshToken(MuleEvent currentEvent, ResourceOwnerOAuthContext resourceOwnerOAuthContext)
doRefreshToken in class AbstractAuthorizationCodeTokenRequestHandlercurrentEvent - the event being processed when the refresh token was required.resourceOwnerOAuthContext - oauth context for who we need to update the access token.Copyright © 2003–2021 MuleSoft, Inc.. All rights reserved.