Created
May 3, 2015 04:43
-
-
Save PipelineBaron/ba84c8db70d91c531c40 to your computer and use it in GitHub Desktop.
An example on how to configure JWT sessions.
This file contains hidden or 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
| val server = PlasmaConduit( | |
| port = 3000, | |
| middleware = List(SessionMiddleware(JWTSessionHandler(JWTSha256, "topsykretz"))), | |
| defaultRoute = MissingController(), | |
| routes = HttpRoutes( | |
| HttpGetMethodRoutes( | |
| HttpPathRoute("/", RootController()), | |
| ) | |
| ) | |
| ) | |
| server.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment