SimpleSamlphp错误:状态信息丢失,无法重新启动请求


SimpleSamlphp Error: State information lost, and no way to restart the request

我在使用SimpleSamlphp实现SSO时遇到了麻烦。

我已经按如下方式配置了所有内容:

authsources.php

'default-sp' => array(
    'saml:SP',
    'entityID' => '{{URLSP}}',
    'idp' => '{{URLIDP}}',
    'discoURL' => NULL,
    'privatekey' => 'saml.pem',
    'certificate' => 'saml.crt',
),

authsources.php (Idp)

'example-userpass' => array(
    'exampleauth:Static',
    'ecid' => '152',
    'orgdir' => '{{}}',
    'message' => '{{}}',
),

我在saml20-idp-remote/saml20-sp-remote

中正确设置了元数据

得到的错误是:

State information lost, and no way to restart the request.
0: xxxlib/SimpleSAML/Auth/State.php:154 (SimpleSAML_Auth_State::loadState)
1: xxx/modules/saml/www/sp/saml2-acs.php:31 (require)
2: xxx/www/module.php:137 (N/A)

我已经检查了SAML响应,我已经看到签名值不同,可能是问题吗?

排序后,我必须指定RelayState