Remove MultitenancyIndicator as not used (#1787)

Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2024-07-26 09:34:11 +03:00
committed by GitHub
parent 950ed398cc
commit 6b8917e229
2 changed files with 0 additions and 42 deletions

View File

@@ -9,7 +9,6 @@
*/
package org.eclipse.hawkbit.autoconfigure.security;
import org.eclipse.hawkbit.im.authentication.MultitenancyIndicator;
import org.eclipse.hawkbit.im.authentication.StaticAuthenticationProvider;
import org.eclipse.hawkbit.im.authentication.TenantAwareUserProperties;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
@@ -46,13 +45,4 @@ public class InMemoryUserManagementAutoConfiguration extends GlobalAuthenticatio
public void configure(final AuthenticationManagerBuilder auth) {
auth.authenticationProvider(authenticationProvider);
}
/**
* @return the multi-tenancy indicator to disallow multi-tenancy
*/
@Bean
@ConditionalOnMissingBean
MultitenancyIndicator multiTenancyIndicator() {
return () -> false;
}
}

View File

@@ -1,32 +0,0 @@
/**
* Copyright (c) 2015 Bosch Software Innovations GmbH and others
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.eclipse.hawkbit.im.authentication;
import org.springframework.security.authentication.AuthenticationProvider;
/**
* Indicates if the SP server runs in multi-tenancy mode. By means e.g. if a
* login screen needs to allow to specifiy the tenant to login.
*
* This can defere e.g. in case if the {@link AuthenticationProvider} allows
* {@link TenantUserPasswordAuthenticationToken} tokens or not.
*
*
*/
@FunctionalInterface
public interface MultitenancyIndicator {
/**
* @return {@code true} if multi-tenancy is supported, otherwise
* {@code false}.
*/
boolean isMultiTenancySupported();
}