Remove MultitenancyIndicator as not used (#1787)
Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com>
This commit is contained in:
@@ -9,7 +9,6 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.autoconfigure.security;
|
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.StaticAuthenticationProvider;
|
||||||
import org.eclipse.hawkbit.im.authentication.TenantAwareUserProperties;
|
import org.eclipse.hawkbit.im.authentication.TenantAwareUserProperties;
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
||||||
@@ -46,13 +45,4 @@ public class InMemoryUserManagementAutoConfiguration extends GlobalAuthenticatio
|
|||||||
public void configure(final AuthenticationManagerBuilder auth) {
|
public void configure(final AuthenticationManagerBuilder auth) {
|
||||||
auth.authenticationProvider(authenticationProvider);
|
auth.authenticationProvider(authenticationProvider);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @return the multi-tenancy indicator to disallow multi-tenancy
|
|
||||||
*/
|
|
||||||
@Bean
|
|
||||||
@ConditionalOnMissingBean
|
|
||||||
MultitenancyIndicator multiTenancyIndicator() {
|
|
||||||
return () -> false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -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();
|
|
||||||
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user