Class IdcsMtRoleMapperRxProvider.DefaultMultitenancyEndpoints
java.lang.Object
io.helidon.security.providers.idcs.mapper.IdcsMtRoleMapperRxProvider.DefaultMultitenancyEndpoints
- All Implemented Interfaces:
IdcsMtRoleMapperRxProvider.MultitenancyEndpoints
- Enclosing class:
- IdcsMtRoleMapperRxProvider
protected static class IdcsMtRoleMapperRxProvider.DefaultMultitenancyEndpoints
extends Object
implements IdcsMtRoleMapperRxProvider.MultitenancyEndpoints
Default implementation of the
IdcsMtRoleMapperRxProvider.MultitenancyEndpoints.
Caches the endpoints per tenant.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates endpoints from provided OIDC configuration using default URIs. -
Method Summary
Modifier and TypeMethodDescriptionassertEndpoint(String tenantId) Asserter endpoint URI for a specific tenant.The tenant id of the infrastructure tenant.tokenEndpoint(String tenantId) Token endpoint URI for a specific tenant.booleanuseClientCredentials(String tenantId, URI tokenEndpoint) Whether client credentials may be attached to a token request for the resolved endpoint.validateTenantId(String tenantId) Validate or normalize a tenant ID extracted from the request.
-
Constructor Details
-
DefaultMultitenancyEndpoints
Creates endpoints from provided OIDC configuration using default URIs.
- For Asserter endpoint:
/admin/v1/Asserter - For Token endpoint:
/oauth2/v1/token?IDCS_CLIENT_TENANT=
- Parameters:
config- IDCS base configuration
- For Asserter endpoint:
-
-
Method Details
-
idcsInfraTenantId
Description copied from interface:IdcsMtRoleMapperRxProvider.MultitenancyEndpointsThe tenant id of the infrastructure tenant.- Specified by:
idcsInfraTenantIdin interfaceIdcsMtRoleMapperRxProvider.MultitenancyEndpoints- Returns:
- id of the tenant
-
assertEndpoint
Description copied from interface:IdcsMtRoleMapperRxProvider.MultitenancyEndpointsAsserter endpoint URI for a specific tenant.- Specified by:
assertEndpointin interfaceIdcsMtRoleMapperRxProvider.MultitenancyEndpoints- Parameters:
tenantId- id of tenant to get the endpoint for- Returns:
- URI for the tenant
-
tokenEndpoint
Description copied from interface:IdcsMtRoleMapperRxProvider.MultitenancyEndpointsToken endpoint URI for a specific tenant.- Specified by:
tokenEndpointin interfaceIdcsMtRoleMapperRxProvider.MultitenancyEndpoints- Parameters:
tenantId- id of tenant to get the endpoint for- Returns:
- URI for the tenant
-
useClientCredentials
Description copied from interface:IdcsMtRoleMapperRxProvider.MultitenancyEndpointsWhether 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.- Specified by:
useClientCredentialsin interfaceIdcsMtRoleMapperRxProvider.MultitenancyEndpoints- Parameters:
tenantId- id of tenant to get the endpoint fortokenEndpoint- resolved token endpoint- Returns:
- whether client credentials may be attached
-
validateTenantId
Description copied from interface:IdcsMtRoleMapperRxProvider.MultitenancyEndpointsValidate 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.- Specified by:
validateTenantIdin interfaceIdcsMtRoleMapperRxProvider.MultitenancyEndpoints- Parameters:
tenantId- extracted tenant ID- Returns:
- tenant ID to use for endpoint resolution
-