14.2.1.2.10. PasswordToken¶
- class edumfa.lib.tokens.passwordtoken.PasswordTokenClass(aToken)[source]¶
This Token does use a fixed Password as the OTP value. In addition, the OTP PIN can be used with this token. This Token can be used for a scenario like losttoken
Create a new token object.
- Parameters:
db_token (Token) – A database token object
- Returns:
A TokenClass object
- class SecretPassword(secObj)[source]¶
- check_otp(anOtpVal, counter=None, window=None, options=None)[source]¶
This checks the static password
- Parameters:
anOtpVal – This contains the “OTP” value, which is the static
password :return: result of password check, 0 in case of success, -1 if fail :rtype: int
- default_contents = 'cn'¶
- default_length = 12¶
- static get_class_info(key=None, ret='all')[source]¶
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:
dict or scalar
- get_init_detail(params=None, user=None)[source]¶
At the end of the initialization we return the registration code.
- password_detail_key = 'password'¶