Class SecurityConfig
java.lang.Object
com.irurueta.authserver.authorization.api.web.SecurityConfig
Security filter chains of the authorization server: the protocol endpoints chain and the login/UI chain.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.web.SecurityFilterChainauthorizationServerSecurityFilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http, org.springframework.beans.factory.ObjectProvider<ProtocolChainCustomizer> customizers) Creates the chain of the OAuth 2.1 and OpenID Connect protocol endpoints.org.springframework.security.web.SecurityFilterChainloginSecurityFilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http, org.springframework.beans.factory.ObjectProvider<LoginChainCustomizer> customizers) Creates the chain of the login page and the rest of the user interface.
-
Constructor Details
-
SecurityConfig
public SecurityConfig()
-
-
Method Details
-
authorizationServerSecurityFilterChain
@Bean @Order(1) public org.springframework.security.web.SecurityFilterChain authorizationServerSecurityFilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http, org.springframework.beans.factory.ObjectProvider<ProtocolChainCustomizer> customizers) throws Exception Creates the chain of the OAuth 2.1 and OpenID Connect protocol endpoints.- Parameters:
http- security builder.customizers- protocol customizers, applied in order.- Returns:
- the protocol filter chain.
- Throws:
Exception- if the chain cannot be built.
-
loginSecurityFilterChain
@Bean @Order(2) public org.springframework.security.web.SecurityFilterChain loginSecurityFilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http, org.springframework.beans.factory.ObjectProvider<LoginChainCustomizer> customizers) throws Exception Creates the chain of the login page and the rest of the user interface.- Parameters:
http- security builder.customizers- login method customizers, applied in order.- Returns:
- the login/UI filter chain.
- Throws:
Exception- if the chain cannot be built.
-