SEC-2222: Use auth parameter name instead of registry
This commit is contained in:
+1
-1
@@ -57,7 +57,7 @@ import org.springframework.security.config.annotation.web.WebSecurityConfigurer;
|
||||
*
|
||||
* @Override
|
||||
* protected void registerAuthentication(AuthenticationManagerBuilder auth) {
|
||||
* registry
|
||||
* auth
|
||||
* // enable in memory based authentication with a user named "user" and "admin"
|
||||
* .inMemoryAuthentication()
|
||||
* .withUser("user").password("password").roles("USER").and()
|
||||
|
||||
+1
-1
@@ -113,7 +113,7 @@ public abstract class WebSecurityConfigurerAdapter implements SecurityConfigurer
|
||||
* <pre>
|
||||
* @Override
|
||||
* protected void registerAuthentication(AuthenticationManagerBuilder auth) {
|
||||
* registry
|
||||
* auth
|
||||
* // enable in memory based authentication with a user named "user" and "admin"
|
||||
* .inMemoryAuthentication()
|
||||
* .withUser("user").password("password").roles("USER").and()
|
||||
|
||||
Reference in New Issue
Block a user