TokensControllerGetTokenAsync - метод

Get access token with type, specified in type.

Definition

Пространство имён: Tessa.Web.Controllers
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
C#
[HttpPostAttribute("{type}/get")]
[SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })]
[TypedJsonBodyAttribute]
[ConsumesAttribute("application/json", new string[] { ... })]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<IActionResult> GetTokenAsync(
	[FromRouteAttribute] string type,
	[FromBodyAttribute] TokenRequest request,
	CancellationToken cancellationToken = default
)

Параметры

type  String
Token type.
request  TokenRequest
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.

См. также