File tree Expand file tree Collapse file tree 6 files changed +25
-8
lines changed
Expand file tree Collapse file tree 6 files changed +25
-8
lines changed Original file line number Diff line number Diff line change 2727 disable-url-rewriting =" false"
2828 auto-config =" false" >
2929 <security : headers disabled =" true" />
30- <security : csrf disabled =" true " />
30+ <security : csrf disabled =" false " />
3131 <security : intercept-url pattern =" /admin/login*" access =" permitAll" />
3232 <security : intercept-url pattern =" /admin/**" access =" hasRole('ROLE_ADMIN')" />
3333 <security : form-login
4949 disable-url-rewriting =" false"
5050 auto-config =" false" >
5151 <security : headers disabled =" true" />
52- <security : csrf disabled =" true " />
52+ <security : csrf disabled =" false " />
5353 <security : intercept-url pattern =" /" access =" permitAll" />
5454 <security : intercept-url pattern =" /product/**" access =" permitAll" />
5555 <security : intercept-url pattern =" /manufacturer/**" access =" permitAll" />
7070 login-processing-url=" /j_spring_security_check" />
7171 <security : logout
7272 logout-url=" /j_spring_security_logout"
73- invalidate-session=" true" delete-cookies =" JSESSIONID" />
73+ invalidate-session=" true"
74+ delete-cookies=" JSESSIONID" />
7475 <security : custom-filter before =" FORM_LOGIN_FILTER" ref =" authenticationFilterCustomer" />
7576 </security : http >
7677
Original file line number Diff line number Diff line change 1616 </table >
1717 <c:url var =" loginUrl" value =" /admin/j_spring_security_check" />
1818 <form action =" ${ loginUrl } " method =" post" >
19+ <input type =" hidden"
20+ name =" ${ _csrf. parameterName } "
21+ value =" ${ _csrf. token } " />
1922 <table border =" 0" width =" 100%" cellspacing =" 0" cellpadding =" 2" >
2023 <tr >
2124 <td class =" infoBoxContent" >Username:<br /><input type =" text" name =" j_username" /></td >
Original file line number Diff line number Diff line change 4242 <td class =" headerBarContent" align =" right" >  ;  ; </td >
4343 </sec:authorize >
4444 <sec:authorize access =" hasRole('ROLE_ADMIN')" >
45- <td class =" headerBarContent" align =" right" >Logged in as: admin (<a href =' <c:url value="/admin/j_spring_security_logout"/>' class =" headerLink" >Logoff</a >)  ;  ; </td >
45+ <td class =" headerBarContent" align =" right" >Logged in as: admin (
46+ <c:url var =" logoutUrl" value =" /admin/j_spring_security_logout" />
47+ <form action =" ${ logoutUrl } " method =" post" >
48+ <input type =" hidden"
49+ name =" ${ _csrf. parameterName } "
50+ value =" ${ _csrf. token } " />
51+ <input class =" headerLink" type =" submit" value =" Logoff" />
52+ </form >)  ;  ; </td >
4653 </sec:authorize >
4754 </tr >
4855</table >
Original file line number Diff line number Diff line change 2828 <c:out value =" ${ SPRING_SECURITY_LAST_EXCEPTION . message} " />
2929 </span >
3030 </c:if >
31-
31+ <input type =" hidden"
32+ name =" ${ _csrf. parameterName } "
33+ value =" ${ _csrf. token } " />
3234 <table border =" 0" cellspacing =" 0" cellpadding =" 2" width =" 100%" >
3335 <tr >
3436 <td class =" fieldKey" >E-Mail Address:</td >
Original file line number Diff line number Diff line change 1717 <script type =" text/javascript" >$ (" #tdb3" ).button ({icons: {primary: " ui-icon-person" }}).addClass (" ui-priority-secondary" ).parent ().removeClass (" tdbLink" ); </script >
1818 <sec:authorize access =" fullyAuthenticated" >
1919 <span class =" tdbLink" >
20- <a id =" tdb4" href =' <c:url value="/j_spring_security_logout"/>' >Log Off</a >
20+ <c:url var =" logoutUrl" value =" /j_spring_security_logout" />
21+ <form action =" ${ logoutUrl } " method =" post" >
22+ <input type =" hidden"
23+ name =" ${ _csrf. parameterName } "
24+ value =" ${ _csrf. token } " />
25+ <input id =" tdb4" type =" submit" value =" Log Off" />
26+ </form >
2127 </span >
2228 <script type =" text/javascript" >$ (" #tdb4" ).button ().addClass (" ui-priority-secondary" ).parent ().removeClass (" tdbLink" ); </script >
2329 </sec:authorize >
Original file line number Diff line number Diff line change 4545 <url-pattern >/*</url-pattern >
4646 </filter-mapping >
4747
48- <!--
4948 <listener >
5049 <listener-class >
5150 org.springframework.security.web.session.HttpSessionEventPublisher
5251 </listener-class >
5352 </listener >
54- -->
5553
5654 <!-- Processes application requests -->
5755 <servlet >
You can’t perform that action at this time.
0 commit comments