Skip to content

KNOX-3408 - Allow no actor token in JWTFederationFilter.handleTokenExchange - #1339

Merged
pzampino merged 2 commits into
apache:knox_idffrom
hsheinblatt:KNOX-3408
Aug 6, 2026
Merged

KNOX-3408 - Allow no actor token in JWTFederationFilter.handleTokenExchange#1339
pzampino merged 2 commits into
apache:knox_idffrom
hsheinblatt:KNOX-3408

Conversation

@hsheinblatt

Copy link
Copy Markdown

KNOX-3408 - Allow no actor token in JWTFederationFilter.handleTokenExchange

What changes were proposed in this pull request?

RFC 8693 requires that the actor token be optional for token exchange.
Change the handleTokenExchange method to allow a missing actor token.
When actor_token is absent, the Subject has the subject from the subject token
as PrimaryPrincipal with no TokenExchangePrincipal. Note that headless
delegation using ImpersonatedPrincipal is currently not represented in this path.

How was this patch tested?

A unit test for the new path is added. Regression tests for subject handling in
JWTFederationFilter.handleTokenExchange and TokenExchangePrincipal handling in AbstractIdentityAssertionFilter.continueChainAsPrincipal handling were also
added and run before the feature change to show no regression.

Integration Tests

N/A

Harrison added 2 commits August 5, 2026 22:41
…ter.handleTokenExchange and

TokenExchangePrincipal handling in AbstractIdentityAssertionFilter#continueChainAsPrincipal handling

Only unit tests are added for existing functionality.

@pzampino pzampino left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@pzampino
pzampino merged commit e9c2ab0 into apache:knox_idf Aug 6, 2026
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