Skip to content

KNOX-3295: Set default type to JWT in issued knox token headers#1195

Merged
hanicz merged 2 commits intoapache:masterfrom
hanicz:KNOX-3295
Apr 9, 2026
Merged

KNOX-3295: Set default type to JWT in issued knox token headers#1195
hanicz merged 2 commits intoapache:masterfrom
hanicz:KNOX-3295

Conversation

@hanicz
Copy link
Copy Markdown
Contributor

@hanicz hanicz commented Apr 9, 2026

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

Copy link
Copy Markdown
Contributor

@smolnar82 smolnar82 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor changes requested.

Copy link
Copy Markdown
Contributor

@smolnar82 smolnar82 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 9, 2026

Test Results

7 tests   7 ✅  1s ⏱️
1 suites  0 💤
1 files    0 ❌

Results for commit 8f8be64.

@hanicz hanicz merged commit fa75d21 into apache:master Apr 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants