TwoFactorAuthControllerPostCheck - метод
Process check request at 2FA session with info
for login attempt with identifier id.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
[HttpPostAttribute("{typeID:guid}/check/{id:guid}")]
[TypedJsonBodyAttribute]
[ConsumesAttribute("application/json", new string[] { ... })]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult<OpenSessionResponse>> PostCheck(
[FromRouteAttribute] Guid id,
[FromRouteAttribute] Guid typeID,
[FromQueryAttribute] string version,
[FromQueryAttribute] bool cookies = false,
[FromQueryAttribute] bool browser = false,
[FromBodyAttribute] Dictionary<string, Object?>? info = null,
CancellationToken cancellationToken = default
)
<HttpPostAttribute("{typeID:guid}/check/{id:guid}")>
<TypedJsonBodyAttribute>
<ConsumesAttribute("application/json", New String() { ... })>
<ProducesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function PostCheck (
<FromRouteAttribute> id As Guid,
<FromRouteAttribute> typeID As Guid,
<FromQueryAttribute> version As String,
<FromQueryAttribute> Optional cookies As Boolean = false,
<FromQueryAttribute> Optional browser As Boolean = false,
<FromBodyAttribute> Optional info As Dictionary(Of String, Object) = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult(Of OpenSessionResponse))
public:
[HttpPostAttribute(L"{typeID:guid}/check/{id:guid}")]
[TypedJsonBodyAttribute]
[ConsumesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<ActionResult<OpenSessionResponse^>^>^ PostCheck(
[FromRouteAttribute] Guid id,
[FromRouteAttribute] Guid typeID,
[FromQueryAttribute] String^ version,
[FromQueryAttribute] bool cookies = false,
[FromQueryAttribute] bool browser = false,
[FromBodyAttribute] Dictionary<String^, Object^>^ info = nullptr,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPostAttribute("{typeID:guid}/check/{id:guid}")>]
[<TypedJsonBodyAttribute>]
[<ConsumesAttribute("application/json", new string[] { ... })>]
[<ProducesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member PostCheck :
[<FromRouteAttribute>] id : Guid *
[<FromRouteAttribute>] typeID : Guid *
[<FromQueryAttribute>] version : string *
[<FromQueryAttribute>] ?cookies : bool *
[<FromQueryAttribute>] ?browser : bool *
[<FromBodyAttribute>] ?info : Dictionary<string, Object> *
?cancellationToken : CancellationToken
(* Defaults:
let _cookies = defaultArg cookies false
let _browser = defaultArg browser false
let _info = defaultArg info null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult<OpenSessionResponse>>
- id Guid
- Login attempt identifier.
- typeID Guid
- 2FA type identifier.
- version String
- Platform version.
- cookies Boolean (Optional)
-
Specifies that client uses cookies for authentication, i.e. it is web client or mobile app.
Parameter is ignored if current application does not support web clients.
- browser Boolean (Optional)
-
Specifies that client uses browser headers to provide info on client parameters, i.e. it is web client.
Parameter is ignored if current application does not support web clients.
- info DictionaryString, Object (Optional)
- Additional data for request processing.
- cancellationToken CancellationToken (Optional)
- Token to cancel async task.
TaskActionResultOpenSessionResponseResult of processing check request at 2FA session.