Interface OpenIdClientConfiguration
- All Superinterfaces:
io.micronaut.core.naming.Named
- All Known Implementing Classes:
OauthClientConfigurationProperties.OpenIdClientConfigurationProperties
public interface OpenIdClientConfiguration
extends io.micronaut.core.naming.Named
Configuration for an OpenID client.
- Since:
- 1.2.0
- Author:
- Sergio del Amo
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription@NonNull EndSessionEndpointConfigurationThe value expected in theissclaim of ID tokens, if it differs from the URL used to fetch the discovery document (for example, when discovery is fetched over an internal URL but the provider issues tokens with its public URL).getToken()default booleandefault booleanMethods inherited from interface io.micronaut.core.naming.Named
getName
-
Field Details
-
DEFAULT_PROTECTED_RESOURCE_METADATA
-
-
Method Details
-
isFetchConfiguration
default boolean isFetchConfiguration()- Returns:
- Whether the OpenID configuration should be fetched from the discovery endpoint derived from
getIssuer()andgetConfigurationPath(). - Since:
- 5.3.0
-
getIssuer
-
getIssuerIdentifier
The value expected in theissclaim of ID tokens, if it differs from the URL used to fetch the discovery document (for example, when discovery is fetched over an internal URL but the provider issues tokens with its public URL). Defaults togetIssuer().- Returns:
- The expected issuer identifier.
- Since:
- 5.5.2
-
getConfigurationPath
String getConfigurationPath()- Returns:
- The OpenID configuration path
-
getJwksUri
-
getRegistration
Optional<EndpointConfiguration> getRegistration()- Returns:
- The registration endpoint configuration
- See Also:
-
getUserInfo
Optional<EndpointConfiguration> getUserInfo()- Returns:
- The user info endpoint configuration
- See Also:
-
getAuthorization
Optional<AuthorizationEndpointConfiguration> getAuthorization()- Returns:
- The authorization endpoint configuration
- See Also:
-
getToken
Optional<TokenEndpointConfiguration> getToken()- Returns:
- The token endpoint configuration
- See Also:
-
getEndSession
@NonNull EndSessionEndpointConfiguration getEndSession()- Returns:
- The end session configuration
- See Also:
-
isProtectedResourceMetadata
default boolean isProtectedResourceMetadata()- Returns:
- whether the protected resource metadata endpoint should expose the OpenID issuer as an authorization server.
- Since:
- 4.14.0
-