6.1.1.3.1.5.1.9. linotp.lib.tokens.spasstoken module

This file containes the dynamic SPass token implementation: - SpassTokenClass

class linotp.lib.tokens.spasstoken.SpassTokenClass(aToken)[source]

Bases: linotp.lib.tokenclass.TokenClass

This is a simple pass token. It does have no OTP component. The OTP checking will always succeed. Of course, an OTP PIN can be used.

authenticate(passw, user, options=None)[source]

in case of a wrong passw, we return a bad matching pin, so the result will be an invalid token

classmethod getClassInfo(key=None, ret='all')[source]

getClassInfo - returns a subtree of the token definition

Parameters:
  • key (string) – subsection identifier
  • ret (user defined) – default return value, if nothing is found
Returns:

subsection if key exists or user defined

Return type:

s.o.

classmethod getClassPrefix()[source]
classmethod getClassType()[source]
is_challenge_request(passw, user, options=None)[source]
is_challenge_response(passw, user, options=None, challenges=None)[source]
update(param)[source]