Closed mikolasz closed 3 years ago
Thanks for the report, @mikolasz.
It seems like something else might be going on since that Nimbus method has been there since 9.0.
I'm not able to reproduce the issue with Spring Boot 2.4.0. Are you able to create a minimal sample of your application that does?
Hi Josh,
The problem is the same like https://github.com/SAP/cloud-security-xsuaa-integration/issues/413 Now we solved the issue with the proper version using.
I'm closing this incident.
Best regards, Laszlo
Describe the bug When we trying to run our application the metadata load failed with 401 Unauthorized. In the log what we see is:
"level":"ERROR","categories":[],"msg":"Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Filter execution threw an exception] with root cause","stacktrace":["java.lang.NoSuchMethodError: com.nimbusds.jose.Header.toJSONObject()Ljava/util/Map;","tat org.springframework.security.oauth2.jwt.NimbusJwtDecoder.createJwt(NimbusJwtDecoder.java:154)","tat org.springframework.security.oauth2.jwt.NimbusJwtDecoder.decode(NimbusJwtDecoder.java:136)",
In our project I upgrade to spring-boot-dependencies: 2.4.0
Now I got a newer nimbus: 9.1.2
I saw this incident: https://github.com/spring-projects/spring-security/issues/9120 where the
com.nimbusds:nimbus-jose-jwt
9.0.1 solved the issue. Should I also use that version?Best Regards, Laszlo