简体   繁体   English

如何使用PHP从IDP发起的SSO处理SAML?

[英]How to process SAML from idp initiated SSO using PHP?

I'm a service provider. 我是服务提供商。 The SSO process is being initiated at the idp, when someone clicks on a link, and the idp is posting SAML to my specified url endpoint. 当有人单击链接,并且idp将SAML发布到我指定的url端点时,将在idp上启动SSO流程。 They've only provided me a metadata.xml file. 他们只为我提供了一个metadata.xml文件。 Not sure this is all I need. 不确定这就是我所需要的。

Using PHP, how do I process that SAML data, and how do I use the metadata.xml? 使用PHP,如何处理SAML数据,以及如何使用metadata.xml? do I need to install simplesamlphp or is there something simpler? 我需要安装simplesamlphp还是更简单的东西?

You can use simpleSAMLphp or just the "core" of that software that is able to handle SAML messages: https://github.com/simplesamlphp/saml2 您可以使用simpleSAMLphp或仅使用能够处理SAML消息的软件的“核心”: https : //github.com/simplesamlphp/saml2

If you are looking for an easy approach, I recommend to take a look at another PHP SAML toolkit, php-saml: https://github.com/onelogin/php-saml 如果您正在寻找一种简单的方法,我建议您看一下另一个PHP SAML工具包php-saml: https : //github.com/onelogin/php-saml

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

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