org.springframework.security.config.annotation.authentication.configuration.AuthenticationConfiguration Java Examples

The following examples show how to use org.springframework.security.config.annotation.authentication.configuration.AuthenticationConfiguration. 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: AuthServerConfig.java    From authmore-framework with Apache License 2.0 5 votes vote down vote up
public AuthServerConfig(KeyPair keyPair, AuthenticationConfiguration authenticationConfiguration,
                        ClientDetailService clientDetailsService, RedisConnectionFactory redisConnectionFactory) throws Exception {
    this.authenticationManager = authenticationConfiguration.getAuthenticationManager();
    this.keyPair = keyPair;
    this.clientDetailsService = clientDetailsService;
    this.redisConnectionFactory = redisConnectionFactory;
}
 
Example #2
Source File: AuthorizationServerConfiguration.java    From Hands-On-Microservices-with-Spring-Boot-and-Spring-Cloud with MIT License 5 votes vote down vote up
public AuthorizationServerConfiguration(
		AuthenticationConfiguration authenticationConfiguration,
		KeyPair keyPair,
		@Value("${security.oauth2.authorizationserver.jwt.enabled:true}") boolean jwtEnabled) throws Exception {

	this.authenticationManager = authenticationConfiguration.getAuthenticationManager();
	this.keyPair = keyPair;
	this.jwtEnabled = jwtEnabled;
}
 
Example #3
Source File: AuthorizationServerConfiguration.java    From Hands-On-Microservices-with-Spring-Boot-and-Spring-Cloud with MIT License 5 votes vote down vote up
public AuthorizationServerConfiguration(
		AuthenticationConfiguration authenticationConfiguration,
		KeyPair keyPair,
		@Value("${security.oauth2.authorizationserver.jwt.enabled:true}") boolean jwtEnabled) throws Exception {

	this.authenticationManager = authenticationConfiguration.getAuthenticationManager();
	this.keyPair = keyPair;
	this.jwtEnabled = jwtEnabled;
}
 
Example #4
Source File: AuthorizationServerConfiguration.java    From Hands-On-Microservices-with-Spring-Boot-and-Spring-Cloud with MIT License 5 votes vote down vote up
public AuthorizationServerConfiguration(
		AuthenticationConfiguration authenticationConfiguration,
		KeyPair keyPair,
		@Value("${security.oauth2.authorizationserver.jwt.enabled:true}") boolean jwtEnabled) throws Exception {

	this.authenticationManager = authenticationConfiguration.getAuthenticationManager();
	this.keyPair = keyPair;
	this.jwtEnabled = jwtEnabled;
}
 
Example #5
Source File: AuthorizationServerConfiguration.java    From Hands-On-Microservices-with-Spring-Boot-and-Spring-Cloud with MIT License 5 votes vote down vote up
public AuthorizationServerConfiguration(
		AuthenticationConfiguration authenticationConfiguration,
		KeyPair keyPair,
		@Value("${security.oauth2.authorizationserver.jwt.enabled:true}") boolean jwtEnabled) throws Exception {

	this.authenticationManager = authenticationConfiguration.getAuthenticationManager();
	this.keyPair = keyPair;
	this.jwtEnabled = jwtEnabled;
}
 
Example #6
Source File: AuthorizationServerConfiguration.java    From Hands-On-Microservices-with-Spring-Boot-and-Spring-Cloud with MIT License 5 votes vote down vote up
public AuthorizationServerConfiguration(
		AuthenticationConfiguration authenticationConfiguration,
		KeyPair keyPair,
		@Value("${security.oauth2.authorizationserver.jwt.enabled:true}") boolean jwtEnabled) throws Exception {

	this.authenticationManager = authenticationConfiguration.getAuthenticationManager();
	this.keyPair = keyPair;
	this.jwtEnabled = jwtEnabled;
}
 
Example #7
Source File: AuthorizationServerConfiguration.java    From Hands-On-Microservices-with-Spring-Boot-and-Spring-Cloud with MIT License 5 votes vote down vote up
public AuthorizationServerConfiguration(
		AuthenticationConfiguration authenticationConfiguration,
		KeyPair keyPair,
		@Value("${security.oauth2.authorizationserver.jwt.enabled:true}") boolean jwtEnabled) throws Exception {

	this.authenticationManager = authenticationConfiguration.getAuthenticationManager();
	this.keyPair = keyPair;
	this.jwtEnabled = jwtEnabled;
}
 
Example #8
Source File: AuthorizationServerConfiguration.java    From Hands-On-Microservices-with-Spring-Boot-and-Spring-Cloud with MIT License 5 votes vote down vote up
public AuthorizationServerConfiguration(
		AuthenticationConfiguration authenticationConfiguration,
		KeyPair keyPair,
		@Value("${security.oauth2.authorizationserver.jwt.enabled:true}") boolean jwtEnabled) throws Exception {

	this.authenticationManager = authenticationConfiguration.getAuthenticationManager();
	this.keyPair = keyPair;
	this.jwtEnabled = jwtEnabled;
}
 
Example #9
Source File: AuthorizationServerConfiguration.java    From Hands-On-Microservices-with-Spring-Boot-and-Spring-Cloud with MIT License 5 votes vote down vote up
public AuthorizationServerConfiguration(
		AuthenticationConfiguration authenticationConfiguration,
		KeyPair keyPair,
		@Value("${security.oauth2.authorizationserver.jwt.enabled:true}") boolean jwtEnabled) throws Exception {

	this.authenticationManager = authenticationConfiguration.getAuthenticationManager();
	this.keyPair = keyPair;
	this.jwtEnabled = jwtEnabled;
}
 
Example #10
Source File: AuthorizationServerConfiguration.java    From Hands-On-Microservices-with-Spring-Boot-and-Spring-Cloud with MIT License 5 votes vote down vote up
public AuthorizationServerConfiguration(
		AuthenticationConfiguration authenticationConfiguration,
		KeyPair keyPair,
		@Value("${security.oauth2.authorizationserver.jwt.enabled:true}") boolean jwtEnabled) throws Exception {

	this.authenticationManager = authenticationConfiguration.getAuthenticationManager();
	this.keyPair = keyPair;
	this.jwtEnabled = jwtEnabled;
}
 
Example #11
Source File: AuthorizationServerConfiguration.java    From Hands-On-Microservices-with-Spring-Boot-and-Spring-Cloud with MIT License 5 votes vote down vote up
public AuthorizationServerConfiguration(
		AuthenticationConfiguration authenticationConfiguration,
		KeyPair keyPair,
		@Value("${security.oauth2.authorizationserver.jwt.enabled:true}") boolean jwtEnabled) throws Exception {

	this.authenticationManager = authenticationConfiguration.getAuthenticationManager();
	this.keyPair = keyPair;
	this.jwtEnabled = jwtEnabled;
}
 
Example #12
Source File: AuthorizationServerConfiguration.java    From openapi-petstore with Apache License 2.0 5 votes vote down vote up
public AuthorizationServerConfiguration(BaseClientDetails details,
                                        AuthenticationConfiguration authenticationConfiguration,
                                        ObjectProvider<TokenStore> tokenStore,
                                        ObjectProvider<AccessTokenConverter> tokenConverter,
                                        AuthorizationServerProperties properties) throws Exception {
    super(details, authenticationConfiguration, tokenStore, tokenConverter, properties);
}
 
Example #13
Source File: OAuth2AuthorizationServerConfiguration.java    From spring-security-oauth2-boot with Apache License 2.0 5 votes vote down vote up
public AuthorizationSecurityConfigurer(BaseClientDetails details,
		AuthenticationConfiguration authenticationConfiguration, ObjectProvider<TokenStore> tokenStore,
		ObjectProvider<AccessTokenConverter> tokenConverter, AuthorizationServerProperties properties)
		throws Exception {

	this.details = details;
	this.authenticationManager = authenticationConfiguration.getAuthenticationManager();
	this.tokenStore = tokenStore.getIfAvailable();
	this.tokenConverter = tokenConverter.getIfAvailable();
	this.properties = properties;
}
 
Example #14
Source File: SecurityManagedConfiguration.java    From hawkbit with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * @return the {@link UserAuthenticationFilter} to include into the hawkBit
 *         security configuration.
 * @throws Exception
 *             lazy bean exception maybe if the authentication manager
 *             cannot be instantiated
 */
@Bean
@ConditionalOnMissingBean
// Exception squid:S00112 - Is aspectJ proxy
@SuppressWarnings({ "squid:S00112" })
UserAuthenticationFilter userAuthenticationFilter(final AuthenticationConfiguration configuration)
        throws Exception {
    return new UserAuthenticationFilterBasicAuth(configuration.getAuthenticationManager());
}
 
Example #15
Source File: AuthorizationServerConfig.java    From platform with Apache License 2.0 5 votes vote down vote up
@Autowired
public AuthorizationServerConfig(
        AuthenticationConfiguration authenticationConfiguration,
        KeyPair keyPair,
        DataSource dataSource
) throws Exception {
    this.dataSource = dataSource;
    this.keyPair = keyPair;
    this.authenticationManager = authenticationConfiguration.getAuthenticationManager();
}
 
Example #16
Source File: CustomAuthorizationServerConfigurer.java    From spring-microservice-exam with MIT License 4 votes vote down vote up
@Autowired
public void setAuthenticationConfiguration(AuthenticationConfiguration authenticationConfiguration) {
	this.authenticationConfiguration = authenticationConfiguration;
}