@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @MinMuleVersion(value="4.5.0") public @interface ClientCredentials
ConnectionProvider, indicates that the provided connections will be authenticated
using Client Credentials 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 |
tokenUrl |
| 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 |
public abstract String tokenUrl
public abstract String accessTokenExpr
tokenUrl() to extract the access tokenpublic abstract String expirationExpr
tokenUrl() to extract the access token expirationpublic abstract String defaultScopes
public abstract CredentialsPlacement credentialsPlacement
CredentialsPlacement. Defaults to CredentialsPlacement.BASIC_AUTH_HEADERCopyright © 2022. All rights reserved.