Browse Source

WebSecurityConfigurerAdapter JavaDoc

Closes gh-8784
5.1.x
Romil Patel 6 years ago committed by Josh Cummings
parent
commit
0c85dd9cd1
No known key found for this signature in database
GPG Key ID: 49EF60DD7FF83443
  1. 13
      config/src/main/java/org/springframework/security/config/annotation/web/configuration/WebSecurityConfigurerAdapter.java

13
config/src/main/java/org/springframework/security/config/annotation/web/configuration/WebSecurityConfigurerAdapter.java

@ -332,6 +332,15 @@ public abstract class WebSecurityConfigurerAdapter implements @@ -332,6 +332,15 @@ public abstract class WebSecurityConfigurerAdapter implements
/**
* Override this method to configure {@link WebSecurity}. For example, if you wish to
* ignore certain requests.
*
* Endpoint used in this method ignores the
* spring security filters, headers, csrf etc. see
* {@link org.springframework.security.config.annotation.web.configurers.HeadersConfigurer} and
* {@link org.springframework.security.config.annotation.web.configurers.CsrfConfigurer }
*
* Instead, if you want to protect public endpoints against common vulnerabilities, then see
* {@link #configure(HttpSecurity)} and the {@link HttpSecurity#authorizeRequests}
* configuration method.
*/
public void configure(WebSecurity web) throws Exception {
}
@ -345,6 +354,10 @@ public abstract class WebSecurityConfigurerAdapter implements @@ -345,6 +354,10 @@ public abstract class WebSecurityConfigurerAdapter implements
* http.authorizeRequests().anyRequest().authenticated().and().formLogin().and().httpBasic();
* </pre>
*
* Public endpoints that require defense against common vulnerabilities can be specified here.
* See {@link HttpSecurity#authorizeRequests} and the `permitAll()` authorization rule
* for more details.
*
* @param http the {@link HttpSecurity} to modify
* @throws Exception if an error occurs
*/

Loading…
Cancel
Save