SEC-1574: Add CSRF Support
This commit is contained in:
@@ -211,6 +211,7 @@
|
||||
<itemizedlist>
|
||||
<listitem><link xlink:href="#nsa-access-denied-handler">access-denied-handler</link></listitem>
|
||||
<listitem><link xlink:href="#nsa-anonymous">anonymous</link></listitem>
|
||||
<listitem><link xlink:href="#nsa-csrf">csrf</link></listitem>
|
||||
<listitem><link xlink:href="#nsa-custom-filter">custom-filter</link></listitem>
|
||||
<listitem><link xlink:href="#nsa-expression-handler">expression-handler</link></listitem>
|
||||
<listitem><link xlink:href="#nsa-form-login">form-login</link></listitem>
|
||||
@@ -518,6 +519,30 @@
|
||||
</section>
|
||||
</section>
|
||||
</section>
|
||||
<section xml:id="nsa-csrf">
|
||||
<title><literal><csrf></literal></title>
|
||||
<para>This element will add <a href="">CSRF</a> to the application. It also updates the default RequestCache
|
||||
to only replay "GET" requests upon successful authentication.</para>
|
||||
<section xml:id="nsa-csrf-parents">
|
||||
<title>Parent Elements of <literal><csrf></literal></title>
|
||||
<itemizedlist>
|
||||
<listitem><link xlink:href="#nsa-http">http</link></listitem>
|
||||
</itemizedlist>
|
||||
</section>
|
||||
<section xml:id="nsa-csrf-attributes">
|
||||
<title><literal><csrf></literal> Attributes</title>
|
||||
<section xml:id="nsa-csrf-token-repository-ref">
|
||||
<title><literal>token-repository-ref</literal></title>
|
||||
<para>The CsrfTokenRepository to use. The default is
|
||||
<classname>HttpSessionCsrfTokenRepository</classname>.</para>
|
||||
</section>
|
||||
<section xml:id="nsa-csrf-request-matcher-ref">
|
||||
<title><literal>request-matcher-ref</literal></title>
|
||||
<para>The RequestMatcher instance to be used to determine if CSRF should be applied. Default is any
|
||||
HTTP method except "GET", "TRACE", "HEAD", "OPTIONS".</para>
|
||||
</section>
|
||||
</section>
|
||||
</section>
|
||||
<section xml:id="nsa-custom-filter">
|
||||
<title><literal><custom-filter></literal></title>
|
||||
<para>This element is used to add a filter to the filter chain. It doesn't create any
|
||||
|
||||
@@ -716,9 +716,14 @@ List<OpenIDAttribute> attributes = token.getAttributes();</programlisting>The
|
||||
</row>
|
||||
<row>
|
||||
<entry>HEADERS_FILTER</entry>
|
||||
<entry><literal>HeadersFilter</literal> </entry>
|
||||
<entry><literal>HeaderWriterFilter</literal> </entry>
|
||||
<entry><literal>http/headers</literal></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>CSRF_FILTER</entry>
|
||||
<entry><literal>CsrfFilter</literal> </entry>
|
||||
<entry><literal>http/csrf</literal></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry> LOGOUT_FILTER </entry>
|
||||
<entry><literal>LogoutFilter</literal></entry>
|
||||
|
||||
Reference in New Issue
Block a user