Package com.aquima.web.boot.security
Class SecurityConfiguration
- java.lang.Object
-
- com.aquima.web.boot.security.SecurityConfiguration
-
@Configuration @EnableWebSecurity public class SecurityConfiguration extends Object
Spring Security Configuration.- Since:
- 10.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SecurityConfiguration.GlobalSecurityConfiguration
-
Constructor Summary
Constructors Constructor Description SecurityConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.authentication.AuthenticationProvider
anonymousAuthenticationProvider()
org.springframework.security.authentication.AuthenticationManager
blueriqAuthenticationManager(org.springframework.context.ApplicationContext applicationContext, org.springframework.core.env.Environment env, SecurityConfigProperties secConfigProps, org.springframework.security.config.annotation.ObjectPostProcessor<Object> objectPostProcessor, PasswordEncodersUtil passwordEncodersUtil, OpenIdConnectSettings openIdConnectSettings, OpenIdConnectClient client)
OpenIdConnectClient
defaultOpenIdConnectClient(OpenIdConnectSettings openIdConnectSettings)
OpenIdConnectServiceAuthentication
openIdConnectServiceAccount(OpenIdConnectSettings openIdConnectSettings, OpenIdConnectClient client, org.springframework.security.authentication.AuthenticationManager authManager)
OpenIdConnectSettings
openIdConnectSettings(SecurityConfigProperties properties)
-
-
-
Method Detail
-
blueriqAuthenticationManager
@Bean @RefreshScope public org.springframework.security.authentication.AuthenticationManager blueriqAuthenticationManager(org.springframework.context.ApplicationContext applicationContext, org.springframework.core.env.Environment env, SecurityConfigProperties secConfigProps, org.springframework.security.config.annotation.ObjectPostProcessor<Object> objectPostProcessor, PasswordEncodersUtil passwordEncodersUtil, @Autowired(required=false) OpenIdConnectSettings openIdConnectSettings, @Autowired(required=false) OpenIdConnectClient client) throws Exception
- Throws:
Exception
-
anonymousAuthenticationProvider
@Bean public org.springframework.security.authentication.AuthenticationProvider anonymousAuthenticationProvider()
-
openIdConnectSettings
@Bean @RefreshScope @ConditionalOnProperty(name="blueriq.security.login-type", havingValue="openid-connect") public OpenIdConnectSettings openIdConnectSettings(SecurityConfigProperties properties) throws OpenIdConnectException
- Throws:
OpenIdConnectException
-
defaultOpenIdConnectClient
@Bean @ConditionalOnProperty(name="blueriq.security.login-type", havingValue="openid-connect") public OpenIdConnectClient defaultOpenIdConnectClient(OpenIdConnectSettings openIdConnectSettings)
-
openIdConnectServiceAccount
@Bean @ConditionalOnProperty(name="blueriq.security.login-type", havingValue="openid-connect") public OpenIdConnectServiceAuthentication openIdConnectServiceAccount(OpenIdConnectSettings openIdConnectSettings, OpenIdConnectClient client, @Qualifier("blueriqAuthenticationManager") org.springframework.security.authentication.AuthenticationManager authManager)
-
-