[spring-xsuaa] Resolve issues with Nimbus-JOSE-JWT version 9.0 com.nimbusds.jose.Header.toJSONObject usage
See original GitHub issueWith Nimbus-Jose-JWT version 9.0 method com.nimbusds.jose.Header.toJSONObject()
signature changes - method returns Map<String, Object> instead of net.minidev.json.JSONObject as per changelog.
As of Spring Security OAuth2 JOSE version 5.4.0 Nimbus-Jose-JWT 9.0 is used.
Find usages in spring xsuaa modules and resolve potential java.lang.NoSuchMethodError
errors.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:9 (5 by maintainers)
Top Results From Across the Web
connect2id / Nimbus-JOSE-JWT / issues / #366 - Caused by ...
When I tried with version 7.8.1, it accepts “at+jwt”. But version 8.9 is not accepting “at+jwt”. I am using nimbus with spring security ......
Read more >Header (Nimbus JOSE + JWT v9.13) - javadoc.io
Returns a Base64URL representation of the header. Map<String,Object>, toJSONObject(). Returns a JSON object representation of the header.
Read more >JOSE object / JSON Web Token (JWT) parsing - Connect2id
import com.nimbusds.jose.*; String string = "eyJhbGciOiJIUzI1NiJ9..."; PlainObject plainObject; try { plainObject = PlainObject.parse(string); } catch ...
Read more >com.nimbusds.jose.Header Maven / Gradle / Ivy
nimbus-jose-jwt * * Copyright 2012-2016, Connect2id Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use *...
Read more >com.nimbusds:nimbus-jose-jwt - Snyk Vulnerability Database
version published direct vulnerabilities
9.25.6 13 Oct, 2022 0. C. 0. H. 0. M. 0. L
9.25.5 11 Oct, 2022 0. C. 0. H. 0....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @Sachpat,
if you specify explicitly the jose-jwt library like here and no other methods you use require the newer version of jose-jwt it should be possible.
Best Regards, Liga
Hi @liga-oz @nenaraab this is one of the questions from our secBOM users @patrickhuy , Do you know whether it’s possible to use spring boot 2.4.x and downgrade spring security and jose-jwt and then use the xsuaa lib?