简体   繁体   English

Laravel 5 与 SAML 2 与现有 IDP 集成

[英]Laravel 5 integrate with SAML 2 with existing IDP

I'm on Laravel 5, I'm trying to integrate SAML 2.0 with it.我在 Laravel 5 上,我正在尝试将 SAML 2.0 与其集成。 I've found this package = https://github.com/aacotroneo/laravel-saml2我找到了这个包 = https://github.com/aacotroneo/laravel-saml2

I tried follow their steps.我试着按照他们的步骤。 Under their Configuration Section , they said:在他们的配置部分,他们说:

you need to configure your sp and IDP (remote server).您需要配置您的 sp 和 IDP(远程服务器)。

But in my case is a litte different, I work with other ITs that handle the existing iDP.但就我而言,情况略有不同,我与处理现有 iDP 的其他 IT 部门合作。 They provided me their metadata end-point.他们向我提供了他们的元数据端点。

In that case, do I still need to configure my own iDP/SP?在这种情况下,我还需要配置自己的 iDP/SP 吗?

If so, how can I do that in Laravel?如果是这样,我怎么能在 Laravel 中做到这一点?

The package you mentioned, as its documentation says:您提到的包,如其文档所述:

A Laravel package for Saml2 integration as a SP (service provider) based on OneLogin toolkit基于 OneLogin 工具包的用于将 Saml2 集成为 SP(服务提供者)的 Laravel 包

So you use it to turn your lavarel app in a SP and connect it with an IdP.因此,您可以使用它来将您的 lavarel 应用程序转换为 SP 并将其与 IdP 连接。 That why you need in the settings IdP and SP data.这就是为什么您需要在设置 IdP 和 SP 数据中的原因。

Here you can find the file with the settings of the lavarel package. 在这里您可以找到包含 lavarel 包设置的文件。

At the end, those settings fill the Onelogin's PHP settings, documented here最后,这些设置填充了 Onelogin 的 PHP 设置,记录在此处

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

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