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
Enclosing class:
OauthClientConfigurationProperties.OpenIdClientConfigurationProperties

@ConfigurationProperties("user-info") public static class OauthClientConfigurationProperties.OpenIdClientConfigurationProperties.UserInfoEndpointConfigurationProperties extends DefaultEndpointConfiguration implements UserInfoEndpointConfiguration
User info endpoint configuration.
  • Constructor Details

    • UserInfoEndpointConfigurationProperties

      public UserInfoEndpointConfigurationProperties()
  • Method Details

    • getValidateOpaqueTokens

      public Optional<Boolean> getValidateOpaqueTokens()
      Description copied from interface: UserInfoEndpointConfiguration
      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.
      Specified by:
      getValidateOpaqueTokens in interface UserInfoEndpointConfiguration
      Returns:
      true to always send such tokens, false to never send them, or empty to send them only when this is the only OpenID client configured.
    • setValidateOpaqueTokens

      public void setValidateOpaqueTokens(@Nullable @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. 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