@Configuration @EnableConfigurationProperties(value=WaffleProperties.class) public class WaffleAutoConfiguration extends Object
WaffleProperties.| Constructor and Description |
|---|
WaffleAutoConfiguration(WaffleProperties properties)
Instantiates a new waffle auto configuration.
|
| Modifier and Type | Method and Description |
|---|---|
waffle.servlet.spi.BasicSecurityFilterProvider |
basicSecurityFilterProvider(waffle.windows.auth.impl.WindowsAuthProviderImpl windowsAuthProvider)
The
BasicSecurityFilterProvider that provides Basic authentication fall back when using single-sign-on
with unsupported browser. |
org.springframework.security.core.GrantedAuthority |
defaultGrantedAuthority()
The default
GrantedAuthority that is applied to all users. |
GrantedAuthorityFactory |
grantedAuthorityFactory()
The default
GrantedAuthorityFactory that is used. |
NegotiateSecurityFilterEntryPoint |
negotiateSecurityFilterEntryPoint(waffle.servlet.spi.SecurityFilterProviderCollection providers)
The
NegotiateSecurityFilterEntryPoint for use by the Spring Security AuthenticationManager when
using single-sign-on. |
waffle.servlet.spi.NegotiateSecurityFilterProvider |
negotiateSecurityFilterProvider(waffle.windows.auth.impl.WindowsAuthProviderImpl windowsAuthProvider)
The
NegotiateSecurityFilterProvider that provides single-sign-on authentication using Negotiate with the
configured protocols. |
NegotiateSecurityFilter |
waffleNegotiateSecurityFilter(waffle.servlet.spi.SecurityFilterProviderCollection providers,
org.springframework.security.core.GrantedAuthority defaultGrantedAuthority,
GrantedAuthorityFactory grantedAuthorityFactory)
The
NegotiateSecurityFilter to be used by Spring Security AuthenticationManager when using
single-sign-on. |
org.springframework.boot.web.servlet.FilterRegistrationBean |
waffleNegotiateSecurityFilterRegistrationBean(NegotiateSecurityFilter filter)
When using Spring Boot,
Filters are automatically registered. |
waffle.servlet.spi.SecurityFilterProviderCollection |
waffleSecurityFilterProviderCollection(waffle.servlet.spi.NegotiateSecurityFilterProvider negotiateProvider,
waffle.servlet.spi.BasicSecurityFilterProvider basicProvider)
The
SecurityFilterProviderCollection that includes NegotiateSecurityFilterProvider and/or
BasicSecurityFilterProvider depending on configuration. |
WindowsAuthenticationProvider |
waffleSpringAuthenticationProvider(waffle.windows.auth.impl.WindowsAuthProviderImpl waffleWindowsAuthProvider,
org.springframework.security.core.GrantedAuthority defaultGrantedAuthority,
GrantedAuthorityFactory grantedAuthorityFactory)
The
WindowsAuthenticationProvider that can be used by Spring Security by an AuthenticationManager
to provide authentication. |
waffle.windows.auth.impl.WindowsAuthProviderImpl |
waffleWindowsAuthProvider()
The
WindowsAuthProviderImpl instance. |
public WaffleAutoConfiguration(WaffleProperties properties)
properties - the properties@Bean @ConditionalOnMissingBean public waffle.windows.auth.impl.WindowsAuthProviderImpl waffleWindowsAuthProvider()
WindowsAuthProviderImpl instance.@Bean @ConditionalOnMissingBean(name="defaultGrantedAuthority") public org.springframework.security.core.GrantedAuthority defaultGrantedAuthority()
GrantedAuthority that is applied to all users. Default can be overridden by defining a bean
of type GrantedAuthority with name "defaultGrantedAuthority".@Bean @ConditionalOnMissingBean public GrantedAuthorityFactory grantedAuthorityFactory()
GrantedAuthorityFactory that is used. Default can be overridden by defining a bean of type
GrantedAuthorityFactory.@Bean @ConditionalOnMissingBean public WindowsAuthenticationProvider waffleSpringAuthenticationProvider(waffle.windows.auth.impl.WindowsAuthProviderImpl waffleWindowsAuthProvider, @Qualifier(value="defaultGrantedAuthority") org.springframework.security.core.GrantedAuthority defaultGrantedAuthority, GrantedAuthorityFactory grantedAuthorityFactory)
WindowsAuthenticationProvider that can be used by Spring Security by an AuthenticationManager
to provide authentication.waffleWindowsAuthProvider - the waffle windows auth providerdefaultGrantedAuthority - the default granted authoritygrantedAuthorityFactory - the granted authority factory@Bean @ConditionalOnProperty(value="waffle.sso.enabled") @ConditionalOnMissingBean public waffle.servlet.spi.NegotiateSecurityFilterProvider negotiateSecurityFilterProvider(waffle.windows.auth.impl.WindowsAuthProviderImpl windowsAuthProvider)
NegotiateSecurityFilterProvider that provides single-sign-on authentication using Negotiate with the
configured protocols. Instantiated only when sso is enabled.windowsAuthProvider - the windows auth provider@Bean @ConditionalOnProperty(value="waffle.sso.enabled") @ConditionalOnMissingBean public waffle.servlet.spi.BasicSecurityFilterProvider basicSecurityFilterProvider(waffle.windows.auth.impl.WindowsAuthProviderImpl windowsAuthProvider)
BasicSecurityFilterProvider that provides Basic authentication fall back when using single-sign-on
with unsupported browser. Instantiated only when sso is enabled.windowsAuthProvider - the windows auth provider@Bean
@ConditionalOnProperty(value="waffle.sso.enabled")
@ConditionalOnMissingBean
public waffle.servlet.spi.SecurityFilterProviderCollection waffleSecurityFilterProviderCollection(waffle.servlet.spi.NegotiateSecurityFilterProvider negotiateProvider,
waffle.servlet.spi.BasicSecurityFilterProvider basicProvider)
SecurityFilterProviderCollection that includes NegotiateSecurityFilterProvider and/or
BasicSecurityFilterProvider depending on configuration. Instantiated only when sso is enabled.negotiateProvider - the negotiate providerbasicProvider - the basic provider@Bean @ConditionalOnProperty(value="waffle.sso.enabled") @ConditionalOnMissingBean public NegotiateSecurityFilterEntryPoint negotiateSecurityFilterEntryPoint(waffle.servlet.spi.SecurityFilterProviderCollection providers)
NegotiateSecurityFilterEntryPoint for use by the Spring Security AuthenticationManager when
using single-sign-on. Instantiated only when sso is enabled.providers - the providers@Bean @ConditionalOnProperty(value="waffle.sso.enabled") @ConditionalOnMissingBean public NegotiateSecurityFilter waffleNegotiateSecurityFilter(waffle.servlet.spi.SecurityFilterProviderCollection providers, @Qualifier(value="defaultGrantedAuthority") org.springframework.security.core.GrantedAuthority defaultGrantedAuthority, GrantedAuthorityFactory grantedAuthorityFactory)
NegotiateSecurityFilter to be used by Spring Security AuthenticationManager when using
single-sign-on. Instantiated only when sso is enabled.providers - the providersdefaultGrantedAuthority - the default granted authoritygrantedAuthorityFactory - the granted authority factory@Bean @ConditionalOnProperty(value="waffle.sso.enabled") public org.springframework.boot.web.servlet.FilterRegistrationBean waffleNegotiateSecurityFilterRegistrationBean(NegotiateSecurityFilter filter)
Filters are automatically registered. In this case, the filter must be manually
configured within an AuthenticationManager and so we must prevent Spring Boot from registering it a
second time.filter - The filter that we will be disabling from auto registration.Copyright © 2010–2020 com.github.waffle. All rights reserved.