ITokenRevokingStrategyRevokeTokenAsync - метод

Revokes and deletes the token by its hash.

Definition

Пространство имён: Tessa.Tokens
Сборка: Tessa (в Tessa.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
C#
Task<ITokenInfo> RevokeTokenAsync(
	byte[] hash,
	string? reason = null,
	CancellationToken cancellationToken = default
)

Параметры

hash  Byte
Token hash.
reason  String  (Optional)
Reason for the revoking token.
cancellationToken  CancellationToken  (Optional)
Propagates notification that operations should be canceled.

Возвращаемое значение

TaskITokenInfo
An object containing information about token.

Заметки

Token revocation is only available to the token creator or system administrator.

См. также