You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Active Directory starter 6.1.0 ClassNotFoundException: com.nimbusds.oauth2.sdk.util.StringUtils #47600
Describe the bug
Between Spring Cloud Azure Dependencies 6.0.0 -> 6.1.0 we stumbled upon a ClassNotFoundException: com.nimbusds.oauth2.sdk.util.StringUtils
The com.nimbusds.oauth2.sdk.util.StringUtils was in this artifact: oauth2-oidc-sdk
When use 6.0.0, the dependency is added by azure-identity -> masl4j -> oauth2-oidc-sdk. The path from spring-security-oauth2-client won't take effect because it's optional and your project didn't have this dependency.
When use 6.1.0, the dependency path from azure-identity is missting.
2. Workaround
You can do like this as workaround: Adding this dependency in your project:
Activity
github-actions commentedon Dec 24, 2025
Moary Chen (@moarychan) Muyao Feng (@Netyyyy) Rujun Chen (@rujche) Xiaolu Dai (@saragluna)
github-actions commentedon Dec 24, 2025
Thank you for your feedback. Tagging and routing to the team member best able to assist.
rujche commentedon Dec 25, 2025
Hi, dnijssen. Thank for reaching out.
1. Root cause analysis.
The
com.nimbusds.oauth2.sdk.util.StringUtilswas in this artifact:oauth2-oidc-sdkWhen use 6.0.0, the dependency is added by
azure-identity->masl4j->oauth2-oidc-sdk. The path fromspring-security-oauth2-clientwon't take effect because it's optional and your project didn't have this dependency.When use 6.1.0, the dependency path from
azure-identityis missting.2. Workaround
You can do like this as workaround: Adding this dependency in your project:
implementation("com.nimbusds:oauth2-oidc-sdk:9.43.6")3. Fix in Spring Cloud Azure side
Use
StringUtilsfromspring-coreinstead. In a spring-boot project, it will always containsspring-coredependency.PR is coming soon. The diff will be like this:
@copilot, create the PR according to above diff.
Fix issue number in CHANGELOG.md
dnijssen commentedon Jan 6, 2026
Rujun Chen (@rujche) Will the fix be included in 7.0.0 as well? Because it is currently missing in 7.0.0-beta.1
rujche commentedon Jan 7, 2026
dnijssen Yes, it will be fixed in 7.0.0.