Interface OidcTenantConfiguration.PrincipalMapper

Enclosing interface:
OidcTenantConfiguration

public static interface OidcTenantConfiguration.PrincipalMapper
  • Method Details

    • idClaimPath

      Optional<String> idClaimPath()
      The path to the claim that contains the principal ID. Nested paths can be expressed using "/" as a separator, e.g. "resource_access/client1/roles" would look for the "roles" field inside the "client1" object inside the "resource_access" object in the token claims.

      Optional. Either this option or nameClaimPath() must be provided.

    • nameClaimPath

      Optional<String> nameClaimPath()
      The claim that contains the principal name. Nested paths can be expressed using "/" as a separator, e.g. "resource_access/client1/roles" would look for the "roles" field inside the "client1" object inside the "resource_access" object in the token claims.

      Optional. Either this option or idClaimPath() must be provided.

    • type

      @WithDefault("default") String type()
      The type of the principal mapper. Must be a registered PrincipalMapper identifier.