ContentControllerGetTokenByJwtAuthAsync - метод

Get token for requesting content with type, specified in request.

Definition

Пространство имён: Tessa.Web.Controllers
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
C#
[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
)

Параметры

request  ContentTokenRequest
Request to get token.
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.

См. также