Class OauthClientConfigurationProperties.OpenIdClientConfigurationProperties.UserInfoEndpointConfigurationProperties
java.lang.Object
io.micronaut.security.oauth2.configuration.endpoints.DefaultEndpointConfiguration
io.micronaut.security.oauth2.configuration.OauthClientConfigurationProperties.OpenIdClientConfigurationProperties.UserInfoEndpointConfigurationProperties
- All Implemented Interfaces:
EndpointConfiguration,UserInfoEndpointConfiguration
@ConfigurationProperties("user-info")
public static class OauthClientConfigurationProperties.OpenIdClientConfigurationProperties.UserInfoEndpointConfigurationProperties
extends DefaultEndpointConfiguration
implements UserInfoEndpointConfiguration
User info endpoint configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionWhether bearer tokens which cannot be attributed to this provider (opaque tokens, or JWTs without anissclaim) are sent to this provider's UserInfo endpoint for validation.voidsetValidateOpaqueTokens(@Nullable Boolean validateOpaqueTokens) Whether bearer tokens which cannot be attributed to this provider (opaque tokens, or JWTs without an `iss` claim) are sent to this provider's UserInfo endpoint for validation.Methods inherited from class io.micronaut.security.oauth2.configuration.endpoints.DefaultEndpointConfiguration
getUrl, setUrlMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.security.oauth2.configuration.endpoints.EndpointConfiguration
getUrl
-
Constructor Details
-
UserInfoEndpointConfigurationProperties
public UserInfoEndpointConfigurationProperties()
-
-
Method Details
-
getValidateOpaqueTokens
Description copied from interface:UserInfoEndpointConfigurationWhether bearer tokens which cannot be attributed to this provider (opaque tokens, or JWTs without anissclaim) are sent to this provider's UserInfo endpoint for validation. JWTs whoseissclaim identifies a different issuer are never sent, regardless of this setting. A JWT whose issuer is expected by several providers cannot be attributed to one of them and is handled like an opaque token.- Specified by:
getValidateOpaqueTokensin interfaceUserInfoEndpointConfiguration- Returns:
trueto always send such tokens,falseto never send them, or empty to send them only when this is the only OpenID client configured.
-
setValidateOpaqueTokens
Whether bearer tokens which cannot be attributed to this provider (opaque tokens, or JWTs without an `iss` claim) are sent to this provider's UserInfo endpoint for validation. JWTs whose `iss` claim identifies a different issuer are never sent, regardless of this setting. A JWT whose issuer is expected by several providers cannot be attributed to one of them and is handled like an opaque token. If not set, such tokens are sent only when this is the only OpenID client configured.- Parameters:
validateOpaqueTokens- Whether to validate tokens which cannot be attributed to this provider against its UserInfo endpoint.- Since:
- 4.18.2
-