-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Managed versions of oauth2-oidc-sdk and nimbus-jose-jwt are incompatible #25070
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks, @blommish. We're using 9.x of Our dependency management of @blommish you haven't said how you're using the dependencies. To help us fully understand your use case, could you please provide a small sample that reproduces the |
Thanks for looking into this. I see.
https://github.com/navikt/token-support/blob/master/token-validation-core/src/main/java/no/nav/security/token/support/core/validation/DefaultJwtTokenValidator.java#L46
|
I can't help you with that as I don't have the whole picture here. Are you using Spring Security in your application? If not, you should be able to use whichever versions of the OIDC SDK and Nimbus JOSE JWT meet your needs. |
I see. We are not, so I guess I just have to override it then. Thanks! |
Let's keep this open while we discuss things with the Spring Security team. Depending on what they decide to do about their incompatible dependencies, we may need to make some changes in Boot. |
Spring Security has downgraded to Nimbus JOSE JWT 8.x in 5.4.3. We should do the same to restore compatibility. 5.4.3 is scheduled for 12 February so we should make this change in 2.4.3 which is scheduled for 18 February. |
Very nice, thanks! |
The downgrade in Spring Security didn't work and it's now compiling against 9.5. I've opened spring-projects/spring-security#9453. We'll have to wait for another Security release. |
Spring: 2.4.2
Caused by: java.lang.ClassCastException: com.nimbusds.jose.shaded.json.JSONObject cannot be cast to net.minidev.json.JSONObject
nimbus-jose-jwt:
oauth2-oidc-sdk:
There is no constructor for IDTokenClaimsSet with Map<String, Object>
The text was updated successfully, but these errors were encountered: