Re: [Lift] Forcing Authentication not working

2010-02-07 Thread Timothy Perrett
How odd - why dont you just match on the req unapply rather that this awkward sub match? You need to do something like: LiftRules.httpAuthProtectedResource.prepend { case Req(restricted :: _,_,_) = Full(AuthRole(admin)) } LiftRules.authentication =

[Lift] Forcing Authentication not working

2010-02-06 Thread aw
According to: http://scala-tools.org/mvnsites-snapshots/liftweb/lift-base/lift-webkit/scaladocs/net/liftweb/http/LiftRules$object.html#httpAuthProtectedResource It says that if I have a rule that responds with Empty, it means that authentications is performed, but not an authorization check.