Spring Security AuthenticationManager
up vote
-2
down vote
favorite
Good evening!
Faced the problem of Spring Security:
Could not autowire. No beans of 'AuthenticationManager' type found.
Should I override this method in WebSecurityConfig and mark it as @Bean? If so, could you explain how to do this?
I'm using Java Config.
java spring spring-mvc spring-security
add a comment |
up vote
-2
down vote
favorite
Good evening!
Faced the problem of Spring Security:
Could not autowire. No beans of 'AuthenticationManager' type found.
Should I override this method in WebSecurityConfig and mark it as @Bean? If so, could you explain how to do this?
I'm using Java Config.
java spring spring-mvc spring-security
add a comment |
up vote
-2
down vote
favorite
up vote
-2
down vote
favorite
Good evening!
Faced the problem of Spring Security:
Could not autowire. No beans of 'AuthenticationManager' type found.
Should I override this method in WebSecurityConfig and mark it as @Bean? If so, could you explain how to do this?
I'm using Java Config.
java spring spring-mvc spring-security
Good evening!
Faced the problem of Spring Security:
Could not autowire. No beans of 'AuthenticationManager' type found.
Should I override this method in WebSecurityConfig and mark it as @Bean? If so, could you explain how to do this?
I'm using Java Config.
java spring spring-mvc spring-security
java spring spring-mvc spring-security
asked Nov 10 at 18:57
Vincent G
11
11
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
No you don't want to override that method unless you have custom authentication manager. Override two configure methods in Config class,
public class AppConfig extends WebSecurityConfigurerAdapter
@Override
public void configure(AuthenticationManagerBuilder builder)
throws Exception
builder.authenticationProvider(new CustomAuthenticationProvider());
@Override
protected void configure(HttpSecurity http) throws Exception
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
No you don't want to override that method unless you have custom authentication manager. Override two configure methods in Config class,
public class AppConfig extends WebSecurityConfigurerAdapter
@Override
public void configure(AuthenticationManagerBuilder builder)
throws Exception
builder.authenticationProvider(new CustomAuthenticationProvider());
@Override
protected void configure(HttpSecurity http) throws Exception
add a comment |
up vote
0
down vote
No you don't want to override that method unless you have custom authentication manager. Override two configure methods in Config class,
public class AppConfig extends WebSecurityConfigurerAdapter
@Override
public void configure(AuthenticationManagerBuilder builder)
throws Exception
builder.authenticationProvider(new CustomAuthenticationProvider());
@Override
protected void configure(HttpSecurity http) throws Exception
add a comment |
up vote
0
down vote
up vote
0
down vote
No you don't want to override that method unless you have custom authentication manager. Override two configure methods in Config class,
public class AppConfig extends WebSecurityConfigurerAdapter
@Override
public void configure(AuthenticationManagerBuilder builder)
throws Exception
builder.authenticationProvider(new CustomAuthenticationProvider());
@Override
protected void configure(HttpSecurity http) throws Exception
No you don't want to override that method unless you have custom authentication manager. Override two configure methods in Config class,
public class AppConfig extends WebSecurityConfigurerAdapter
@Override
public void configure(AuthenticationManagerBuilder builder)
throws Exception
builder.authenticationProvider(new CustomAuthenticationProvider());
@Override
protected void configure(HttpSecurity http) throws Exception
answered Nov 11 at 6:58
Ajish Thankachan
612
612
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53242370%2fspring-security-authenticationmanager%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown