|
@@ -132,16 +132,19 @@
|
|
filters you are actually using, the order should be as follows:
|
|
filters you are actually using, the order should be as follows:
|
|
<orderedlist><listitem><para><classname>ChannelProcessingFilter</classname>, because
|
|
<orderedlist><listitem><para><classname>ChannelProcessingFilter</classname>, because
|
|
it might need to redirect to a different
|
|
it might need to redirect to a different
|
|
- protocol</para></listitem><listitem><para><classname>ConcurrentSessionFilter</classname>,
|
|
|
|
- because it doesn't use any <classname>SecurityContextHolder</classname> functionality
|
|
|
|
- but needs to update the <interfacename>SessionRegistry</interfacename> to reflect
|
|
|
|
- ongoing requests from the
|
|
|
|
- principal</para></listitem><listitem><para><classname>SecurityContextPersistenceFilter</classname>,
|
|
|
|
|
|
+ protocol</para></listitem><listitem><para><classname>SecurityContextPersistenceFilter</classname>,
|
|
so a <interfacename>SecurityContext</interfacename> can be set up in the
|
|
so a <interfacename>SecurityContext</interfacename> can be set up in the
|
|
<classname>SecurityContextHolder</classname> at the beginning of a web request, and
|
|
<classname>SecurityContextHolder</classname> at the beginning of a web request, and
|
|
any changes to the <interfacename>SecurityContext</interfacename> can be copied to the
|
|
any changes to the <interfacename>SecurityContext</interfacename> can be copied to the
|
|
<literal>HttpSession</literal> when the web request ends (ready for use with the next
|
|
<literal>HttpSession</literal> when the web request ends (ready for use with the next
|
|
- web request)</para></listitem><listitem><para>Authentication processing mechanisms -
|
|
|
|
|
|
+ web request)</para></listitem>
|
|
|
|
+ <listitem>
|
|
|
|
+ <para><classname>ConcurrentSessionFilter</classname>, because it uses the
|
|
|
|
+ <classname>SecurityContextHolder</classname> functionality but needs to update
|
|
|
|
+ the <interfacename>SessionRegistry</interfacename> to reflect ongoing requests
|
|
|
|
+ from the principal</para>
|
|
|
|
+ </listitem>
|
|
|
|
+ <listitem><para>Authentication processing mechanisms -
|
|
<classname>UsernamePasswordAuthenticationFilter</classname>,
|
|
<classname>UsernamePasswordAuthenticationFilter</classname>,
|
|
<classname>CasAuthenticationFilter</classname>,
|
|
<classname>CasAuthenticationFilter</classname>,
|
|
<classname>BasicAuthenticationFilter</classname> etc - so that the
|
|
<classname>BasicAuthenticationFilter</classname> etc - so that the
|