[ 
https://issues.apache.org/jira/browse/KNOX-3471?focusedWorklogId=1042317&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1042317
 ]

ASF GitHub Bot logged work on KNOX-3471:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 17/Sep/26 10:39
            Start Date: 17/Sep/26 10:39
    Worklog Time Spent: 10m 
      Work Description: 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..."
   }
   ```
   




Issue Time Tracking
-------------------

            Worklog Id:     (was: 1042317)
    Remaining Estimate: 0h
            Time Spent: 10m

> KnoxIDF expires_in should return relative second instead of absolute epoch-ms 
> ------------------------------------------------------------------------------
>
>                 Key: KNOX-3471
>                 URL: https://issues.apache.org/jira/browse/KNOX-3471
>             Project: Apache Knox
>          Issue Type: Bug
>          Components: Server
>    Affects Versions: 3.1.0
>            Reporter: Tamás Hanicz
>            Assignee: Tamás Hanicz
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to