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 |
Additionally there is a new set of controllers accessible under /api/v2, providing the same functionality as some of the previous controllers, but with a more RESTful interface:
API to manage tokens |
|
API to manage realms |
|
API to manage resolvers and look up users |
- 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 ENABLE_CONTROLLER or DISABLE_CONTROLLER = ControllerName:PATH
The controller’s base_url_prefix setting
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 then stored in g.authUser 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
AdminController
AdminController.assign()
AdminController.check_serial()
AdminController.checkstatus()
AdminController.copyTokenPin()
AdminController.copyTokenUser()
AdminController.disable()
AdminController.enable()
AdminController.getSerialByOtp()
AdminController.getTokenOwner()
AdminController.init()
AdminController.loadtokens()
AdminController.losttoken()
AdminController.remove()
AdminController.reset()
AdminController.resync()
AdminController.set()
AdminController.setPin()
AdminController.setValidity()
AdminController.show()
AdminController.testresolver()
AdminController.tokenrealm()
AdminController.totp_lookup()
AdminController.unassign()
AdminController.unpair()
AdminController.userlist()
- linotp.controllers.audit module
- linotp.controllers.auditlog 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
ManageController
ManageController.audittrail()
ManageController.context()
ManageController.custom_style()
ManageController.help()
ManageController.index()
ManageController.login()
ManageController.policies()
ManageController.tokeninfo()
ManageController.tokentype()
ManageController.tokenview()
ManageController.tokenview_flexi()
ManageController.userview()
ManageController.userview_flexi()
- linotp.controllers.migrate module
- linotp.controllers.monitoring module
- linotp.controllers.realms module
- linotp.controllers.reporting module
- linotp.controllers.resolvers module
- linotp.controllers.selfservice module
SelfserviceController
SelfserviceController.assign()
SelfserviceController.authUser
SelfserviceController.custom_style()
SelfserviceController.default_url_prefix
SelfserviceController.delete()
SelfserviceController.disable()
SelfserviceController.enable()
SelfserviceController.form_access_methods
SelfserviceController.getotp()
SelfserviceController.history()
SelfserviceController.index()
SelfserviceController.jwt_exempt
SelfserviceController.landing()
SelfserviceController.load_form()
SelfserviceController.login()
SelfserviceController.logout()
SelfserviceController.reset()
SelfserviceController.resync()
SelfserviceController.setmpin()
SelfserviceController.setpin()
SelfserviceController.unassign()
SelfserviceController.usertokenlist()
SelfserviceController.webprovisiongoogletoken()
SelfserviceController.webprovisionoathtoken()
- linotp.controllers.system module
RemoveForbiddenError
SystemController
SystemController.checkPolicy()
SystemController.delConfig()
SystemController.delPolicy()
SystemController.delProvider()
SystemController.delRealm()
SystemController.delResolver()
SystemController.getConfig()
SystemController.getDefaultRealm()
SystemController.getPolicy()
SystemController.getPolicyDef()
SystemController.getProvider()
SystemController.getProviderDef()
SystemController.getRealms()
SystemController.getReportedStatuses()
SystemController.getResolver()
SystemController.getResolvers()
SystemController.getSupportInfo()
SystemController.importPolicy()
SystemController.isSupportValid()
SystemController.policies_flexi()
SystemController.setConfig()
SystemController.setDefault()
SystemController.setDefaultProvider()
SystemController.setDefaultRealm()
SystemController.setPolicy()
SystemController.setProvider()
SystemController.setRealm()
SystemController.setResolver()
SystemController.setSupport()
SystemController.setupSecurityModule()
SystemController.testProvider()
- linotp.controllers.tokens module
- linotp.controllers.tools module
- linotp.controllers.u2f module
- linotp.controllers.userservice module
UserNotFound
UserserviceController
UserserviceController.activateocratoken()
UserserviceController.assign()
UserserviceController.auth()
UserserviceController.context()
UserserviceController.delete()
UserserviceController.delete_cookie()
UserserviceController.disable()
UserserviceController.enable()
UserserviceController.enroll()
UserserviceController.finishocra2token()
UserserviceController.getSerialByOtp()
UserserviceController.getmultiotp()
UserserviceController.history()
UserserviceController.jwt_exempt
UserserviceController.login()
UserserviceController.logout()
UserserviceController.pre_context()
UserserviceController.reset()
UserserviceController.resync()
UserserviceController.set_cookie()
UserserviceController.setdescription()
UserserviceController.setmpin()
UserserviceController.setpin()
UserserviceController.unassign()
UserserviceController.userinfo()
UserserviceController.usertokenlist()
UserserviceController.verify()
UserserviceController.webprovision()
add_and_delete_cookies()
get_auth_user()
secure_cookie()
sendResult()
unauthorized()
- linotp.controllers.validate module
ValidateController
ValidateController.accept_transaction()
ValidateController.check()
ValidateController.check_s()
ValidateController.check_status()
ValidateController.check_t()
ValidateController.check_yubikey()
ValidateController.fail()
ValidateController.jwt_exempt
ValidateController.ok()
ValidateController.pair()
ValidateController.reject_transaction()
ValidateController.samlcheck()
ValidateController.simplecheck()
ValidateController.smspin()