Skip to content

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

@Incarnation-p-lee

Description

@Incarnation-p-lee

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions