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

   ## What changes were proposed in this pull request?
   
   While both the CLIENTID and APIKEY APIs default the knox.token.ttl to -1 to 
never expire, we do not prevent actual expirations. In the case that there is a 
configured expiration, return the expiration in the response as appropriate for 
the clients.
   
   ## How was this patch tested?
   
   Added new unit tests.
   Built and ran all existing and new tests.
   Manually tested:
   
   ```
   curl -ivku admin:admin-password -X POST 
"https://localhost:8443/gateway/sandbox/clientid/api/v1/oauth/credentials?comment=ljm&contact=test-contact&md_externalUserName=Larry%20McCay&md_email=email&md_companyName=companyName";
   .
   .
   .
   
   
{"client_secret":"WTJSaU16QmpOVGt0T....oak9ETXROREkyTUdRek5HVTROVGhpOjpPVFkzTkRBNVpHUXRZekF5T0MwME1tSTNMV0l3WldRdE5qUTVabU0xTm1JM09Ea3o=","expires_in":54,"client_id":"cdb30c59-1fe5-4...d34e858b"}
   ```
   


-- 
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: dev-unsubscr...@knox.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to