This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scalaz._ | |
/** | |
* playing with some of the ideas from the Haskell fclabels library | |
* using the new Lens functionality in scalaz | |
* | |
* http://hackage.haskell.org/package/fclabels | |
*/ | |
object LensTest { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait AuthenticationSupport | |
extends ScentrySupport[ApiUser] | |
with FlashMapSupport | |
with CookieSupport | |
with Logging { self: ScalatraKernel => | |
before { scentry.authenticate('RememberMe) } | |
override protected def registerAuthStrategies = { | |
scentry.registerStrategy('UserPassword, app => new UserPasswordStrategy(app)) |