Spring security - how to mention both form based and basic authentication

前端 未结 4 767
孤街浪徒
孤街浪徒 2020-12-24 09:16

Is it possible to mention both form-based and basic authentication in Spring security using namespace configuration without overriding other ? So that the appliciation could

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-24 09:34

    The response by @grimesjm is right. However, if you are using Spring 3.x you have to adapt the class names to:

    
        
            
         
        
            
        
    
    
    
        
    
    

    And

    
        ... your intercept-url here
    
        
    
        
        ....
    
    

    I do not know whether placing the filter before SECURITY_CONTEXT_FILTER is the best option or not.

提交回复
热议问题