Skip to content
Jay Williams edited this page Mar 7, 2012 · 6 revisions

API

auth.token

Valid authentication and get a token.

See : Authentication

no grant access required

Request example

GET http://example.com/api/get/auth.token/json/?challenge=fa10c4d7b02a13e27a2ae5a5bbe8130b&signature=27cee4f2a55d7cc1d03d152607199d59
{
	"method"  : "auth.token",
	"request" :
	{
		"challenge" : "fa10c4d7b02a13e27a2ae5a5bbe8130b",
		"signature" : "27cee4f2a55d7cc1d03d152607199d59"
	}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
	<method>auth.token</method>
	<request>
		<challenge>fa10c4d7b02a13e27a2ae5a5bbe8130b</challenge>
		<signature>27cee4f2a55d7cc1d03d152607199d59</signature>
	</refresh>
</xml>

Response example

{
	"status"   : "valid",
	"response" :
	{
		"nonce"     : "8b863651d51f3000226aa9a628df4ee8",
		"signature" : "87dfddb3d82a503483cd743d0be67b5c"
    }
}
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
	<status>valid</status>
	<response>
		<nonce>8b863651d51f3000226aa9a628df4ee8</nonce>
		<signature>87dfddb3d82a503483cd743d0be67b5c</signature>
	</response>
</xml>

Arguments

  • challenge: the challenge provided via: auth.request
  • signature: the challenge signature

Return Value

  • nonce: the nonce to use in next request
  • signature: the nonce signature
Clone this wiki locally