【发布时间】:2019-04-15 11:03:52
【问题描述】:
我使用 composer 安装了 SIMPLESAMLPHP 库
作曲家需要 simplesamlphp/simplesamlphp
对于配置,我需要在我的 SIMPLESAMLPHP 库根目录中添加 saml-autoconfig.php 文件。但我的供应商文件夹位于 .gitignore 文件中。
当我使用 saml-autoconfig.php 文件更新我的作曲家@production 整个配置时会丢失。
当我的作曲家更新时,我需要配置它。
如果有人有想法,请帮忙
我需要添加以下配置文件
1) 在 saml-autoconfig.php 中。
$metadata_url_for = array(
/* WARNING WARNING WARNING
* You MUST remove the testing IdP (idp.oktadev.com) from a production system,
* as the testing IdP will allow ANYBODY to log in as ANY USER!
* WARNING WARNING WARNING
* For testing with http://saml.oktadev.com use the line below:
*/
// 'test' => 'http://idp.oktadev.com/metadata',
);
2)供应商/simplesamlphp/config.php
'baseurlpath'=>''
3)供应商/simplesamlphpauthsources.php
'default-sp'=>'' //its default one .I want to add more sp.
我如何动态添加 saml-autoconfig.php 这个文件并设置我的配置。
【问题讨论】:
-
如何在我的控制器中包含/使用 simplesamlphp 库并创建对象表单库,如 $as = new SimpleSAML_Auth_Simple($sp);
标签: php zend-framework simplesamlphp