hawat.blueprints.auth_pwd package

Description

This pluggable module provides classical web login form with password authentication method.

Provided endpoints

/auth_pwd/login

Page providing classical web login form.

  • Authentication: no authentication

  • Methods: GET, POST

hawat.blueprints.auth_pwd.BLUEPRINT_NAME = 'auth_pwd'

Name of the blueprint as module global constant.

class hawat.blueprints.auth_pwd.LoginView[source]

Bases: hawat.base.HTMLMixin, hawat.base.SQLAlchemyMixin, hawat.base.SimpleView

View enabling classical password login.

property dbmodel

Implementation of hawat.base.SQLAlchemyMixin.dbmodel().

dispatch_request()[source]

Mandatory interface required by the flask.views.View.dispatch_request(). Will be called by the Flask framework to service the request.

classmethod get_menu_title(**kwargs)[source]

Implementation of hawat.base.BaseView.get_menu_title().

classmethod get_view_icon()[source]

Implementation of hawat.base.BaseView.get_view_icon().

classmethod get_view_name()[source]

Implementation of hawat.base.BaseView.get_view_name().

classmethod get_view_title(**kwargs)[source]

Implementation of hawat.base.BaseView.get_view_title().

is_sign_in = True
methods = ['GET', 'POST']
property search_by

Implementation of hawat.base.SQLAlchemyMixin.search_by().

class hawat.blueprints.auth_pwd.PwdAuthBlueprint(name, import_name, **kwargs)[source]

Bases: hawat.base.HawatBlueprint

Pluggable module - classical password authentication (auth_pwd).

classmethod get_module_title()[source]

Implementation of hawat.base.HawatBlueprint.get_module_title().

register_app(app)[source]

Callback method. Will be called from hawat.base.HawatApp.register_blueprint() method and can be used to customize the Flask application object. Possible use cases:

  • application menu customization

Parameters

app (hawat.base.HawatApp) – Flask application to be customize.

hawat.blueprints.auth_pwd.get_blueprint()[source]

Mandatory interface and factory function. This function must return a valid instance of hawat.base.hawatBlueprint or flask.Blueprint.