SEC-2282: Add links for AccessDeniedHandler in CSRF doc

This commit is contained in:
Rob Winch 2013-09-27 16:44:34 -05:00
parent 3e95f1c12e
commit 8fed90c26c

View File

@ -231,8 +231,10 @@ public class WebSecurityConfig extends
<para>A simple way to mitigate an active user experiencing a timeout is to have some JavaScript that lets the user know their session is about to expire. <para>A simple way to mitigate an active user experiencing a timeout is to have some JavaScript that lets the user know their session is about to expire.
The user can click a button to continue and refresh the session.</para> The user can click a button to continue and refresh the session.</para>
<para>Alternatively, specifying a custom <interfacename>AccessDeniedHandler</interfacename> allows you to process the <classname>InvalidCsrfTokenException</classname> <para>Alternatively, specifying a custom <interfacename>AccessDeniedHandler</interfacename> allows you to process the <classname>InvalidCsrfTokenException</classname>
anyway you like. For an example of how to customize the <interfacename>AccessDeniedHandler</interfacename> refer to the provided links for both xml and Java anyway you like. For an example of how to customize the <interfacename>AccessDeniedHandler</interfacename> refer to the provided links for both
configuration.</para> <link linkend="#nsa-access-denied-handler">xml</link> and
<link xlink:href="https://github.com/spring-projects/spring-security/blob/3.2.0.RC1/config/src/test/groovy/org/springframework/security/config/annotation/web/configurers/NamespaceHttpAccessDeniedHandlerTests.groovy#L64">Java
configuration</link>.</para>
</section> </section>
<section xml:id="csrf-login"> <section xml:id="csrf-login">
<title>Logging In</title> <title>Logging In</title>