Class OauthClientConfigurationProperties.OpenIdClientConfigurationProperties
java.lang.Object
io.micronaut.security.oauth2.configuration.OauthClientConfigurationProperties.OpenIdClientConfigurationProperties
- All Implemented Interfaces:
io.micronaut.core.naming.Named
,OpenIdClientConfiguration
- Enclosing class:
- OauthClientConfigurationProperties
@ConfigurationProperties("openid")
public static class OauthClientConfigurationProperties.OpenIdClientConfigurationProperties
extends Object
implements OpenIdClientConfiguration
OpenID client configuration.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Authorization endpoint configuration.static class
End session endpoint configuration.static class
Registration endpoint configuration.static class
Token endpoint configuration.static class
User info endpoint configuration. -
Method Summary
Modifier and TypeMethodDescription@NonNull String
@NonNull EndSessionEndpointConfiguration
@NonNull String
getName()
getToken()
void
setAuthorization
(OauthClientConfigurationProperties.OpenIdClientConfigurationProperties.AuthorizationEndpointConfigurationProperties authorization) Sets the authorization endpoint configuration.void
setConfigurationPath
(@NonNull String configurationPath) The configuration path to discover openid configuration.void
setEndSession
(@NonNull OauthClientConfigurationProperties.OpenIdClientConfigurationProperties.EndSessionConfigurationProperties endSession) Sets the end session endpoint configuration.void
URL using the https scheme with no query or fragment component that the Open ID provider asserts as its issuer identifier.void
setJwksUri
(String jwksUri) The JWKS signature URI.void
setRegistration
(OauthClientConfigurationProperties.OpenIdClientConfigurationProperties.RegistrationEndpointConfigurationProperties registration) Sets the registration endpoint configuration.void
setToken
(OauthClientConfigurationProperties.OpenIdClientConfigurationProperties.TokenEndpointConfigurationProperties token) Sets the token endpoint configuration.void
setUserInfo
(OauthClientConfigurationProperties.OpenIdClientConfigurationProperties.UserInfoEndpointConfigurationProperties userInfo) Sets the user info endpoint configuration.
-
Method Details
-
getName
- Specified by:
getName
in interfaceio.micronaut.core.naming.Named
-
getIssuer
- Specified by:
getIssuer
in interfaceOpenIdClientConfiguration
- Returns:
- URL that the OpenID provider asserts as its issuer identifier.
-
setIssuer
URL using the https scheme with no query or fragment component that the Open ID provider asserts as its issuer identifier.- Parameters:
issuer
- The issuer
-
getConfigurationPath
- Specified by:
getConfigurationPath
in interfaceOpenIdClientConfiguration
- Returns:
- The OpenID configuration path
-
setConfigurationPath
The configuration path to discover openid configuration. Default ("/.well-known/openid-configuration").- Parameters:
configurationPath
- The configuration path
-
getJwksUri
- Specified by:
getJwksUri
in interfaceOpenIdClientConfiguration
- Returns:
- The JWKS configuration
-
setJwksUri
The JWKS signature URI.- Parameters:
jwksUri
- The signature uri
-
getRegistration
- Specified by:
getRegistration
in interfaceOpenIdClientConfiguration
- Returns:
- The registration endpoint configuration
- See Also:
-
setRegistration
public void setRegistration(OauthClientConfigurationProperties.OpenIdClientConfigurationProperties.RegistrationEndpointConfigurationProperties registration) Sets the registration endpoint configuration.- Parameters:
registration
- The registration endpoint configuration
-
getUserInfo
- Specified by:
getUserInfo
in interfaceOpenIdClientConfiguration
- Returns:
- The user info endpoint configuration
- See Also:
-
setUserInfo
public void setUserInfo(OauthClientConfigurationProperties.OpenIdClientConfigurationProperties.UserInfoEndpointConfigurationProperties userInfo) Sets the user info endpoint configuration.- Parameters:
userInfo
- The user info endpoint configuration
-
getAuthorization
- Specified by:
getAuthorization
in interfaceOpenIdClientConfiguration
- Returns:
- The authorization endpoint configuration
- See Also:
-
setAuthorization
public void setAuthorization(OauthClientConfigurationProperties.OpenIdClientConfigurationProperties.AuthorizationEndpointConfigurationProperties authorization) Sets the authorization endpoint configuration.- Parameters:
authorization
- The authorization endpoint configuration
-
getToken
- Specified by:
getToken
in interfaceOpenIdClientConfiguration
- Returns:
- The token endpoint configuration
- See Also:
-
setToken
public void setToken(OauthClientConfigurationProperties.OpenIdClientConfigurationProperties.TokenEndpointConfigurationProperties token) Sets the token endpoint configuration.- Parameters:
token
- The token endpoint configuration
-
getEndSession
- Specified by:
getEndSession
in interfaceOpenIdClientConfiguration
- Returns:
- The end session configuration
- See Also:
-
setEndSession
public void setEndSession(@NonNull @NonNull OauthClientConfigurationProperties.OpenIdClientConfigurationProperties.EndSessionConfigurationProperties endSession) Sets the end session endpoint configuration.- Parameters:
endSession
- End session endpoint configuration
-