linotp.controllers.selfservice module

selfservice controller - This is the controller for the self service interface,

where users can manage their own tokens

All functions starting with /selfservice/user... are data functions and protected by the session key i.e. the session key must be passed as the parameter session=

class linotp.controllers.selfservice.SelfserviceController(*args, **kw)[source]

Bases: linotp.lib.base.BaseController

activateocratoken()[source]

return the form for an ocra token activation

assign()[source]

In this form the user may assign an already existing Token to himself. For this, the user needs to know the serial number of the Token.

authUser = None
custom_style()[source]

In case the user hasn’t defined a custom css, Pylons calls this action. Return an empty file instead of a 404 (which would mean hitting the debug console)

delete()[source]

In this form the user may select a token of his own and delete this token.

disable()[source]

In this form the user may select a token of his own and disable this token.

enable()[source]

In this form the user may select a token of his own and enable this token.

form_access_methods = ['activateocratoken', 'assign', 'custom_style', 'delete', 'disable', 'enable', 'getotp', 'history', 'index', 'load_form', 'reset', 'resync', 'setmpin', 'setpin', 'unassign', 'webprovisiongoogletoken', 'webprovisionoathtoken']
getotp()[source]

In this form, the user can retrieve OTP values

history()[source]

This is the form to display the history table for the user

index()[source]

This is the redirect to the first template

load_form()[source]

This shows the enrollment form for a requested token type.

implicit parameters are:

Parameters:
  • type – token type
  • scope – defines the rendering scope
Returns:

rendered html of the requested token

reset()[source]

In this form the user can reset the Failcounter of the Token.

resync()[source]

In this form, the user can resync an HMAC based OTP token by providing two OTP values

setmpin()[source]

In this form the user my set the PIN for his mOTP application soft token on his phone. This is the pin, he needs to enter on his phone, before a otp value will be generated.

setpin()[source]

In this form the user may set the OTP PIN, which is the static password he enters when logging in in front of the otp value.

unassign()[source]

In this form the user may select a token of his own and unassign this token.

usertokenlist()[source]

This returns a tokenlist as html output

webprovisiongoogletoken()[source]

This is the form for an google token to do web provisioning.

webprovisionoathtoken()[source]

This is the form for an oathtoken to do web provisioning.

linotp.controllers.selfservice.getTokenForUser(user)[source]

should be moved to token.py