Caused by: SimpleSAML_Error_Exception: 已启用对收到消息的验证,但未在消息上找到签名

Caused by: SimpleSAML_Error_Exception: Validation of received messages enabled, but no signature found on message

尝试在 shibboleth 中设置 SP,当针对 testIdP 进行测试时,出现此错误。

答案是将值为 "true" 的属性 "signing" 添加到 Shibboleth2.xml:

<ApplicationDefaults 
entityID="example.org" 
REMOTE_USER="eppn persistent-id targeted-id"
signing="true">