17.2.1.16.27. Yubico Token¶
- class privacyidea.lib.tokens.yubicotoken.YubicoTokenClass(db_token)[source]¶
Create a new token object.
- Parameters:
db_token (Token) – A database token object
- Returns:
A TokenClass object
- check_otp(anOtpVal, counter=None, window=None, options=None)[source]¶
Here we contact the Yubico Cloud server to validate the OtpVal.
- static get_class_info(key=None, ret='all')[source]¶
- 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 string
- static get_setting_type(key: str) str[source]¶
This function returns the type of the token specific config/setting. This way a tokenclass can define settings, that can be “public” or a “password”. If this setting is written to the database, the type of the setting is set automatically in set_privacyidea_config
The key name needs to start with the token type.
- Parameters:
key – The token specific setting key
- Returns:
A string like “public”
- import_token(token_information: dict)[source]¶
Import for this token is not supported.
Concern that the database token must be deleted manually.
- owned_tokeninfo_prefixes = frozenset({'yubico.'})¶