You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bu...@apache.org on 2012/04/22 20:31:52 UTC
svn commit: r813990 - in /websites/staging/sling/trunk/content: ./
authentication---framework.html
Author: buildbot
Date: Sun Apr 22 18:31:52 2012
New Revision: 813990
Log:
Staging update by buildbot for sling
Modified:
websites/staging/sling/trunk/content/ (props changed)
websites/staging/sling/trunk/content/authentication---framework.html
Propchange: websites/staging/sling/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sun Apr 22 18:31:52 2012
@@ -1 +1 @@
-1328925
+1328926
Modified: websites/staging/sling/trunk/content/authentication---framework.html
==============================================================================
--- websites/staging/sling/trunk/content/authentication---framework.html (original)
+++ websites/staging/sling/trunk/content/authentication---framework.html Sun Apr 22 18:31:52 2012
@@ -225,9 +225,10 @@ specific to convey the JCR Session to th
versions of the Sling Commons Auth bundle, this request attribute will not
be present anymore. To get the JCR Session for the current request adapt
the request's resource resolver to a JCR Session:</p>
-<p>~~~~~~
-Session session = request.getResourceResolver().adaptTo(Session.class);
-~~~~~~</p>
+<div class="codehilite"><pre><span class="n">Session</span> <span class="n">session</span> <span class="o">=</span> <span class="n">request</span><span class="o">.</span><span class="n">getResourceResolver</span><span class="p">()</span><span class="o">.</span><span class="n">adaptTo</span><span class="p">(</span><span class="n">Session</span><span class="o">.</span><span class="n">class</span><span class="p">);</span>
+</pre></div>
+
+
<p><a name="Authentication-Framework-AnonymousLogin"></a></p>
<h4 id="anonymous-login">Anonymous Login</h4>
<p>The <em>SlingAuthenticator</em> provides high level of control with respect to