POST api/account/verifycode/v2/twofactor

Xác thực 2 yếu tố version 2

Request Information

URI Parameters

None.

Body Parameters

Tham số

TwofactorParamV2
NameDescriptionTypeAdditional information
Code

string

None.

Username

string

None.

ClientId

string

None.

Scopes

string

None.

DeviceType

string

None.

DeviceName

string

None.

ClientIP

string

None.

OSName

string

None.

Browser

string

None.

UserAgent

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Code": "sample string 1",
  "Username": "sample string 2",
  "ClientId": "sample string 3",
  "Scopes": "sample string 4",
  "DeviceType": "sample string 5",
  "DeviceName": "sample string 6",
  "ClientIP": "sample string 7",
  "OSName": "sample string 8",
  "Browser": "sample string 9",
  "UserAgent": "sample string 10"
}

text/xml

Sample:
<TwofactorParamV2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.Auth.Entity.Param">
  <Browser>sample string 9</Browser>
  <ClientIP>sample string 7</ClientIP>
  <ClientId>sample string 3</ClientId>
  <Code>sample string 1</Code>
  <DeviceName>sample string 6</DeviceName>
  <DeviceType>sample string 5</DeviceType>
  <OSName>sample string 8</OSName>
  <Scopes>sample string 4</Scopes>
  <UserAgent>sample string 10</UserAgent>
  <Username>sample string 2</Username>
</TwofactorParamV2>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ServiceResult
NameDescriptionTypeAdditional information
Status

RequestStatus

None.

Data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": {
    "Type": "sample string 1",
    "Code": 2,
    "Message": "sample string 3",
    "Error": true,
    "ErrorCode": 5
  },
  "Data": {}
}

text/xml

Sample:
<ServiceResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.Auth.Entity">
  <Data />
  <Status>
    <Code>2</Code>
    <Error>true</Error>
    <ErrorCode>5</ErrorCode>
    <Message>sample string 3</Message>
    <Type>sample string 1</Type>
  </Status>
</ServiceResult>