All checks were successful
Build, Push and Deploy / build-and-deploy (push) Successful in 55s
- added organizations - added industries - added logo in 2 colors for light and dark theme - improved authorization to allow multi tenancy - added Bruno configs
18 lines
411 B
Java
18 lines
411 B
Java
package de.iwomm.propify_api.security;
|
|
|
|
public class TenantContext {
|
|
private static final ThreadLocal<String> CURRENT_TENANT = new ThreadLocal<>();
|
|
|
|
public static void setTenantId(String tenantId) {
|
|
CURRENT_TENANT.set(tenantId);
|
|
}
|
|
|
|
public static String getTenantId() {
|
|
return CURRENT_TENANT.get();
|
|
}
|
|
|
|
public static void clear() {
|
|
CURRENT_TENANT.remove();
|
|
}
|
|
}
|