6.1.1.3.1.5.1.12. linotp.lib.tokens.vascotoken module¶
This file containes the dynamic Vasco token implementation: - VascoTokenClass (vasco)
- class linotp.lib.tokens.vascotoken.VascoTokenClass(aToken)[source]¶
Bases: linotp.lib.tokenclass.TokenClass
- checkOtp(anOtpVal, counter, window, options=None)[source]¶
Checks if the OTP value is valid.
Therefore the vasco data blob is fetched from the database and this very blob and the otp value is passed to the vasco function vasco_otp_check.
After that the modified vasco blob needs to be stored (updated) in the database again.
- check_otp_exist(otp, window=10)[source]¶
checks if the given OTP value is/are values of this very token. This is used to autoassign and to determine the serial number of a token.
Parameters: - otp (string) – The OTP value to search for
- window (int) – In how many future OTP values the given OTP value should be searched
Returns: tuple of the result value and the data itself