@Configuration @EnableWebSecurity public static class InterNodeCommunicationWebApplication.WebSecurityConfiguration extends WebSecurityConfigurerAdapter
Spring Security configuration. This configuration sets up the
AuthenticationManager and enables the Web MVC security. Global
method security is not enabled because we use path-based protection.
This configuration turns on HTTP Basic authentication. CSRF protection is not enabled because we do not have browser clients and without a session, we cannot use it anyway.
| Constructor and Description |
|---|
WebSecurityConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure(AuthenticationManagerBuilder auth) |
protected void |
configure(HttpSecurity http) |
AuthenticationProvider |
interNodeCommunicationAuthenticationProvider()
Creates the authentication provider for this web application.
|
authenticationManager, authenticationManagerBean, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBeanprotected void configure(HttpSecurity http) throws Exception
configure in class WebSecurityConfigurerAdapterExceptionprotected void configure(AuthenticationManagerBuilder auth) throws Exception
configure in class WebSecurityConfigurerAdapterException@Bean public AuthenticationProvider interNodeCommunicationAuthenticationProvider()
InterNodeCommunicationAuthenticationProvider.Copyright © 2011–2017 aquenos GmbH. All rights reserved.