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