O'Reilly logo

Haskell Cookbook by Yogesh Sajanikar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Authentication in Snap

In this recipe, we will work with authentication with help of the built-in authentication manager in snap. Snap provides a framework that can be tied to HTML templates to provide a customizable authentication mechanism. In this recipe, we will have a few routes requiring authentication, and a few without it. We will see how transitioning from one route to another requiring authentication kicks in the authentication framework.

We will also work with the SQLite backend for storing user credentials.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required