我正在尝试使用我的网络应用程序中的SAML进行身份验证.
我跟着的IdP快速启动和SP快速入门用户指南,来到了woth低于失败的配置:
Backtrace:
1 /app_path/application/lib/simplesamlphp/www/_include.php:37 (SimpleSAML_exception_handler)
0 [builtin] (N/A)
Caused by: Exception: Unable to find the current binding.
Backtrace:
2 /app_path/application/lib/simplesamlphp/lib/SAML2/Binding.php:81 (SAML2_Binding::getCurrentBinding)
1 /app_path/application/lib/simplesamlphp/modules/saml/lib/IdP/SAML2.php:266 (sspmod_saml_IdP_SAML2::receiveAuthnRequest)
0 /app_path/application/lib/simplesamlphp/www/saml2/idp/SSOService.php:19 (N/A)
Run Code Online (Sandbox Code Playgroud)
建立 :
这两个simplesaml实际上都使用相同的代码和配置文件(它们共享相同的文档根目录)
配置:
config.php文件
'enable.saml20-idp' => true,
'enable.shib13-idp' => true,
Run Code Online (Sandbox Code Playgroud)
authsources.php
'default-sp-trunk.sam.net' => array(
'saml:SP',
'entityID' => 'http://trunk.sam.net',
'idp' => 'http://auth.sam.net/simplesaml/saml2/idp/metadata.php',
'ssoPortalUrl'=> 'http://auth.sam.net/simplesaml/saml2/idp/SSOService.php',
'bkmapping' => array(
'login' => 'uid',
'eMail' => 'mail'
)
),
'example-userpass' => array(
'exampleauth:UserPass',
'shf:pwd' => array(
'uid' => array('shf'), …Run Code Online (Sandbox Code Playgroud)