AuthToken Property
AuthToken
The current PIN / UV Auth token, if present.
public Nullable<ReadOnlyMemory<byte>> AuthToken { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.ReadOnlyMemory<System.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.