浏览代码

SEC-1656: Document potential need for pre-emptive session creation if writing the security context manuall.

Luke Taylor 14 年之前
父节点
当前提交
83050f96cb
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      docs/manual/src/docbook/technical-overview.xml

+ 7 - 1
docs/manual/src/docbook/technical-overview.xml

@@ -336,7 +336,13 @@ Successfully authenticated. Security context contains: \
                 All you need to do is write a filter (or equivalent) that reads the third-party user
                 information from a location, build a Spring Security-specific
                 <interfacename>Authentication</interfacename> object, and put it into the
-                <classname>SecurityContextHolder</classname>.</para>
+                <classname>SecurityContextHolder</classname>. In this case you also need to think
+                about things which are normally taken care of automatically by the built-in authentication
+                infrastructure. For example, you might need to pre-emptively create an HTTP session to
+                <link xlink:href="tech-intro-sec-context-persistence">cache the context between requests</link>,
+                before you write the response to the client<footnote><para>It isn't possible to create a session once the
+                response has been committed.</para></footnote>.
+            </para>
             <para> If you're wondering how the <interfacename>AuthenticationManager</interfacename>
                 manager is implemented in a real world example, we'll look at that in the <link
                 xlink:href="#core-services-authentication-manager">core services