8.9. Token policies¶
The scope token defines properties of token objects, which are not subject to Enrollment policies or Authentication policies, typically those concerning the management of tokens.
The following actions are available in the scope token:
8.9.1. require_description_on_edit¶
type: string
To prevent tokens from becoming unidentifiable after a device loss, a description can be enforced with the “require_description_on_edit policy”. The desired token-types can be selected here. After setting up the policy, the description of selected token types can only be edited with non-empty values.
Added in version 3.12.
8.9.2. hide_specific_error_message_for_ttype¶
type: bool
If this policy is set, exceptions raised by a token class’ api_endpoint
during a request to /ttype/<tokentype> are masked into a generic
“Failed special token function” error response. Without the policy the
underlying error message is propagated to the caller.
This is useful when token-type-specific endpoints (TiQR, push, YubiKey) are exposed to untrusted networks and detailed error messages could leak server-side state.
Added in version 3.13.
8.9.3. hide_specific_error_message_for_offline_refill¶
type: bool
If this policy is set, a failed refill of the offline OTP values at
/validate/offlinerefill returns the generic error message “Failed offline token
refill” instead of the specific one.
Added in version 3.13.