Class 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  
    • 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
    • Field Detail

      • context

        @Autowired
        protected org.springframework.context.ApplicationContext context
    • Constructor Detail

      • AJwtSecurityConfigurer

        public AJwtSecurityConfigurer()
    • Method Detail

      • configure

        protected void configure​(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
                          throws Exception
        Overrides:
        configure in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
        Throws:
        Exception