incubator-esme-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vdic...@apache.org
Subject svn commit: r887596 - /incubator/esme/trunk/server/src/main/scala/bootstrap/liftweb/Boot.scala
Date Sat, 05 Dec 2009 22:01:11 GMT
Author: vdichev
Date: Sat Dec  5 22:01:11 2009
New Revision: 887596

URL: http://svn.apache.org/viewvc?rev=887596&view=rev
Log:
Fix HttpBasicAuthentication for Twitter API

Modified:
    incubator/esme/trunk/server/src/main/scala/bootstrap/liftweb/Boot.scala

Modified: incubator/esme/trunk/server/src/main/scala/bootstrap/liftweb/Boot.scala
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/scala/bootstrap/liftweb/Boot.scala?rev=887596&r1=887595&r2=887596&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/scala/bootstrap/liftweb/Boot.scala (original)
+++ incubator/esme/trunk/server/src/main/scala/bootstrap/liftweb/Boot.scala Sat Dec  5 22:01:11
2009
@@ -149,7 +149,7 @@
     LiftRules.dispatch.prepend(API2.dispatch)
 
     LiftRules.httpAuthProtectedResource.prepend {
-      case (ParsePath(TwitterAPI.ApiPath :: _, _, _, _)) => Full(AuthRole("user"))
+      case ParsePath(l, _, _, _) if l startsWith TwitterAPI.ApiPath => Full(AuthRole("user"))
     }
 
     LiftRules.authentication = TwitterAPI.twitterAuth



Mime
View raw message