[
https://issues.apache.org/jira/browse/KNOX-3129?focusedWorklogId=965841&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-965841
]
ASF GitHub Bot logged work on KNOX-3129:
----------------------------------------
Author: ASF GitHub Bot
Created on: 12/Apr/25 20:38
Start Date: 12/Apr/25 20:38
Worklog Time Spent: 10m
Work Description: 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"}
```
Issue Time Tracking
-------------------
Worklog Id: (was: 965841)
Remaining Estimate: 0h
Time Spent: 10m
> Add Expiration to CLIENTID and APIKEY API Responses
> ---------------------------------------------------
>
> Key: KNOX-3129
> URL: https://issues.apache.org/jira/browse/KNOX-3129
> Project: Apache Knox
> Issue Type: Improvement
> Components: Server
> Reporter: Larry McCay
> Assignee: Larry McCay
> Priority: Major
> Fix For: 2.2.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)