TwoFactorAuthControllerPostRestart - метод
Process restart 2FA session request with type typeID
for login attempt with identifier id.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
[HttpPostAttribute("{typeID:guid}/restart/{id:guid}")]
[TypedJsonBodyAttribute]
[ConsumesAttribute("application/json", new string[] { ... })]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult<TwoFactorAuthResult>> PostRestart(
[FromRouteAttribute] Guid id,
[FromRouteAttribute] Guid typeID,
[FromBodyAttribute] Dictionary<string, Object?>? info = null,
CancellationToken cancellationToken = default
)
<HttpPostAttribute("{typeID:guid}/restart/{id:guid}")>
<TypedJsonBodyAttribute>
<ConsumesAttribute("application/json", New String() { ... })>
<ProducesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function PostRestart (
<FromRouteAttribute> id As Guid,
<FromRouteAttribute> typeID As Guid,
<FromBodyAttribute> Optional info As Dictionary(Of String, Object) = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult(Of TwoFactorAuthResult))
public:
[HttpPostAttribute(L"{typeID:guid}/restart/{id:guid}")]
[TypedJsonBodyAttribute]
[ConsumesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<ActionResult<TwoFactorAuthResult^>^>^ PostRestart(
[FromRouteAttribute] Guid id,
[FromRouteAttribute] Guid typeID,
[FromBodyAttribute] Dictionary<String^, Object^>^ info = nullptr,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPostAttribute("{typeID:guid}/restart/{id:guid}")>]
[<TypedJsonBodyAttribute>]
[<ConsumesAttribute("application/json", new string[] { ... })>]
[<ProducesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member PostRestart :
[<FromRouteAttribute>] id : Guid *
[<FromRouteAttribute>] typeID : Guid *
[<FromBodyAttribute>] ?info : Dictionary<string, Object> *
?cancellationToken : CancellationToken
(* Defaults:
let _info = defaultArg info null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult<TwoFactorAuthResult>>
- id Guid
- Login attempt identifier.
- typeID Guid
- 2FA type identifier.
- info DictionaryString, Object (Optional)
- Additional data for request processing.
- cancellationToken CancellationToken (Optional)
- Token to cancel async task.
TaskActionResultTwoFactorAuthResultResult of processing restart 2FA session request.