[ 
https://issues.apache.org/jira/browse/USERGRID-25?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Strong Liu resolved USERGRID-25.
--------------------------------

    Resolution: Not a Problem
      Assignee: Strong Liu

this is not an issue, but the API probably is a little bit misleading

the api is POST /:org/:app/token {"grant_type":"password","username":"aaa", 
"password":"bob", "ttl":18000}

> 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
>            Assignee: Strong Liu
>             Fix For: 1.1
>
>
> "/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"":""b...@b.com"",""activated"":true,""picture"":""http://www.gravatar.com/avatar/2076105f6efe7c11e285add95f514b9a""}}";



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to