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

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

subsection if key exists or user defined

Return type:


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