@OAuth2(accessTokenRegex="\"access_token\"\\s*:\\s*\"([^&]+?)\"",expirationRegex="\"expires_in\"\\s*:\"\\s*([^&]+?)\",",refreshTokenRegex="\"refresh_token\"\\s*:\\s*\"([^&]+?)\"",configElementName="config-with-oauth",friendlyName="OAuth 2.0 Connection",authorizationUrl="https://login.microsoftonline.com/oauth2/authorize",accessTokenUrl="https://login.microsoftonline.com/oauth2/token",authorizationParameters={@OAuthAuthorizationParameter(name="scope",type=java.lang.String.class,description="Scope",defaultValue="openid",optional=true),@OAuthAuthorizationParameter(name="response_mode",type=java.lang.String.class,description="The response mode must be: query",defaultValue="query",optional=true),@OAuthAuthorizationParameter(name="resource",type=java.lang.String.class,description="Endpoint URL")}) public class OAuth2Config extends BaseConfig
connectionTimeout, proxyHost, proxyPassword, proxyPort, proxyUsername, readTimeout
Constructor and Description |
---|
OAuth2Config() |
Modifier and Type | Method and Description |
---|---|
String |
getAuthorizationToken() |
String |
getClientId() |
String |
getClientSecret() |
DynamicsConnection |
getConnection() |
String |
getEndpoint() |
String |
getoAuth2AccessToken() |
void |
postAuthorize() |
void |
setClientId(String clientId) |
void |
setClientSecret(String clientSecret) |
void |
setConnection(DynamicsConnection connection) |
void |
setEndpoint(String endpoint) |
void |
setoAuth2AccessToken(String oAuth2AccessToken) |
addEndpoint, addSlash, addVersion, getConnectionTimeout, getProxyHost, getProxyPassword, getProxyPort, getProxyUsername, getReadTimeout, getVersion, prepareHttpClientFactory, prepareHttpClientFactory, prepareProxyDetails, prepareRequestConfig, setConnectionTimeout, setProxyHost, setProxyPassword, setProxyPort, setProxyUsername, setReadTimeout, setVersion
@OAuthPostAuthorization public void postAuthorize() throws org.mule.api.ConnectionException
org.mule.api.ConnectionException
public DynamicsConnection getConnection()
public void setConnection(DynamicsConnection connection)
public String getoAuth2AccessToken()
public void setoAuth2AccessToken(String oAuth2AccessToken)
public String getClientId()
public void setClientId(String clientId)
public String getClientSecret()
public void setClientSecret(String clientSecret)
public String getEndpoint()
public String getAuthorizationToken()
public void setEndpoint(String endpoint)
Copyright © 2010–2020. All rights reserved.