TokensControllerGetTokenByJwtAuthAsync - метод
Get access token with type, specified in type using JWT (JSON Web Token) authorization in an anonymous session.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
[HttpPostAttribute("{type}/get/jwt")]
[TypedJsonBodyAttribute]
[ConsumesAttribute("application/json", new string[] { ... })]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<IActionResult> GetTokenByJwtAuthAsync(
[FromRouteAttribute] string type,
[FromBodyAttribute] TokenRequest request,
CancellationToken cancellationToken = default
)
<HttpPostAttribute("{type}/get/jwt")>
<TypedJsonBodyAttribute>
<ConsumesAttribute("application/json", New String() { ... })>
<ProducesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function GetTokenByJwtAuthAsync (
<FromRouteAttribute> type As String,
<FromBodyAttribute> request As TokenRequest,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of IActionResult)
public:
[HttpPostAttribute(L"{type}/get/jwt")]
[TypedJsonBodyAttribute]
[ConsumesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<IActionResult^>^ GetTokenByJwtAuthAsync(
[FromRouteAttribute] String^ type,
[FromBodyAttribute] TokenRequest^ request,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPostAttribute("{type}/get/jwt")>]
[<TypedJsonBodyAttribute>]
[<ConsumesAttribute("application/json", new string[] { ... })>]
[<ProducesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member GetTokenByJwtAuthAsync :
[<FromRouteAttribute>] type : string *
[<FromBodyAttribute>] request : TokenRequest *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<IActionResult>
- type String
- Token type.
- request TokenRequest
- 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.