Interface IdcsMtRoleMapperProvider.MultitenancyEndpoints

All Known Implementing Classes:
IdcsMtRoleMapperProvider.DefaultMultitenancyEndpoints
Enclosing class:
IdcsMtRoleMapperProvider

public static interface IdcsMtRoleMapperProvider.MultitenancyEndpoints
Multitenant endpoints for accessing IDCS services.
  • Method Details

    • idcsInfraTenantId

      String idcsInfraTenantId()
      The tenant id of the infrastructure tenant.
      Returns:
      id of the tenant
    • assertEndpoint

      WebTarget assertEndpoint(String tenantId)
      Asserter endpoint for a specific tenant.
      Parameters:
      tenantId - id of tenant to get the endpoint for
      Returns:
      web target for the tenant
    • tokenEndpoint

      WebTarget tokenEndpoint(String tenantId)
      Token endpoint for a specific tenant.
      Parameters:
      tenantId - id of tenant to get the endpoint for
      Returns:
      web target for the tenant
    • useClientCredentials

      default boolean useClientCredentials(String tenantId, WebTarget tokenEndpoint)
      Whether client credentials may be attached to a token request for the resolved endpoint. Custom endpoint implementations should override this method to return true only for endpoints they have validated as trusted for the provided tenant. The default returns false.
      Parameters:
      tenantId - id of tenant to get the endpoint for
      tokenEndpoint - resolved token endpoint
      Returns:
      whether client credentials may be attached
    • validateTenantId

      default String validateTenantId(String tenantId)
      Validate or normalize a tenant ID extracted from the request. Custom endpoint implementations can use the tenant ID format required by their endpoint mapping. The default returns the tenant ID unchanged.
      Parameters:
      tenantId - extracted tenant ID
      Returns:
      tenant ID to use for endpoint resolution