TokensControllerRevokeTokenAsync - метод
Revokes access token by its hash.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
[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
)
<HttpDeleteAttribute("revoke")>
<SessionMethodAttribute(UserAccessLevel.Regular, false, New String() { ... })>
<ConsumesAttribute("text/plain", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function RevokeTokenAsync (
<FromBodyAttribute> hash As String,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of IActionResult)
public:
[HttpDeleteAttribute(L"revoke")]
[SessionMethodAttribute(UserAccessLevel::Regular, false, __gc new array<String^>^ { ... })]
[ConsumesAttribute(L"text/plain", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<IActionResult^>^ RevokeTokenAsync(
[FromBodyAttribute] String^ hash,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpDeleteAttribute("revoke")>]
[<SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })>]
[<ConsumesAttribute("text/plain", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member RevokeTokenAsync :
[<FromBodyAttribute>] hash : string *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<IActionResult>
- hash String
- The hash hex string of the access token to be revoked.
- cancellationToken CancellationToken (Optional)
- Token to cancel async task.
TaskIActionResultResponse to the request or status
BadRequest if there are no registered handlers for requested type.