hanicz opened a new pull request, #1408:
URL: https://github.com/apache/knox/pull/1408

   …f absolute epoch-ms
   
   [KNOX-3471](https://issues.apache.org/jira/browse/KNOX-3471) - KnoxIDF 
expires_in should return relative second instead of absolute epoch-ms
   
   ## What changes were proposed in this pull request?
   
   - Overrides `buildResponseMap` in KnoxIDF's `TokenResource` to replace 
`expires_in` with the duration-based `getTokenLifetimeInSeconds()`. Native 
`KNOXTOKEN` is untouched.
   
   ## How was this patch tested?
   
   Unit tests, local tests
   
   `curl -vku admin:admin-password -X "POST" 
"https://localhost:8443/gateway/tokenissuer/knoxidf/api/v1/token"`
   
   ```
   {
     "access_token": "eyJqa3UiOiJodHRwczovL2xv...",
     "token_id": "7c89743d-3e1b-4673-a3a4-afba906b69e9",
     "issued_token_type": "urn:ietf:params:oauth:token-type:jwt",
     "managed": "true",
     "endpoint_public_cert": "MIIDZDCCAkygAwIBAgIIVb...",
     "token_type": "Bearer",
     "expires_in": 3600,
     "passcode": "TjJNNE9UYzBNMlF..."
   }
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to