You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the customization for the TenantHasAuthoritiesFunctionDefinitionEnricher type to simplify policy conditions.
AC:
The goal is to add new type that implements com.github.starnowski.posmulten.postgresql.core.rls.TenantHasAuthoritiesFunctionInvocationFactory.
The returnTenantHasAuthoritiesFunctionInvocation method should return a simple condition statement that compares tenant column id with the value from a function that returns the current tenant value.
For example:
tenant_id = get_current_tenant_id()
Generated policies should look like below:
USING (tenant_id = get_current_tenant_id())
WITH CHECK (tenant_id = get_current_tenant_id());
The text was updated successfully, but these errors were encountered:
Add the customization for the TenantHasAuthoritiesFunctionDefinitionEnricher type to simplify policy conditions.
AC:
The goal is to add new type that implements com.github.starnowski.posmulten.postgresql.core.rls.TenantHasAuthoritiesFunctionInvocationFactory.
The returnTenantHasAuthoritiesFunctionInvocation method should return a simple condition statement that compares tenant column id with the value from a function that returns the current tenant value.
For example:
tenant_id = get_current_tenant_id()
Generated policies should look like below:
USING (tenant_id = get_current_tenant_id())
WITH CHECK (tenant_id = get_current_tenant_id());
The text was updated successfully, but these errors were encountered: