Skip to content

New composer script handler to deploy SimpleSAMLphp assets#532

Open
mingsong-hu wants to merge 1 commit intogovCMS:4.x-developfrom
mingsong-hu:feature/simplesamlphp-base-asset
Open

New composer script handler to deploy SimpleSAMLphp assets#532
mingsong-hu wants to merge 1 commit intogovCMS:4.x-developfrom
mingsong-hu:feature/simplesamlphp-base-asset

Conversation

@mingsong-hu
Copy link
Contributor

@mingsong-hu mingsong-hu commented Feb 28, 2026

Instead of enabling the composer-module-installer plugin, this PR adds a custom Composer script handler (installSimpleSamlAssets) that:

  1. Keeps "simplesamlphp/composer-module-installer": false — no other SSP modules can auto-install
  2. Copies only the web-asset directories (css, js, icons, webfonts) from simplesamlphp-assets-base module into the asset folder required by a HTTP-POST binding login form.
  3. Ignores non-asset files (.gitignore, .gitattributes, composer.json)
  4. Runs automatically on composer install and composer update via post-install-cmd / post-update-cmd
  5. Uses the existing ScriptHandler.php pattern and Symfony\Component\Filesystem already available in the project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant