incubator-esme-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhir...@apache.org
Subject svn commit: r939623 - /incubator/esme/branches/lift-2.0/server/src/main/scala/bootstrap/liftweb/Boot.scala
Date Fri, 30 Apr 2010 10:31:26 GMT
Author: rhirsch
Date: Fri Apr 30 10:31:25 2010
New Revision: 939623

URL: http://svn.apache.org/viewvc?rev=939623&view=rev
Log:
[ESME-160] Move to Lift 2.0 	 

Modified:
    incubator/esme/branches/lift-2.0/server/src/main/scala/bootstrap/liftweb/Boot.scala

Modified: incubator/esme/branches/lift-2.0/server/src/main/scala/bootstrap/liftweb/Boot.scala
URL: http://svn.apache.org/viewvc/incubator/esme/branches/lift-2.0/server/src/main/scala/bootstrap/liftweb/Boot.scala?rev=939623&r1=939622&r2=939623&view=diff
==============================================================================
--- incubator/esme/branches/lift-2.0/server/src/main/scala/bootstrap/liftweb/Boot.scala (original)
+++ incubator/esme/branches/lift-2.0/server/src/main/scala/bootstrap/liftweb/Boot.scala Fri
Apr 30 10:31:25 2010
@@ -159,8 +159,15 @@ class Boot {
     LiftRules.dispatch.prepend(RestAPI.dispatch)
     LiftRules.dispatch.append(API2.dispatch)
 
-    LiftRules.httpAuthProtectedResource.prepend {
+    /*LiftRules.httpAuthProtectedResource.prepend {
       case ParsePath(l, _, _, _) if l startsWith TwitterAPI.ApiPath => Full(AuthRole("user"))
+    }*/
+    
+    LiftRules.httpAuthProtectedResource.prepend { 
+        case req :  Req => req.path match { 
+            case ParsePath(l, _, _, _) if l startsWith TwitterAPI.ApiPath => Full(AuthRole("user"))
+            case _ => Empty 
+        } 
     }
 
     LiftRules.authentication = TwitterAPI.twitterAuth



Mime
View raw message