16.2.1.15.2. Application Specific Password Token

class privacyidea.lib.tokens.applicationspecificpasswordtoken.ApplicationSpecificPasswordTokenClass(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 static password is tied to a certain application or service, making it an application specific password.

Create a new token object.

Parameters:

db_token (Token) – A database token object

Returns:

A TokenClass object

default_contents = 'cn'
default_length = 23
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

static get_class_prefix()[source]
static get_class_type()[source]
owned_tokeninfo_keys = frozenset({'service_id'})
property service_id
update(param)[source]

This method is called during the initialization process. :param param: parameters from the token init :type param: dict :return: None

use_for_authentication(options)[source]

This method checks, if this token should be used for authentication.

In this case the service_id of the token needs to match the service_id from the request.

Parameters:

options – This is the option list, that basically contains the Request parameters.

Returns: