13.2.1.2.12. SPass Token

class privacyidea.lib.tokens.spasstoken.SpassTokenClass(db_token)[source]

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(*args, **kwds)[source]

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

check_otp(*args, **kwds)[source]

As we have no otp value we always return true == 0

classmethod get_class_info(*args, **kwds)[source]

returns a subtree of the token definition Is used by lib.token.get_token_info

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:

dict

classmethod get_class_prefix()[source]
classmethod get_class_type()[source]
is_challenge_request(passw, user, options=None)[source]

The spass token does not support challenge response :param passw: :param user: :param options: :return:

is_challenge_response(passw, user, options=None, challenges=None)[source]
update(param)[source]