Identity
Aft has a customizeable login system.
Out of the box, Aft has two RPCs: login
and signup
.
The code for each is very short. Here's login:
There are two methods on the aft.auth
object:
authenticateAs(user_id)
, which will generate an authentication token and inject it into the current request, as well as set it in a cookieuser()
, which will return the currently authenticated user object if there is one
The login and signup RPC are just regular code, that you may rewrite to provide any additional logic that's appropriate for your application.