Show / Hide Table of Contents

AuthToken Property

AuthToken

The current PIN / UV Auth token, if present.

C#
public ReadOnlyMemory<byte>? AuthToken { get; }

Property Value

Type Description
ReadOnlyMemory<byte>?

Remarks

See the User's Manual entry for a deeper discussion of FIDO2 authentication and how AuthTokens, permissions, PIN/UV, and AuthParams fit together.

See also the User's Manual entry on the SDK's AuthToken logic. That article goes into greater detail how the SDK performs "automatic" AuthToken retrieval based on the version of the connected YubiKey, the state of the Fido2 application on the YubiKey, the input, and the state of the Fido2Session.

The PIN / UV Auth Token, or auth token for short, is created when (Try)VerifyPin or (Try)VerifyUv is called. The auth token may also have a set of permissions that restrict the use of the token. These permissions are specified when verifying the PIN or UV and are shown in the AuthTokenPermissions property.

In this article
Back to top Generated by DocFX