question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Spring security 5.1.x override dependency com.nimbusds:oauth2-oidc-sdk version.

See original GitHub issue

When web application leverage spring boot 2.1.x (5.1.x spring security) with azure active directory boot starter, the spring security 5.1.x may override dependency com.nimbusds:oauth2-oidc-sdk from 5.64.4 to 6.0. This 6.0 new version changed the interface API.

azure active directory boot starter depends on AAD java libray, it leverage version 5.64.4. So below override with API change may result in CastException when auth. Details see this issue.

So there is one workaround for this issue like specific 5.64.4 explicitly for com.nimbusds:oauth2-oidc-sdk when users depends on spring boot 2.1.x. But it is difficult to make sure that is there any other risk with this workaround.

Is there any other better solution for this problem, or is there any way to measure the impact with the workaround ? Thanks in advance. Your professional advice is very important to us.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
Incarnation-p-leecommented, Dec 18, 2018

Thanks @jgrandja and @jzheaux for you professional advice. We may co-work with AAD java library for this conflict first, or override the version on depends. Thanks again for your help.

0reactions
Incarnation-p-leecommented, Dec 20, 2018

@jzheaux Agree. I mean session work well, just personal interest about the session stateless part. I can search that first. Thanks a lot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

3. Getting Spring Security
Since Spring Boot provides a Maven BOM to manage dependency versions, there is no need to specify a version. If you wish to...
Read more >
Overriding Spring Boot Managed Dependency Versions
Learn how to override Spring Boot managed dependencies and their versions with both Maven and Gradle.
Read more >
How to totally overwrite the version of spring boot starter?
Then, I ran the mvn dependency:tree command and found that the version of spring-boot-starter-security in the sub-module was indeed 2.4.4, ...
Read more >
Spring Dependencies in Gradle Can Be Tricky - nexocode
Troublesome Spring Dependency Management Plugin ... Now let's imagine a yet another critical security vulnerability is discovered in Jackson ...
Read more >
10 Excellent Ways to Secure Your Spring Boot Application
Its autoconfiguration and starter dependencies reduce the amount of code and configuration you need to begin an app. If you were used to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found