Programmatic use of Spring Security

前端 未结 6 1228
情话喂你
情话喂你 2020-12-23 09:47

I am using Wicket with the Wicket Auth Project for my presentation layer and I have therefore integrated it with Spring Security. This is the method which is called by Wicke

6条回答
  •  借酒劲吻你
    2020-12-23 10:22

    1) Programmatic Logout

    1. call HttpServletRequest.getSession(false).invalidate
    2. call SecurityContextHolder.clearContext()

    2) Tell Spring Security NOT to intercept certain URLs, this one kind of depends on how your application url space is setup. If all your pages (except /logIn and /logout) lived at the context /myApp then you could do this:

    
      
     ....
    
    

提交回复
热议问题