Tutorial: Overview: flitter-auth

Overview: flitter-auth

flitter-auth provides a basic user-authentication framework for Flitter. When deployed, it creates controllers, middleware, routes, and views to add login/registration/session/route-protection functionality to your application. The sample views that ship with flitter-auth provide a login page, registration page, very basic dashboard, and error page.

flitter-auth creates a basic User model that stores the username, UUID, hashed password, and a misc. JSON data array for each user. When a user logs in, this object (sans password) is stored in the session so it can be used when handling requests. When a user logs out, this object is removed. Passwords are encrypted using bcrypt, and their hashes are stored.

Quick Start

By default, Flitter ships with flitter-auth available. To set it up, just run the deployment:

./flitter deploy auth

Now, you should be able to access the /auth/register, /auth/login, and /auth/dash routes. flitter-auth makes its files available in the app-space so they can be customized and extended to work with your app better.