Orchestrator API

models Package

«  drivers Package   ::   Contents   ::   Authentication V.1  »

models Package

models Package

copyright:© 2015 by CRS4.
license:gpl-2, see License for more details.

dispatcher initialization script This script provides the structure to the authentication layer

class dispatcher.models.Role(**kwargs)[source]

Bases: flask_sqlalchemy.Model, flask_security.core.RoleMixin

User Role

description
id
name
class dispatcher.models.Token(**kwargs)[source]

Bases: flask_sqlalchemy.Model

active
creation_date
id
token
user
user_id
class dispatcher.models.User(**kwargs)[source]

Bases: flask_sqlalchemy.Model, flask_security.core.UserMixin

User class inherited and overridden, in addition there is a username field, a new get_auth_token and a few other attributes

active
confirmed_at
email
static get(userid)[source]

Static method to search the database and see if userid exists. If it does exist then return a User Object. If not then return None as required by Flask-Login.

get_auth_token()[source]

Returns the user’s authentication token.

id
password
roles
username

populate Module

copyright:© 2015 by CRS4.
license:gpl-2, see License for more details.

Provides routines to pre-populate the database

dispatcher.models.populate.create_roles()[source]

Create roles

dispatcher.models.populate.create_users()[source]

Create users

dispatcher.models.populate.populate_data()[source]

Sequence of creation routines

«  drivers Package   ::   Contents   ::   Authentication V.1  »