← Back to plugin index

Dummy Token List Persister

Description
Dummy token list persister and iterator that can be used for testing. Its behaviour is purely determined by the input in the following way:

Getting a token user structure (getTokenUserStructure):

  • If the username contains the string "notfound" a NotFoundException is thrown.
  • If the username contains the string "ambig" a NotUniqueException is thrown.
  • If the username contains the string "except" a PersisterException is thrown.
  • If the username contains the string "inactive" an inactive token user structure is returned.
  • If the username contains the string "order" a token user structure with the order flag set is returned.
  • All returned token lists contain 130 tokens with 3 characters each which are either random or set to the token's index (0-padded), depending on configuration.

Updating a token user structure (makeTokenUserStructurePersistent):

  • If the username contains the string "notfound" a NotFoundException is thrown.
  • If the username contains the string "ambig" a NotUniqueException is thrown.
  • If the username contains the string "except" a PersisterException is thrown.
  • For all other usernames, the call returns normally.

Getting all User-IDs (getAllUserIds):

  • Returns a list with 100 random user ids.

Type name
DummyTokenListPersister
Class
com.airlock.iam.core.misc.impl.persistency.DummyTokenListPersister
May be used by
Properties
Use Random Tokens (useRandomTokens)
Description
If enabled, random tokens are generated for each position in the list. Else, each position simply contains its index on the list (0-based).
Attributes
Boolean
Optional
Default value
true
Number Of Unanswered Challenges (numberOfUnansweredChallenges)
Description
Sets the number of unanswered challenges on the dummy token. If this value is greater than the configured number of allowed unanswered challenges (e.g. "Matrix Authentication Step" or "Matrix Authenticator"), authentication fails.
Attributes
Integer
Optional
Default value
0
YAML Template (with default values)

type: DummyTokenListPersister
id: DummyTokenListPersister-xxxxxx
displayName: 
comment: 
properties:
  numberOfUnansweredChallenges: 0
  useRandomTokens: true