SpringSecurity anonymous user access

The definition of an anonymous access in the SpringSecurity, the realization is not logged in users can access dictation page

1     <http use-expressions="false" entry-point-ref="casProcessingFilterEntryPoint">
2        <intercept-url pattern="/cart/**" access="IS_AUTHENTICATED_ANONYMOUSLY"/>
3         <intercept-url pattern="/**" access="ROLE_USER"/>  
4         <custom-filter position="CAS_FILTER" ref="casAuthenticationFilter" />  
5         <custom-filter ref="requestSingleLogoutFilter" before="LOGOUT_FILTER"/>  
6         <custom-filter ref="singleLogoutFilter" before="CAS_FILTER"/>  
7     </http>

In the second line is to add content. Meaning here is that can be accessed at all / cart / ** directory, and the user name unified annonymousUser

 

Guess you like

Origin www.cnblogs.com/kitor/p/11287502.html
Recommended