Class OAuth2SecurityFilterChain
- java.lang.Object
-
- org.birchframework.security.oauth2.OAuth2SecurityFilterChain
-
- All Implemented Interfaces:
org.springframework.core.Ordered,org.springframework.security.web.SecurityFilterChain
public class OAuth2SecurityFilterChain extends Object implements org.springframework.security.web.SecurityFilterChain, org.springframework.core.Ordered
Configures Spring Security as well as JAX-RS resources given an OAuth2 identity provider realm. Each realm must have a unique base path, which in turn for each aAuthenticationProvideris configured as well as a CXF server created.- Author:
- Keivan Khalichi
- See Also:
BirchProperties.IdPRealm
-
-
Field Summary
Fields Modifier and Type Field Description static PatterncontextPathPatternprotected static AtomicIntegerorderprotected org.birchframework.configuration.BirchProperties.IdPRealmpropertiesprotected Set<String>unsecureContextPaths
-
Constructor Summary
Constructors Constructor Description OAuth2SecurityFilterChain()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcreateServices()List<javax.servlet.Filter>getFilters()intgetOrder()protected org.springframework.security.config.annotation.web.builders.HttpSecurityhttpSecurity()protected org.springframework.security.config.annotation.web.builders.HttpSecurityhttpSecurity(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder theAuthenticationManagerBuilder)protected org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,org.springframework.security.authentication.AbstractAuthenticationToken>jwtAuthConverter()booleanmatches(javax.servlet.http.HttpServletRequest theRequest)static StringnormalizePath(String thePath)
-
-
-
Field Detail
-
contextPathPattern
public static final Pattern contextPathPattern
-
order
protected static final AtomicInteger order
-
properties
protected final org.birchframework.configuration.BirchProperties.IdPRealm properties
-
-
Method Detail
-
getOrder
public int getOrder()
- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
matches
public boolean matches(javax.servlet.http.HttpServletRequest theRequest)
- Specified by:
matchesin interfaceorg.springframework.security.web.SecurityFilterChain
-
getFilters
public List<javax.servlet.Filter> getFilters()
- Specified by:
getFiltersin interfaceorg.springframework.security.web.SecurityFilterChain
-
httpSecurity
protected org.springframework.security.config.annotation.web.builders.HttpSecurity httpSecurity() throws Exception- Throws:
Exception
-
createServices
protected void createServices()
-
jwtAuthConverter
protected org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,org.springframework.security.authentication.AbstractAuthenticationToken> jwtAuthConverter() throws Exception- Throws:
Exception
-
httpSecurity
protected org.springframework.security.config.annotation.web.builders.HttpSecurity httpSecurity(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder theAuthenticationManagerBuilder) throws Exception- Throws:
Exception
-
-