[
https://issues.apache.org/jira/browse/USERGRID-750?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
George Reyes resolved USERGRID-750.
-----------------------------------
Resolution: Not A Problem
Fix Version/s: 2.1.1
This works in 2.1.1 so it won't be a problem going forward.
> When setting accesstokenttl to 0, client credentials auth still returns 604800
> ------------------------------------------------------------------------------
>
> Key: USERGRID-750
> URL: https://issues.apache.org/jira/browse/USERGRID-750
> Project: Usergrid
> Issue Type: Bug
> Components: Stack
> Reporter: Brandon Shelley
> Assignee: George Reyes
> Priority: Minor
> Fix For: 2.1.1
>
>
> If I send a PUT request to set the accesstokenttl to 0 for an app:
> {code}
> {
> "accesstokenttl": 0
> }
> {code}
> And then make a subsequent client_credentials token request, the token ttl in
> the response is still 604800:
> {code}
> {
> "client_id": "***",
> "client_secret": "***",
> "grant_type": "client_credentials",
> "ttl": 0
> }
> {code}
> Response:
> {code}
> {
> "access_token": "***",
> "expires_in": 604800,
> "application": "***"
> }
> {code}
> [~tnine] suggests this may be a response rendering problem and that it is
> actually setting the expiration correctly in the stack.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)