Functionality of the Tokens view

Clicking the serial of a token in the list opens the token details. They present a detailed overview of the properties of the token and also let the administrator or a privileged user perform specific tasks for this token.

../_images/token_details.png

Token Detail

At the top of the page are token actions such as Deactivate, Revoke, Delete or Lost This Token?. Below, the token information is grouped into cards, where further actions apply to the specific information, such as resetting the fail counter, assigning or unassigning a user, or setting the PIN. Which actions are shown depends on the token type and the rights of the administrator.

Lost token

When a user has lost a token, an administrator can create a temporary password token for the user to log in.

The administrator or a privileged helpdesk user with a losttoken policy has to select the token that was lost, click the button Lost This Token? and confirm with Mark Token as Lost. A new Password Token is generated. The OTP PIN of the old token is automatically copied to the new token. Thus the administrator does not know the OTP PIN, while the user can use his old PIN.

Note

The lost token process is only available to administrators. The losttoken policy action exists in the admin scope only, so a user can not run it on their own token.

../_images/lost_token_button.png

Confirming that a token is lost

A long password is displayed to the administrator and the administrator can read this password to the user. The user now can authenticate with his old OTP PIN and the long password.

The lost token is deactivated.

The replacement password token is valid for 10 days; the enrollment policy losttoken_valid (see Enrollment policies) sets another number of days. Only a token that is assigned to a user can be marked as lost; for a token without owner the process ends with an error after the confirmation.

Running the process again for the same token issues another replacement and deactivates the one issued before it, so a password that was handed out earlier can no longer be used.

Find Token Serial Number

On the page Find Token, the administrator can enter an OTP value that was generated by an unknown token. Then the serial number for the corresponding token is searched and displayed.

Note

Since OTP values for all matching tokens need to be calculated, this can be time consuming!

On the command line, privacyidea-get-serial does the same.

Token settings

You can change the following token settings in the Counters, Description and Information cards of the token details. Fail Count and its reset button are in the Status card.

Max Count and Fail Count

If the login fail counter (Fail Count) reaches the Max Count, the user can not log in with this token anymore. The Fail Count has to be reset to zero, either manually (see Reset Fail counter below) or automatically: if Clear failcounter after minutes is configured, the next authentication attempt after this time resets it.

Description

The token description is shown in the Description card and in the token list. You can set a description to make it easier to identify a token. The token description will be truncated to fit into the database column (80 characters).

Count Window

The Count Window is the look ahead window of event based tokens. If the user pressed the button on an event based token the counter in the token is increased. If the user does not use this otp value to authenticate, the server does not know, that the counter in the token was increased. This way the counter in the token can get out of sync with the server.

Sync Window

If a token was out of sync (see Count Window), then it needs to be synchronized. This is done by entering two consecutive OTP values. The server searches these two values within the next Sync Window (default 1000) values.

OTP Length

This is the length of the OTP value that is generated by the token. The password that is entered by the user is split according to this length. 6 or 8 characters are split as OTP value and the rest is used as static password (OTP PIN). This value is set during token enrollment.

Information: hashlib

The HOTP and TOTP algorithms can be used with SHA1, SHA256 or SHA512.

Information: count_auth_max

The administrator can set a value how often this token may be used for authentication. If the number of authentication attempts exceeds this value, the token can not be used, until this count_auth_max value is increased.

Note

This way you could create tokens, that can be used only once.

Information: count_auth_success_max

The administrator can set a value how often this token may be used to successfully authenticate.

Information: validity_period_start

A timestamp can be set. The token will only be usable for authentication after this start time.

Information: validity_period_end

A timestamp can be set. The token can not be used for authentication after this end time.

Note

This way you can create temporary tokens for guests or short-term or seasonal employees.

Resync Token

In the Sync card of the token details, the administrator can enter two consecutive OTP values in Current OTP and Next OTP and click Resync Token to resynchronize the token if it was out of sync. Passkeys and WebAuthn tokens have no Sync card.

Test Token

In the Test card, the administrator can check whether a token works:

  • Test Token checks the OTP PIN followed by the OTP value, entered in PIN and/or OTP, like an authentication request.

  • Verify OTP Value checks only the OTP value, without the OTP PIN. It requires the admin right tokenlist and is not shown for token types that can not be checked by the OTP value alone, such as Simple Pass, push or TiQR tokens.

  • Trigger Challenge creates a challenge for the token without the OTP PIN and shows the challenge message. The response is then entered and checked with Send Response. It requires the admin right triggerchallenge.

For passkeys, Test Passkey replaces these buttons. WebAuthn tokens have no Test card.

Set token realm

A token can be assigned to several realms. This is important if you have administrators for different realms. A realm administrator is only allowed to see tokens within his realms. He will not see tokens, that are not in his realm. So you can assign a token to realm A and realm B, thus the administrator A and the administrator B will be able to see the token.

The token realms are changed in the row Token Realms of the Assignments card.

Enroll Token

You can enroll a token either with Enroll Token in the token list or with Enroll New Token in the User Details. When enrolling a token from the User Details the token is directly assigned to the user.

If you enroll the token from the token list, you can select a user in Assign Token to a User, to whom the token will be assigned. From version 3.11, you can also assign the token only to a realm (Only add to the realm).

When enrolling a token, you can select the token type and according to the token type other necessary information. For more information on the different token types, see Token types in privacyIDEA.

../_images/token_enroll.png

Token enrollment page

Assign

If no user is assigned to the token, the assign button in the User card of the token details assigns one. Select a realm in Select Realm of User and start typing a username in Enter User to find the user, to whom the token should be assigned.

Unassign

The icon button next to the username in the User card of the token details unassigns the token. After that, the token can be assigned to a new user. Unassigning removes the OTP PIN and resets the fail counter. The token stays active and keeps its token realms; disable it if it must not be used until it is assigned again.

Add to Container

A token can be added to a container in the row Container Serial of the Assignments card and during the enrollment in Add Token to a Container by selecting an existing container. The Create new container entry at the top of the container selection opens a dialog for a basic container creation: It allows defining the container type, setting a description, and optionally assigning the token owner to the new container. After the creation, the new container is preselected. The Create new container entry requires the right container_create (admin or user policy). Assigning the new container to the token owner additionally requires the right container_assign_user (admin or user policy) and a token owner.

Remove from Container

The icon button next to the container serial in the Assignments card removes the token from its container. Afterward, the token can be added to a new container.

Enable

If a token is disabled, the button Activate at the top of the token details enables it again.

Disable

Tokens can be disabled with the button Deactivate at the top of the token details. Disabled tokens still belong to the assigned user but those tokens can not be used to authenticate. Disabled tokens can be enabled again.

Set PIN

You can set the OTP PIN of a token in the PIN Setup card of the token details: enter it in PIN and Repeat PIN and click Set PIN (policy action setpin). Random PIN lets the server generate a PIN and shows it once (policy actions setrandompin and otp_pin_set_random). The mOTP PIN of an mOTP token is set during enrollment; to change it later, use POST /token/setpin with the parameter userpin.

Reset Fail counter

If a user locked his token, since he entered wrong OTP values or wrong OTP PINs, the fail counter has reached the max failcount. The administrator or help desk user can select those tokens in the token list and click the button Reset Failcounters to reset the fail counter to zero. In the token details, the button next to Fail Count resets it for a single token. The tokens can be used for authentication again.

Delete

Deleting a token will remove the token from the database. The token information can not be recovered. But all events that occurred with this token still remain in the audit log.

Revoke

In contrast to deleting a token, a token may be revoked to disable it permanently while keeping it in the database.

A revoked token still counts towards max_token_per_user, as it stays assigned to the user. It does not count towards max_active_token_per_user, since revoking also disables the token.