OpenConext / Mujina

A mock IDP and SP using the OpenSAML library
Apache License 2.0
367 stars 166 forks source link

on IDP metadata, signature value is missing #82

Closed aleksamirkovic closed 2 years ago

aleksamirkovic commented 2 years ago

I have noticed that for idp project, when metadata is being built in controller, even though code for signing metadata is there - xml that is produced would be invalid, cause of signature value is missing. Part that is bellow is wrong as tags are immediately closed without appropriate value

<ds:DigestValue/>
        </ds:Reference>
    </ds:SignedInfo>
    <ds:SignatureValue/>
</ds:Signature>

<?xml version="1.0" encoding="UTF-8"?>

MIIDEzCCAfugAwIBAgIJAKoK/heBjcOYMA0GCSqGSIb3DQEBBQUAMCAxHjAcBgNVBAoMFU9yZ2Fu aXphdGlvbiwgQ049T0lEQzAeFw0xNTExMTExMDEyMTVaFw0yNTExMTAxMDEyMTVaMCAxHjAcBgNV BAoMFU9yZ2FuaXphdGlvbiwgQ049T0lEQzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB ANBGwJ/qpTQNiSgUglSE2UzEkUow+wS8r67etxoEhlzJZfgK/k5TfG1wICDqapHAxEVgUM10aBHR ctNocA5wmlHtxdidhzRZroqHwpKy2BmsKX5Z2oK25RLpsyusB1KroemgA/CjUnI6rIL1xxFn3KyO Fh1ZBLUQtKNQeMS7HFGgSDAp+sXuTFujz12LFDugX0T0KB5a1+0l8y0PEa0yGa1oi6seONx849ZH xM0PRvUunWkuTM+foZ0jZpFapXe02yWMqhc/2iYMieE/3GvOguJchJt6R+cut8VBb6ubKUIGK7pm oq/TB6DVXpvsHqsDJXechxcicu4pdKVDHSec850CAwEAAaNQME4wHQYDVR0OBBYEFK7RqjoodSYV XGTVEdLf3kJflP/sMB8GA1UdIwQYMBaAFK7RqjoodSYVXGTVEdLf3kJflP/sMAwGA1UdEwQFMAMB Af8wDQYJKoZIhvcNAQEFBQADggEBADNZkxlFXh4F45muCbnQd+WmaXlGvb9tkUyAIxVL8AIu8J18 F420vpnGpoUAE+Hy3evBmp2nkrFAgmr055fAjpHeZFgDZBAPCwYd3TNMDeSyMta3Ka+oS7GRFDeP kMEm+kH4/rITNKUF1sOvWBTSowk9TudEDyFqgGntcdu/l/zRxvx33y3LMG5USD0x4X4IKjRrRN1B bcKgi8dq10C3jdqNancTuPoqT3WWzRvVtB/q34B7F74/6JzgEoOCEHufBMp4ZFu54P0yEGtWfTwT zuoZobrChVVBt4w/XZagrRtUCDNwRpHNbpjxYudbqLqpi1MQpV9oht/BpTHVJG2i0ro= urn:oasis:names:tc:SAML:2.0:nameid-format:persistent This is working fine on the SP one (Signature value is present), but that one is coming from the filter generated metadata. Does anyone know how to overcome this or reason why is this happening ? Thanks in advance
oharsta commented 2 years ago

Fixed in https://github.com/OpenConext/Mujina/commit/c885aed5ceb79ac5a093981e32a948eb6d6931aa

oharsta commented 2 years ago

We will be migrating Mujina to Java 11 in the upcoming weeks and after the migration a new release will be made. If you are working on a fork then you can fetch upstream.