- All Implemented Interfaces:
- SecurityConfigurer<Filter,WebSecurity>, WebSecurityConfigurer<WebSecurity>
- Enclosing class:
- AdminWebApplication.WebSecurityConfiguration
@Order(value=2)
@Configuration
public static class AdminWebApplication.WebSecurityConfiguration.AdminApiHttpSecurityConfiguration
extends WebSecurityConfigurerAdapter
Spring security configuration for the /admin/api URI.
This configuration turns on HTTP Basic authentication. CSRF
protection is only enabled if there is an HTTP session (and thus the
user might be logged in using form-based authentication). The HTTP
Basic authentication is only used by web-service clients (not by
browsers), thus CSRF protection is not needed in this case (and
actually not possible because there is no session).
- Author:
- Sebastian Marsching