TokensControllerRevokeTokenAsync - метод

Revokes access token by its hash.

Definition

Пространство имён: Tessa.Web.Controllers
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
C#
[HttpDeleteAttribute("revoke")]
[SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })]
[ConsumesAttribute("text/plain", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<IActionResult> RevokeTokenAsync(
	[FromBodyAttribute] string hash,
	CancellationToken cancellationToken = default
)

Параметры

hash  String
The hash hex string of the access token to be revoked.
cancellationToken  CancellationToken  (Optional)
Token to cancel async task.

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

TaskIActionResult
Response to the request or status BadRequest if there are no registered handlers for requested type.

См. также