linotp.controllers package¶
This is the controller module. The controllers provide the Web API to communicate with LinOTP. You can use the following controllers:
API to manage the tokens |
|
to search the audit trail |
|
to do authentication tests |
|
to display errors |
|
to retrieve OTP values |
|
for internal maintenance purposes |
|
the Web UI |
|
for system monitoring |
|
|
the openid interface |
|
Ocra token API |
the selfservice UI |
|
to configure the system |
|
to access various tools |
|
U2F token API |
|
user API, used by selfservice frontend |
|
for authenticating / OTP checking |
- class linotp.controllers.BaseController(name, install_name='', **kwargs)¶
Bases:
Blueprint
BaseController class - will be called with every request
- before_handler()¶
Call derived controller’s legacy __before__ method if it exists
This method is called before each request is processed.
- default_url_prefix = ''¶
Suggested URL to access this controller.
The URL at which this controller will be available depends on a number of factors. These are, in order of priority: 1. Any explicit path in the settings CONTROLLERS=ControllerName:PATH 2. The controller’s base_url_prefix setting 3. The name of the controller
- jwt_check()¶
Check whether the current request needs to be authenticated using JWT, and if so, whether it contains a valid JWT access token. The login name from the access token is stored in the request_context[‘AuthUser’] via quering the jwt identity with get_jwt_identiy for the benefit of lib.user.getUserFromRequest().
- jwt_exempt = False¶
- parse_requesting_user()¶
load the requesting user
The result is placed into request_context[‘RequestUser’]
- property request_params¶
Submodules¶
- linotp.controllers.admin module
- linotp.controllers.audit module
- linotp.controllers.auth module
- linotp.controllers.base module
- linotp.controllers.error module
- linotp.controllers.gettoken module
- linotp.controllers.maintenance module
- linotp.controllers.manage module
- linotp.controllers.migrate module
- linotp.controllers.monitoring module
- linotp.controllers.reporting module
- linotp.controllers.selfservice module
- linotp.controllers.system module
- linotp.controllers.tools module
- linotp.controllers.u2f module
- linotp.controllers.userservice module
- linotp.controllers.validate module