Package io.camunda.security.reader
Interface TenantAccessProvider
public interface TenantAccessProvider
-
Method Summary
Modifier and TypeMethodDescription<T> TenantAccesshasTenantAccess(CamundaAuthentication authentication, T resource) Returns aTenantAccessallowing or denying access to the given resource based on the tenant.hasTenantAccessByTenantId(CamundaAuthentication authentication, String tenantId) Returns aTenantAccessallowing or denying access to the given tenant id.resolveTenantAccess(CamundaAuthentication authentication) Resolves the givenauthenticationinto aTenantAccess.
-
Method Details
-
resolveTenantAccess
Resolves the givenauthenticationinto aTenantAccess. The resultingTenantAccess.tenantIds()contains the tenant ids the principal is granted to access if access is not denied. -
hasTenantAccess
Returns aTenantAccessallowing or denying access to the given resource based on the tenant. -
hasTenantAccessByTenantId
Returns aTenantAccessallowing or denying access to the given tenant id.
-