ContentControllerGetTokenByJwtAuthAsync - метод
Get token for requesting content with type, specified in request.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
[HttpPostAttribute("token-by-jwt-auth")]
[TypedJsonBodyAttribute]
[ConsumesAttribute("application/json", new string[] { ... })]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<IActionResult> GetTokenByJwtAuthAsync(
[FromBodyAttribute] ContentTokenRequest request,
CancellationToken cancellationToken = default
)
<HttpPostAttribute("token-by-jwt-auth")>
<TypedJsonBodyAttribute>
<ConsumesAttribute("application/json", New String() { ... })>
<ProducesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function GetTokenByJwtAuthAsync (
<FromBodyAttribute> request As ContentTokenRequest,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of IActionResult)
public:
[HttpPostAttribute(L"token-by-jwt-auth")]
[TypedJsonBodyAttribute]
[ConsumesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<IActionResult^>^ GetTokenByJwtAuthAsync(
[FromBodyAttribute] ContentTokenRequest^ request,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPostAttribute("token-by-jwt-auth")>]
[<TypedJsonBodyAttribute>]
[<ConsumesAttribute("application/json", new string[] { ... })>]
[<ProducesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member GetTokenByJwtAuthAsync :
[<FromBodyAttribute>] request : ContentTokenRequest *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<IActionResult>
- request ContentTokenRequest
- Request to get token.
- cancellationToken CancellationToken (Optional)
- Token to cancel async task.
TaskIActionResultResponse to the request or status
BadRequest if there are no registered handlers for requested type.