feature/PEM URL Decode Magic at Identity Provider

This commit is contained in:
Marko Milić 2021-06-03 22:18:52 +02:00
parent 870cae8f8d
commit 104a8b83cc

View File

@ -336,7 +336,7 @@ public class ConsentController {
String x5tS256 = null;
if(metadata != null && metadata.get("client_certificate") != null) {
logger.debug("client_certificate: " + metadata.get("client_certificate"));
String decodedPem = URLDecoder.decode(metadata.get("client_certificate"),"UTF-8")
String decodedPem = URLDecoder.decode(metadata.get("client_certificate"),"UTF-8");
x5tS256 = X509CertUtils.computeSHA256Thumbprint(X509CertUtils.parse(decodedPem)).toString();
}