@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 |
String |
defaultScopes |
String |
expirationExpr |
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
Copyright © 2018. All rights reserved.