Rod Simpson created USERGRID-25:
-----------------------------------
Summary: Unable to set token ttl. Defaults to 604800
Key: USERGRID-25
URL: https://issues.apache.org/jira/browse/USERGRID-25
Project: Usergrid
Issue Type: Bug
Components: Stack
Reporter: Rod Simpson
"/token endpoint appears to be slightly busted.
Currently I am unable to set a token ttl with grant type password. No matter,
what I specify, the token is created with a ttl of 604800
For example, this:
curl -X POST -i -H ""Content-Type: application/json""
""https://api.usergrid.com/fdsafdsa/sandbox/token?ttl=1800000"" -d
'{""grant_type"":""password"",""username"":""b"",""password"":""b""}'
returns this:
{""access_token"":""YWMtQiN_UEyeEeO6-W_A3bgITwAAAUJ3GZZ9ep8l2ukYxkegT_wF_8x7VMgnyfw"",""expires_in"":604800,""user"":{""uuid"":""89469434-4b14-11e3-ae68-ff6ddb9bb1aa"",""type"":""user"",""name"":""b"",""created"":1384203732578,""modified"":1384203732578,""username"":""b"",""email"":""[email protected]"",""activated"":true,""picture"":""http://www.gravatar.com/avatar/2076105f6efe7c11e285add95f514b9a""}}"
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)