Hello everyone,
When switching to Lift 2.5 my basic http authentication doesn't happen anymore and I have no idea why. I just switched back to 2.4 to confirm that it doesn't come from anything else and this is the case.
Here is my code:
LiftRules.httpAuthProtectedResource.prepend {
    case Req("api"::"post"::_, _, PostRequest) => Full(AuthRole("user"))
}
LiftRules.authentication = HttpBasicAuthentication("api") {
       case (username, password, req) => {
         authService.login(username,password) match {
           case Full(user) => {
             userRoles(AuthRole("user"))
             true
           }
           case _ => {
             false
           }
         }
       }
     }
Thank you in advance
Ugo
Could you post a sample app showing this? Later tonight a can track down which change in lift broke this (please see the signature on this email for instructions).
Thanks
Diego
Diego
Sent from my android cell
--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
Â
Â
Â
Good news and bad news. Good news I didn't break this with the commit I thought.
Bad news is that I went back 7 month in history and this was still broken.
Now I'm trying a new approach to finding the solution.
Thanks
Diego
Sent from my android cell