linotp.controllers.manage module¶
manage controller - In provides the web gui management interface
- class linotp.controllers.manage.ManageController(name, install_name='', **kwargs)¶
Bases:
BaseController
- audittrail()¶
GET, POST /manage/audittrail
Deprecated since version 3.2: Requests using HTTP POST method (because it is only reading data). This endpoint will only be available via HTTP GET method in the future.
This is the template for the audit trail TAB
- context()¶
GET /manage/context
provide session context for the manage ui - the output is structured similar to the userservice/context
NOTE: the context might be extended to further needs
- Returns
linotp json response with detail structure containing the context information
- custom_style()¶
GET, POST /manage/custom_style
Deprecated since version 3.2: Requests using HTTP POST method (because it is only reading data). This endpoint will only be available via HTTP GET method in the future.
If this action was called, the user hasn’t created a custom css yet. To avoid hitting the debug console over and over, we serve an empty file.
- help(id=None)¶
GET, POST /manage/help
Deprecated since version 3.2: Requests using HTTP POST method (because it is only reading data). This endpoint will only be available via HTTP GET method in the future.
This downloads the Manual
The filename will be the 3. part,ID https://172.16.200.6/manage/help/somehelp.pdf The file is downloaded through Flask!
- index()¶
GET, POST /manage/index
Deprecated since version 3.2: Requests using HTTP POST method (because it is only reading data). This endpoint will only be available via HTTP GET method in the future.
This is the main function of the management web UI
- login()¶
GET, POST /manage/login
Deprecated since version 3.2: Requests using HTTP POST method (because it is only reading data). This endpoint will only be available via HTTP GET method in the future.
Render the Manage-UI login page
- policies()¶
GET, POST /manage/policies
Deprecated since version 3.2: Requests using HTTP POST method (because it is only reading data). This endpoint will only be available via HTTP GET method in the future.
This is the template for the policies TAB
- tokeninfo()¶
GET, POST /manage/tokeninfo
Deprecated since version 3.2: Requests using HTTP POST method (because it is only reading data). This endpoint will only be available via HTTP GET method in the future.
this returns the contents of /admin/show?serial=xyz in an html format
- Parameters
serial – the token serial
- Returns
a json result with a boolean status and request result
- Raises
Exception – if an error occurs an exception is serialized and returned
- tokentype()¶
GET, POST /manage/tokentype
Deprecated since version 3.2: Requests using HTTP POST method (because it is only reading data). This endpoint will only be available via HTTP GET method in the future.
render the tokentype info mako
- tokenview()¶
GET, POST /manage/tokenview
Deprecated since version 3.2: Requests using HTTP POST method (because it is only reading data). This endpoint will only be available via HTTP GET method in the future.
This is the template for the token TAB
- tokenview_flexi()¶
GET, POST /manage/tokenview_flexi
Deprecated since version 3.2: Requests using HTTP POST method (because it is only reading data). This endpoint will only be available via HTTP GET method in the future.
This function is used to fill the flexigrid. Unlike the complex /admin/show function, it only returns a simple array of the tokens.
- Parameters
page –
query –
qtype –
sortname –
sortorder –
rp –
- Returns
json result with a boolean status and request result
- Raises
Exception – if an error occurs an exception is serialized and returned
- userview()¶
GET, POST /manage/userview
Deprecated since version 3.2: Requests using HTTP POST method (because it is only reading data). This endpoint will only be available via HTTP GET method in the future.
This is the template for the token TAB
- userview_flexi()¶
GET, POST /manage/userview_flexi
Deprecated since version 3.2: Requests using HTTP POST method (because it is only reading data). This endpoint will only be available via HTTP GET method in the future.
This function is used to fill the flexigrid. Unlike the complex /admin/userlist function, it only returns a simple array of the tokens.
- Parameters
page –
query –
qtype –
sortname –
sortorder –
rp –
realm –
- Returns
a json result with a boolean status and request result
- Raises
Exception – if an error occurs an exception is serialized and returned