Interface IdcsMtRoleMapperRxProvider.MultitenancyEndpoints

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

public static interface IdcsMtRoleMapperRxProvider.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

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

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

      default boolean useClientCredentials(String tenantId, URI 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