Interface OauthClientConfiguration
- All Superinterfaces:
io.micronaut.core.util.Toggleable
- All Known Implementing Classes:
OauthClientConfigurationProperties
public interface OauthClientConfiguration
extends io.micronaut.core.util.Toggleable
OAuth 2.0 client configuration.
- Since:
- 1.2.0
- Author:
- Sergio del Amo
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Duration
The default advanced expiration value for client credentials grant.static final String
static final AuthenticationMethod
Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescription@NonNull Optional<ClientCredentialsConfiguration>
@NonNull String
@Nullable String
@NonNull GrantType
@NonNull String
getName()
getToken()
default SecureEndpoint
Methods inherited from interface io.micronaut.core.util.Toggleable
isEnabled
-
Field Details
-
DEFAULT_AUTHENTICATION_METHOD
Deprecated, for removal: This API element is subject to removal in a future version.UseDEFAULT_AUTH_METHOD
instead. -
DEFAULT_AUTH_METHOD
- See Also:
-
DEFAULT_ADVANCED_EXPIRATION
The default advanced expiration value for client credentials grant.
-
-
Method Details
-
getName
- Returns:
- The provider name
-
getClientId
- Returns:
- The client id
-
getClientSecret
- Returns:
- The client secret
-
getScopes
- Returns:
- The scopes requested
-
getGrantType
- Returns:
- The grant type
-
getToken
Optional<SecureEndpointConfiguration> getToken()- Returns:
- The optional token endpoint configuration
- See Also:
-
getAuthorization
Optional<OauthAuthorizationEndpointConfiguration> getAuthorization()- Returns:
- The optional authorization endpoint configuration
- See Also:
-
getClientCredentials
- Returns:
- The Client Credentials Configuration
-
getIntrospection
Optional<SecureEndpointConfiguration> getIntrospection()- Returns:
- The introspection endpoint configuration
- See Also:
-
getRevocation
Optional<SecureEndpointConfiguration> getRevocation()- Returns:
- The revocation endpoint configuration
- See Also:
-
getOpenid
Optional<OpenIdClientConfiguration> getOpenid()- Returns:
- The optional OpenID configuration
-
getTokenEndpoint
default SecureEndpoint getTokenEndpoint() throws io.micronaut.context.exceptions.ConfigurationException- Returns:
- The Token endpoint
- Throws:
io.micronaut.context.exceptions.ConfigurationException
- if token endpoint url is not set in configuration
-
DEFAULT_AUTH_METHOD
instead.