org.springframework.security.config.BeanIds Java Examples

The following examples show how to use org.springframework.security.config.BeanIds. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SecurityConfig.java    From promregator with Apache License 2.0 5 votes vote down vote up
@Bean(name = BeanIds.AUTHENTICATION_MANAGER)
@Override
// see also
// https://stackoverflow.com/questions/21633555/how-to-inject-authenticationmanager-using-java-configuration-in-a-custom-filter
public AuthenticationManager authenticationManagerBean() throws Exception {
	return super.authenticationManagerBean();
}
 
Example #2
Source File: JwkSetConfiguration.java    From spring-cloud-demo with Apache License 2.0 5 votes vote down vote up
public JwkSetConfiguration(@Qualifier(BeanIds.AUTHENTICATION_MANAGER) AuthenticationManager authenticationManager,
//                               KeyPair keyPair,
                               UserDetailsServiceImpl userDetailsService) throws Exception {
        this.authenticationManager = authenticationManager;
//        this.keyPair = keyPair;
        this.userDetailsService = userDetailsService;
    }
 
Example #3
Source File: SecurityConfig.java    From market with MIT License 4 votes vote down vote up
@Bean(name = BeanIds.AUTHENTICATION_MANAGER)
@Override
public AuthenticationManager authenticationManagerBean() throws Exception {
	return super.authenticationManagerBean();
}
 
Example #4
Source File: SecurityConfig.java    From MovieApp with MIT License 4 votes vote down vote up
@Bean(BeanIds.AUTHENTICATION_MANAGER)
@Override
public AuthenticationManager authenticationManagerBean() throws Exception {
    return super.authenticationManagerBean();
}
 
Example #5
Source File: CoderadarSecurityConfiguration.java    From coderadar with MIT License 4 votes vote down vote up
@Bean(name = BeanIds.AUTHENTICATION_MANAGER)
@Override
public AuthenticationManager authenticationManagerBean() throws Exception {
  return super.authenticationManagerBean();
}
 
Example #6
Source File: WebAnnoSecurity.java    From webanno with Apache License 2.0 4 votes vote down vote up
@Bean(name = BeanIds.AUTHENTICATION_MANAGER)
@Override
public AuthenticationManager authenticationManagerBean() throws Exception
{
    return super.authenticationManagerBean();
}
 
Example #7
Source File: WebAnnoSecurity.java    From webanno with Apache License 2.0 4 votes vote down vote up
@Bean(name = BeanIds.AUTHENTICATION_MANAGER)
@Override
public AuthenticationManager authenticationManagerBean() throws Exception
{
    return super.authenticationManagerBean();
}
 
Example #8
Source File: SecurityConfig.java    From training with MIT License 4 votes vote down vote up
@Bean(BeanIds.AUTHENTICATION_MANAGER)
@Override
public AuthenticationManager authenticationManagerBean() throws Exception {
    return super.authenticationManagerBean();
}
 
Example #9
Source File: WebSecurityConfigure.java    From cms with Apache License 2.0 4 votes vote down vote up
@Override
@Bean(BeanIds.AUTHENTICATION_MANAGER)
public AuthenticationManager authenticationManagerBean() throws Exception {
    return super.authenticationManagerBean();
}
 
Example #10
Source File: SecurityConfig.java    From teiid-spring-boot with Apache License 2.0 4 votes vote down vote up
@Bean(name = BeanIds.AUTHENTICATION_MANAGER)
@Primary
@Override
public AuthenticationManager authenticationManagerBean() throws Exception {
    return super.authenticationManagerBean();
}
 
Example #11
Source File: SecurityConfiguration.java    From zhcet-web with Apache License 2.0 4 votes vote down vote up
@Override
@Bean(name = BeanIds.AUTHENTICATION_MANAGER)
public AuthenticationManager authenticationManagerBean() throws Exception {
    return super.authenticationManagerBean();
}
 
Example #12
Source File: WebSecurityConfig.java    From java8-spring-cloud-microservice-demo with MIT License 4 votes vote down vote up
@Bean(name = BeanIds.AUTHENTICATION_MANAGER)
@Override
public AuthenticationManager authenticationManagerBean() throws Exception {
    return super.authenticationManagerBean();
}
 
Example #13
Source File: SecurityConfig.java    From spring-security-oauth2-boot with Apache License 2.0 4 votes vote down vote up
@Override
@Bean(BeanIds.AUTHENTICATION_MANAGER)
public AuthenticationManager authenticationManagerBean() throws Exception {
	return super.authenticationManagerBean();
}
 
Example #14
Source File: WebSecurityConfiguration.java    From spring-cloud-demo with Apache License 2.0 4 votes vote down vote up
@Bean(BeanIds.AUTHENTICATION_MANAGER)
@Override
public AuthenticationManager authenticationManagerBean() throws Exception {
    return super.authenticationManagerBean();
}
 
Example #15
Source File: SecurityConfig.java    From SpringAll with MIT License 4 votes vote down vote up
@Bean(name = BeanIds.AUTHENTICATION_MANAGER)
@Override
public AuthenticationManager authenticationManagerBean() throws Exception {
    return super.authenticationManagerBean();
}
 
Example #16
Source File: WebSecurityConfig.java    From java-tutorial with MIT License 4 votes vote down vote up
@Bean(name = BeanIds.AUTHENTICATION_MANAGER)
@Override
public AuthenticationManager authenticationManagerBean() throws Exception {
    return super.authenticationManagerBean();
}
 
Example #17
Source File: InceptionSecurity.java    From inception with Apache License 2.0 4 votes vote down vote up
@Bean(name = BeanIds.AUTHENTICATION_MANAGER)
@Override
public AuthenticationManager authenticationManagerBean() throws Exception
{
    return super.authenticationManagerBean();
}
 
Example #18
Source File: InceptionSecurity.java    From inception with Apache License 2.0 4 votes vote down vote up
@Bean(name = BeanIds.AUTHENTICATION_MANAGER)
@Override
public AuthenticationManager authenticationManagerBean() throws Exception
{
    return super.authenticationManagerBean();
}
 
Example #19
Source File: WebSecurityConfiguration.java    From spring-admin-vue with Apache License 2.0 4 votes vote down vote up
@Bean(name = BeanIds.AUTHENTICATION_MANAGER)
@Override
public AuthenticationManager authenticationManagerBean() throws Exception {
    return super.authenticationManagerBean();
}
 
Example #20
Source File: SecutiryConfig.java    From Spring-Boot-Blog-REST-API with GNU Affero General Public License v3.0 4 votes vote down vote up
@Bean(BeanIds.AUTHENTICATION_MANAGER)
public AuthenticationManager authenticationManagerBean() throws Exception {
    return super.authenticationManagerBean();
}
 
Example #21
Source File: WebSecurityConfig.java    From black-shop with Apache License 2.0 4 votes vote down vote up
@Bean(name = BeanIds.AUTHENTICATION_MANAGER)
@Override
public AuthenticationManager authenticationManagerBean() throws Exception {
    return super.authenticationManagerBean();
}
 
Example #22
Source File: CrustConfigurerAdapter.java    From Milkomeda with MIT License 4 votes vote down vote up
@Bean(name = BeanIds.AUTHENTICATION_MANAGER)
@Override
public AuthenticationManager authenticationManager() throws Exception {
    return super.authenticationManager();
}
 
Example #23
Source File: SecurityConfigurer.java    From ywh-frame with GNU General Public License v3.0 2 votes vote down vote up
/**
 *  这必须手动注入spring管理,否则之后使用的时候找不到,
 *  报错信息:Field authenticate in com.ywh.security.service.impl.SysUserServiceImpl required a bean of type
 *          'org.springframework.security.authentication.AuthenticationManager' that could not be found.
 * @return AuthenticationManager
 * @throws Exception 异常信息
 */
@Bean(name = BeanIds.AUTHENTICATION_MANAGER)
@Override
public AuthenticationManager authenticationManagerBean() throws Exception {
    return super.authenticationManagerBean();
}