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 booleanMethods inherited from interface io.micronaut.core.naming.Named
getName
-
Field Details
-
DEFAULT_PROTECTED_RESOURCE_METADATA
-
-
Method Details
-
getIssuer
- Returns:
- URL that the OpenID provider asserts as its issuer identifier.
-
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:
- 4.18.2
-
getConfigurationPath
String getConfigurationPath()- Returns:
- The OpenID configuration path
-
getJwksUri
- Returns:
- The JWKS configuration
-
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
- 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
-