小编sam*_*amo的帖子

使用SimpleSAML作为SP和IDP用于开发环境

我正在尝试使用我的网络应用程序中的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)

建立 :

  • 我的应用程序在本地与主机:trunk.sam.net一起运行
  • Simplesaml,SP,作为库包含在应用程序中,可从以下位置访问:trunk.sam.net/simplesaml
  • Simplesaml,IdP,在本地安装,运行于:auth.sam.net

这两个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)

php saml saml-2.0

6
推荐指数
1
解决办法
8366
查看次数

标签 统计

php ×1

saml ×1

saml-2.0 ×1