protected void checkTenantEnabled(String tenantDomain) { Tenant tenant = getTenant(tenantDomain); // note: System user can access disabled tenants if (tenant == null || !AuthenticationUtil.isRunAsUserTheSystemUser() && !tenant.isEnabled()) { throw new TenantDisabledException(tenantDomain); } }
throw new AuthenticationException(e.getMessage(), e);
throw new AuthenticationException(e.getMessage(), e);
throw new AuthenticationException(tde.getMessage(), tde);
protected void checkTenantEnabled(String tenantDomain) { Tenant tenant = getTenant(tenantDomain); // note: System user can access disabled tenants if (tenant == null || !AuthenticationUtil.isRunAsUserTheSystemUser() && !tenant.isEnabled()) { throw new TenantDisabledException(tenantDomain); } }
throw new AuthenticationException(tde.getMessage(), tde);