Skip to content

KNOX-3258: Fix OIDC client login#1224

Open
bonampak wants to merge 3 commits intoapache:v2.1.xfrom
bonampak:KNOX-3258
Open

KNOX-3258: Fix OIDC client login#1224
bonampak wants to merge 3 commits intoapache:v2.1.xfrom
bonampak:KNOX-3258

Conversation

@bonampak
Copy link
Copy Markdown
Contributor

@bonampak bonampak commented May 7, 2026

KNOX-3258 - Fix OIDC client login

What changes were proposed in this pull request?

Updating oauth2-oidc-sdk to 9.13 to fix nimbus-jose-jwt:10.0.2 and pac4j-oidc:4.5.6 incompatibility
Adding integration test with testcontainers keycloak.

How was this patch tested?

Manual test and integration test.

Integration Tests

See Pac4jProviderOidcClientTest.
Before the library upgrade, the test fails with expected exception: java.lang.NoSuchMethodError: com.nimbusds.jwt.JWTClaimsSet.toJSONObject()Lnet/minidev/json/JSONObject
After the library upgrade, the test succeeds.

@bonampak bonampak self-assigned this May 7, 2026
@bonampak bonampak requested review from moresandeep and smolnar82 May 7, 2026 16:51
@bonampak bonampak marked this pull request as ready for review May 7, 2026 16:53
Copy link
Copy Markdown
Contributor

@pzampino pzampino left a comment

Choose a reason for hiding this comment

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

LGTM

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.

The changes looks good to me, thank you for your contribution.
Since this is for 2.1.x, I assume you plan to do some sort of testing in 3.0.0 too?
If so, please update the Docker-based tests with a Pac4j suite, where the integration tests you added here are much easier to maintain with our docker compose approach.

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.

3 participants