Skip to content

Managed versions of oauth2-oidc-sdk and nimbus-jose-jwt are incompatible #25070

Closed
@blommish

Description

@blommish

Spring: 2.4.2
Caused by: java.lang.ClassCastException: com.nimbusds.jose.shaded.json.JSONObject cannot be cast to net.minidev.json.JSONObject

<oauth2-oidc-sdk.version>8.23.1</oauth2-oidc-sdk.version>
<nimbus-jose-jwt.version>9.1.3</nimbus-jose-jwt.version>

nimbus-jose-jwt:

public Map<String, Object> toJSONObject() {
	return toJSONObject(false);
}

oauth2-oidc-sdk:

public IDTokenClaimsSet(final JWTClaimsSet jwtClaimsSet) throws ParseException {
	this(jwtClaimsSet.toJSONObject());
}

There is no constructor for IDTokenClaimsSet with Map<String, Object>

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: noteworthyA noteworthy issue to call out in the release notestype: bugA general bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions