Simplesamlphp with composer overwrites configuration files when updating

I installed SimpleSAMLphp in my project using Composer, configured it and worked well.

Unfortunately, every time I do a composer update, the config.php, authsources.php and saml20-idp-remote.php files are deleted.

The documentation offers a way to provide an alternative location or config.php file, but not for the other two.

Can anyone suggest setting up SimpleSAMLphp with these files located outside the provider \ SimpleSAMLphp folder?

I am currently using a script to copy locally stored copies of these files back to the correct folder when starting after the update, but it seems to me that I'm a little cloned.

Thank.

+4
source share
1 answer

SIMPLESAMLPHP_CONFIG_DIRallows you to specify a directory configwith the env variable. SSP will look in this folder for config.phpand authsources.php. You can determine where metadata files with a variable are stored insideconfig.php

'metadata.sources' => array(
     array('type' => 'flatfile', 'directory' =>  '/your/path/metadata'),
),

The above example will indicate what SSP will search /your/path/metadatafor saml20-idp-remote.php(and other metadata files)

There may be other problems with using SSP installed this way - in particular, if you need to install additional modules, SSP expects them to be in (or symbolically attached to) its module directory.

+5
source

All Articles