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

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

                Author: ASF GitHub Bot
            Created on: 09/Apr/26 12:47
            Start Date: 09/Apr/26 12:47
    Worklog Time Spent: 10m 
      Work Description: hanicz opened a new pull request, #1195:
URL: https://github.com/apache/knox/pull/1195

   [KNOX-3295](https://issues.apache.org/jira/browse/KNOX-3295) - Set default 
type to JWT on issued tokens
   
   ## What changes were proposed in this pull request?
   
   Sets the default type in JWT headers to `JWT`
   
   ## How was this patch tested?
   Tested locally with the sandbox topology
   
   ```
   <service>
           <role>KNOXTOKEN</role>
           <param>
               <name>knox.token.ttl</name>
               <value>36000000</value>
           </param>
           <param>
               <name>knox.token.audiences</name>
               <value>tokenbased</value>
           </param>
           <param>
               <name>knox.token.target.url</name>
               <value>https://localhost:8443/gateway/tokenbased</value>
           </param>
           <param>
               <name>knox.token.exp.server-managed</name>
               <value>true</value>
           </param>
   </service>
   ```
   `curl -ivku admin:admin-password 
https://localhost:8443/gateway/sandbox/knoxtoken/api/v1/token`
   
   ```
   {
     "jku": "https://localhost:8443/gateway/sandbox/knoxtoken/api/v1/jwks.json";,
     "kid": "_AGCGyQJ0pIceEVPCmVMkTTC4DddcGG_5XQAhgImjyw",
     "typ": "JWT",
     "alg": "RS256"
   }
   ```
   
   
   ## Integration Tests
   N/A
   
   ## UI changes
   N/A




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

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

> Set default type to JWT on issued tokens
> ----------------------------------------
>
>                 Key: KNOX-3295
>                 URL: https://issues.apache.org/jira/browse/KNOX-3295
>             Project: Apache Knox
>          Issue Type: Task
>          Components: Server
>    Affects Versions: 2.1.0
>            Reporter: Tamás Hanicz
>            Assignee: Tamás Hanicz
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> If knox.token.type is not set for the KNOXTOKEN service there is no type in 
> the issued JWT header. This change will make it default to 'JWT'



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

Reply via email to