The
flask.g
object is:A proxy that provides access to the current request.
An instance of the
flask_httpauth.HTTPBasicAuth
class.A proxy that allows us to store on this whatever we want to share for one request only.
The
passlib
package provides:A password hashing framework that supports more than 30 schemes.
An authentication framework that automatically adds models for users and permissios to a Flask application.
A lightweight web framework that replaces Flask.
The
auth.verify_password
decorator applied to a function:Makes this function become the callback that
Flask-HTTPAuth
will use to hash the password for a specific user.Makes this function become the callback that
SQLAlchmey
will use to verify the password for a specific user.Makes this function become the callback that
Flask-HTTPAuth
will use to verify the password for a specific user.
When you assign a list that includes
auth.login_required
to themethod_decorators
property of any subclass offlask_restful.Resource...
You're reading from Building RESTful Python Web Services
The rest of the page is locked
You have been reading a chapter from
Building RESTful Python Web ServicesPublished in: Oct 2016Publisher: PacktISBN-13: 9781786462251
© 2016 Packt Publishing Limited All Rights Reserved