简体   繁体   English

使用simpleSAMLphp作为SP和OpenAM作为IdP的SAML

[英]SAML with simpleSAMLphp as SP and OpenAM as IdP

So I'm doing this just to test that my SAML configuration on OpenAM works fine. 因此,我这样做只是为了测试我在OpenAM上的SAML配置是否正常。 I've installed simpleSAMLphp, followed the installation instructions (although I skipped the '''certs''' part). 我已经安装了simpleSAMLphp,并按照安装说明进行了操作(尽管我跳过了“ certs”部分)。 And then I found this tutorial that is great OpenAM simpleSAMLphp tutorial] 1 然后我发现本教程是很棒的OpenAM simpleSAMLphp教程] 1

Now everything seems to work fine, when I choose to log-in using OpenAM, it redirects me to OpenAM's login page, I type in my username and password, and then I get redirected to SimpleSAMLphp with the following exception : 现在一切似乎都正常,当我选择使用OpenAM登录时,它将我重定向到OpenAM的登录页面,输入我的用户名和密码,然后将我重定向到SimpleSAMLphp,但有以下例外:

SimpleSAML_Error_Error: UNHANDLEDEXCEPTION
Backtrace:
0 /var/www/html/services/simplesamlphp/www/module.php:180 (N/A)
Caused by: Exception: Reference validation failed
Backtrace:
8 /var/www/html/services/simplesamlphp/vendor/robrichards/xmlseclibs/xmlseclibs.php:1056 (XMLSecurityDSig::validateReference)
7 /var/www/html/services/simplesamlphp/vendor/simplesamlphp/saml2/src/SAML2/Utils.php:54 (SAML2_Utils::validateElement)
6 /var/www/html/services/simplesamlphp/vendor/simplesamlphp/saml2/src/SAML2/Assertion.php:517 (SAML2_Assertion::parseSignature)
5 /var/www/html/services/simplesamlphp/vendor/simplesamlphp/saml2/src/SAML2/Assertion.php:247 (SAML2_Assertion::__construct)
4 /var/www/html/services/simplesamlphp/vendor/simplesamlphp/saml2/src/SAML2/Response.php:37 (SAML2_Response::__construct)
3 /var/www/html/services/simplesamlphp/vendor/simplesamlphp/saml2/src/SAML2/Message.php:509 (SAML2_Message::fromXML)
2 /var/www/html/services/simplesamlphp/vendor/simplesamlphp/saml2/src/SAML2/HTTPPost.php:76 (SAML2_HTTPPost::receive)
1 /var/www/html/services/simplesamlphp/modules/saml/www/sp/saml2-acs.php:16 (require)
0 /var/www/html/services/simplesamlphp/www/module.php:135 (N/A)

I've checked things up before I post my message here, OpenAM's SAML Response seems fine, it gets stuck in Assertion.php file. 在将消息发布到此处之前,我已经进行了检查,OpenAM的SAML响应似乎很好,它卡在了Assertion.php文件中。

I've really tried everything and it just got to the point where it's giving me hard headaches, I don't want to go through SimpleSAMLphp's code. 我真的已经尝试了一切,但到了让我头痛不已的地步,我不想遍历SimpleSAMLphp的代码。

Any help would be much appreciated :-) 任何帮助将非常感激 :-)

seems to me that the attributes which are passed from OpenAM are in not uri format. 在我看来,从OpenAM传递的属性不是uri格式。 can you capture the SAML request from SP and Response from IDP and post it. 您可以从SP捕获SAML请求并从IDP捕获响应并将其发布。 That will help to see what is been requested and whats been provided. 这将有助于查看请求的内容和提供的内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM