Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
{
	"return":["id","name"]
}

Response:resetLogon

Code Block
languagejs
{
	"error":0,
	"result":
	{
		"total":2,
		"rows":
		[
			{
				"id":"aid1",
				"name":"application 1"
			},
			{
				"id":"aid2",
				"name":"application 2"
			}
		]
	}
}

...

Code Block
languagejs
{
	"application":
	{
		"id":"appid"
	},
    "remoteIp": "xxx.xxx.xxx.xxx",
	 // client IP Address
    "user":
	{
		"id":"userid"
	},
	"token":
	{
		"serial":"10000000"
	},
	"credential":
	{
		"otp":"123456",
		//"cc":"121212" // if verifyResponse is required
	}
}

...

Examples:
Method:/auth/verify
Parameters:

Code Block
languagejs
{
    "remoteIp": "xxx.xxx.xxx.xxx", // client IP Address
	"user":
	{
		"id":"userid"
	},
	"token": // optional
	{
		"serial":"10000000"
	},
	"credential":
	{
		"otp":"123456",
		//"cc":"121212" // if verifyResponse is required
	}
}

...

Code Block
languagejs
{
	"user":
	{
		"loginName":"login name",
		"domain.id":"domainid"
	},
	"tokenAssignment":
	{
		"id":"assignment id"
	}
	"pin":"pin"
}


Response:

Code Block
languagejs
{
	"error":0
}


/auth/resetLogon

Reset the logon session, this API will reset everything in the logon session: user, logon step, access control etc.

Request:

Code Block
languagejs
{
}

Response:

Code Block
languagejs
{
	"error":0
}

...