Interface IdcsMtRoleMapperProvider.MultitenancyEndpoints
- All Known Implementing Classes:
IdcsMtRoleMapperProvider.DefaultMultitenancyEndpoints
- Enclosing class:
- IdcsMtRoleMapperProvider
public static interface IdcsMtRoleMapperProvider.MultitenancyEndpoints
Multitenant endpoints for accessing IDCS services.
-
Method Summary
Modifier and TypeMethodDescriptionassertEndpoint(String tenantId) Asserter endpoint for a specific tenant.The tenant id of the infrastructure tenant.tokenEndpoint(String tenantId) Token endpoint for a specific tenant.default booleanuseClientCredentials(String tenantId, WebTarget tokenEndpoint) Whether client credentials may be attached to a token request for the resolved endpoint.default StringvalidateTenantId(String tenantId) Validate or normalize a tenant ID extracted from the request.
-
Method Details
-
idcsInfraTenantId
String idcsInfraTenantId()The tenant id of the infrastructure tenant.- Returns:
- id of the tenant
-
assertEndpoint
Asserter endpoint for a specific tenant.- Parameters:
tenantId- id of tenant to get the endpoint for- Returns:
- web target for the tenant
-
tokenEndpoint
Token endpoint for a specific tenant.- Parameters:
tenantId- id of tenant to get the endpoint for- Returns:
- web target for the tenant
-
useClientCredentials
Whether client credentials may be attached to a token request for the resolved endpoint. Custom endpoint implementations should override this method to returntrueonly for endpoints they have validated as trusted for the provided tenant. The default returnsfalse.- Parameters:
tenantId- id of tenant to get the endpoint fortokenEndpoint- resolved token endpoint- Returns:
- whether client credentials may be attached
-
validateTenantId
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
-