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


-- 
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