Update com.nimbusds dependencies to latest.release
Issue gh-113
This commit is contained in:
parent
4091d69d0c
commit
ae20f73676
@ -24,8 +24,8 @@ dependencyManagement {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
dependency "com.nimbusds:oauth2-oidc-sdk:8.+"
|
||||
dependency "com.nimbusds:nimbus-jose-jwt:8.+"
|
||||
dependency "com.nimbusds:oauth2-oidc-sdk:latest.release"
|
||||
dependency "com.nimbusds:nimbus-jose-jwt:latest.release"
|
||||
dependency "com.fasterxml.jackson.core:jackson-databind:2.+"
|
||||
dependency "javax.servlet:javax.servlet-api:4.+"
|
||||
dependency 'junit:junit:latest.release'
|
||||
|
@ -28,7 +28,6 @@ import com.nimbusds.jose.util.Base64;
|
||||
import com.nimbusds.jose.util.Base64URL;
|
||||
import com.nimbusds.jwt.JWTClaimsSet;
|
||||
import com.nimbusds.jwt.SignedJWT;
|
||||
import net.minidev.json.JSONObject;
|
||||
import org.springframework.core.convert.converter.Converter;
|
||||
import org.springframework.security.crypto.keys.KeyManager;
|
||||
import org.springframework.security.crypto.keys.ManagedKey;
|
||||
@ -213,7 +212,7 @@ public final class NimbusJwsEncoder implements JwtEncoder {
|
||||
Map<String, Object> jwk = headers.getJwk();
|
||||
if (!CollectionUtils.isEmpty(jwk)) {
|
||||
try {
|
||||
builder.jwk(JWK.parse(new JSONObject(jwk)));
|
||||
builder.jwk(JWK.parse(jwk));
|
||||
} catch (Exception ex) {
|
||||
throw new JwtEncodingException(String.format(
|
||||
ENCODING_ERROR_MESSAGE_TEMPLATE,
|
||||
|
@ -95,7 +95,7 @@ public class JwkSetEndpointFilter extends OncePerRequestFilter {
|
||||
|
||||
response.setContentType(MediaType.APPLICATION_JSON_VALUE);
|
||||
try (Writer writer = response.getWriter()) {
|
||||
writer.write(jwkSet.toJSONObject().toString());
|
||||
writer.write(jwkSet.toString());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user