我正在将 simplesamlphp 与 adfs 集成。一切工作正常,但从 ADFS 进行身份验证后,在重定向到我的网站时,我收到此错误。
Jul 15 21:42:04 QA-saml simplesamlphp[18035]: 4 [c29af14b35] Unable to find the SAML 2 binding used for this request.array (#012)
Jul 15 21:42:04 QA-saml simplesamlphp[18035]: 4 [c29af14b35] Request method: 'GET'array (#012)
Jul 15 21:42:04 QA-saml simplesamlphp[18035]: 4 [c29af14b35] Content-Type: ''array (#012)
Jul 15 21:42:04 QA-saml simplesamlphp[18035]: 3 [c29af14b35] SimpleSAML_Error_Error: ACSPARAMS
Jul 15 21:42:04 QA-saml simplesamlphp[18035]: 3 [c29af14b35] Backtrace:
Jul 15 21:42:04 QA-saml simplesamlphp[18035]: 3 [c29af14b35] 1 /data/simplesamlphp/simplesamlphp/modules/saml/www/sp/saml2-acs.php:21 (require)
Jul 15 21:42:04 QA-saml simplesamlphp[18035]: 3 [c29af14b35] 0 /data/simplesamlphp/simplesamlphp/www/module.php:150 (N/A)
Jul 15 21:42:04 QA-saml simplesamlphp[18035]: 3 [c29af14b35] Caused by: Exception: Unable to find the current binding.
Jul 15 21:42:04 QA-saml simplesamlphp[18035]: 3 [c29af14b35] Backtrace:
Jul 15 21:42:04 QA-saml simplesamlphp[18035]: 3 [c29af14b35] 2 /data/simplesamlphp/simplesamlphp/vendor/simplesamlphp/saml2/src/SAML2/Binding.php:97 (SAML2_Binding::getCurrentBinding)
Jul 15 21:42:04 QA-saml simplesamlphp[18035]: 3 [c29af14b35] 1 /data/simplesamlphp/simplesamlphp/modules/saml/www/sp/saml2-acs.php:16 (require)
Jul 15 21:42:04 QA-saml simplesamlphp[18035]: 3 [c29af14b35] 0 /data/simplesamlphp/simplesamlphp/www/module.php:150 (N/A)
Jul 15 21:42:04 QA-saml simplesamlphp[18035]: 3 [c29af14b35] Error report with id 952d6328 generated.
Jul 15 21:42:28 QA-saml simplesamlphp[18036]: 3 [31b86628bc] SimpleSAML_Error_Exception: Error 4096 - Argument 2 passed to sspmod_saml_SP_LogoutStore::addSession() must be of the type array, null given, called in /data/simplesamlphp/simplesamlphp/modules/saml/www/sp/saml2-acs.php on line 190 and defined
Jul 15 21:42:28 QA-saml simplesamlphp[18036]: 3 [31b86628bc] Backtrace:
Jul 15 21:42:28 QA-saml simplesamlphp[18036]: 3 [31b86628bc] 3 /data/simplesamlphp/simplesamlphp/www/_include.php:75 (SimpleSAML_error_handler)
Jul 15 21:42:28 QA-saml simplesamlphp[18036]: 3 [31b86628bc] 2 /data/simplesamlphp/simplesamlphp/modules/saml/lib/SP/LogoutStore.php:159 (sspmod_saml_SP_LogoutStore::addSession)
最佳答案
我刚刚收到同样的错误。 这似乎是 simplesamlphp 库中的一个错误。
注释 /data/simplesamlphp/simplesamlphp/modules/saml/www/sp 中的
将解决问题。sspmod_saml_SP_LogoutStore::addSession($sourceId, $nameId, $sessionIndex, $logoutExpire);
行/saml2-acs.php
否则,最好更新库。 您可以在此处查看修复:https://github.com/simplesamlphp/simplesamlphp/commit/c0721a6230748a54666a97f3b14f98398901a03d
关于php - 无法找到用于此请求的 SAML 2 绑定(bind)。数组,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38412992/