public class AutoAuthorizationCodeTokenRequestHandler extends AbstractAuthorizationCodeTokenRequestHandler
Modifier and Type | Field and Description |
---|---|
static String |
OK_STATUS_CODE |
static String |
REDIRECT_STATUS_CODE |
static String |
STATUS_CODE_FLOW_VAR_NAME |
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, setOauthConfig
getMuleContext, getRefreshTokenWhen, invokeTokenUrl, setMuleContext, setRefreshTokenWhen, setTlsContextFactory, setTokenUrl
public static final String STATUS_CODE_FLOW_VAR_NAME
public static final String OK_STATUS_CODE
public static final String REDIRECT_STATUS_CODE
public AutoAuthorizationCodeTokenRequestHandler()
public void setTokenResponseConfiguration(TokenResponseConfiguration tokenResponseConfiguration)
public void init() throws MuleException
init
in class AbstractAuthorizationCodeTokenRequestHandler
MuleException
- if the listener couldn't be created.protected MessageProcessor createRedirectUrlProcessor()
createRedirectUrlProcessor
in class AbstractAuthorizationCodeTokenRequestHandler
public void doRefreshToken(MuleEvent currentEvent, ResourceOwnerOAuthContext resourceOwnerOAuthContext)
doRefreshToken
in class AbstractAuthorizationCodeTokenRequestHandler
currentEvent
- the event being processed when the refresh token was required.resourceOwnerOAuthContext
- oauth context for who we need to update the access token.Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.