Class ASecurityConfig.AJwtSecurityConfigurer
- java.lang.Object
-
- org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
-
- com.activeviam.risk.cfg.security.impl.ASecurityConfig.AJwtSecurityConfigurer
-
- All Implemented Interfaces:
org.springframework.security.config.annotation.SecurityConfigurer<javax.servlet.Filter,org.springframework.security.config.annotation.web.builders.WebSecurity>
,org.springframework.security.config.annotation.web.WebSecurityConfigurer<org.springframework.security.config.annotation.web.builders.WebSecurity>
- Direct Known Subclasses:
SecurityConfig.JwtSecurityConfigurer
- Enclosing class:
- ASecurityConfig
public abstract static class ASecurityConfig.AJwtSecurityConfigurer extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
Configuration for JWT.The most important point is the
authenticationEntryPoint
. It must only send an unauthorized status code so that JavaScript clients can authenticate (otherwise the browser will intercepts the response).- Author:
- ActiveViam
- See Also:
HttpStatusEntryPoint
-
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.context.ApplicationContext
context
-
Constructor Summary
Constructors Constructor Description AJwtSecurityConfigurer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
-
Methods inherited from class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
authenticationManager, authenticationManagerBean, configure, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBean
-
-