@MinMuleVersion(value="4.1") @Target(value=TYPE) @Retention(value=RUNTIME) @Documented public @interface AuthorizationCode
ConnectionProvider, indicates that the provided connections will be authenticated
using Authorization-Code grant type of the OAuth2 specification.
This annotation also contains a series of properties which describe the OAuth provider to authenticate against.
The annotated ConnectionProvider is still free to implement PoolingConnectionProvider or
CachedConnectionProvider interfaces if needed, but connectivity testing will be disabled.
| Modifier and Type | Required Element and Description |
|---|---|
String |
accessTokenUrl |
String |
authorizationUrl |
| Modifier and Type | Optional Element and Description |
|---|---|
String |
accessTokenExpr |
CredentialsPlacement |
credentialsPlacement
Allows to customize the placement that the client credentials will have in the request.
|
String |
defaultScopes |
String |
expirationExpr |
boolean |
includeRedirectUriInRefreshTokenRequest
Whether the redirect_uri parameter should be included in the refresh token request.
|
String |
refreshTokenExpr |
public abstract String accessTokenUrl
public abstract String authorizationUrl
public abstract String accessTokenExpr
accessTokenUrl() to extract the access tokenpublic abstract String expirationExpr
accessTokenUrl() to extract the access token expirationpublic abstract String refreshTokenExpr
accessTokenUrl() to extract the refresh tokenpublic abstract String defaultScopes
public abstract CredentialsPlacement credentialsPlacement
CredentialsPlacement. Defaults to CredentialsPlacement.BODYCopyright © 2025 MuleSoft, Inc.. All rights reserved.