Session Authentication
Session authentication can be set up using the introduction.
Add the SessionAuthMiddleware
-middleware to your routes to protect them. This middleware
is a wrapper for the
login_required
-decorator:
from edmunds.auth.middleware.sessionauthmiddleware import SessionAuthMiddleware
from app.http.controllers.mycontroller import MyController
app.route('/loggedin', uses=(MyController, 'get_logged_in')) \
.middleware(SessionAuthMiddleware)