From a83270bd3af3aa9c60b17b9578a661aba8978763 Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Thu, 21 May 2026 20:39:43 +0200 Subject: [PATCH 01/39] Bump dependencies --- composer.lock | 620 ++++++++++++++++++++++++++------------------------ 1 file changed, 326 insertions(+), 294 deletions(-) diff --git a/composer.lock b/composer.lock index ff660fa516..50a869ea33 100644 --- a/composer.lock +++ b/composer.lock @@ -290,16 +290,16 @@ }, { "name": "guzzlehttp/psr7", - "version": "2.9.0", + "version": "2.10.1", "source": { "type": "git", "url": "https://github.com/guzzle/psr7.git", - "reference": "7d0ed42f28e42d61352a7a79de682e5e67fec884" + "reference": "73ab136360b5dfd858006eae9795e8fe43c80361" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/7d0ed42f28e42d61352a7a79de682e5e67fec884", - "reference": "7d0ed42f28e42d61352a7a79de682e5e67fec884", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/73ab136360b5dfd858006eae9795e8fe43c80361", + "reference": "73ab136360b5dfd858006eae9795e8fe43c80361", "shasum": "" }, "require": { @@ -314,9 +314,9 @@ }, "require-dev": { "bamarni/composer-bin-plugin": "^1.8.2", - "http-interop/http-factory-tests": "0.9.0", + "http-interop/http-factory-tests": "1.1.0", "jshttp/mime-db": "1.54.0.1", - "phpunit/phpunit": "^8.5.44 || ^9.6.25" + "phpunit/phpunit": "^8.5.52 || ^9.6.34" }, "suggest": { "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" @@ -387,7 +387,7 @@ ], "support": { "issues": "https://github.com/guzzle/psr7/issues", - "source": "https://github.com/guzzle/psr7/tree/2.9.0" + "source": "https://github.com/guzzle/psr7/tree/2.10.1" }, "funding": [ { @@ -403,7 +403,7 @@ "type": "tidelift" } ], - "time": "2026-03-10T16:41:02+00:00" + "time": "2026-05-20T09:27:36+00:00" }, { "name": "nikic/php-parser", @@ -543,16 +543,16 @@ }, { "name": "phpmailer/phpmailer", - "version": "v7.0.2", + "version": "v7.1.1", "source": { "type": "git", "url": "https://github.com/PHPMailer/PHPMailer.git", - "reference": "ebf1655bd5b99b3f97e1a3ec0a69e5f4cd7ea088" + "reference": "1bc1716a507a65e039d4ac9d9adebbbd0d346e15" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/ebf1655bd5b99b3f97e1a3ec0a69e5f4cd7ea088", - "reference": "ebf1655bd5b99b3f97e1a3ec0a69e5f4cd7ea088", + "url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/1bc1716a507a65e039d4ac9d9adebbbd0d346e15", + "reference": "1bc1716a507a65e039d4ac9d9adebbbd0d346e15", "shasum": "" }, "require": { @@ -613,7 +613,7 @@ "description": "PHPMailer is a full-featured email creation and transfer class for PHP", "support": { "issues": "https://github.com/PHPMailer/PHPMailer/issues", - "source": "https://github.com/PHPMailer/PHPMailer/tree/v7.0.2" + "source": "https://github.com/PHPMailer/PHPMailer/tree/v7.1.1" }, "funding": [ { @@ -621,7 +621,7 @@ "type": "github" } ], - "time": "2026-01-09T18:02:33+00:00" + "time": "2026-05-18T08:06:14+00:00" }, { "name": "psr/cache", @@ -1214,16 +1214,16 @@ }, { "name": "simplesamlphp/saml2", - "version": "v6.1.5", + "version": "v6.2.0", "source": { "type": "git", "url": "https://github.com/simplesamlphp/saml2.git", - "reference": "939564f276598b71e5162243dae9deaacbe5440e" + "reference": "8be7855cced8a43a474cfc8062e85b328c06f3ff" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/simplesamlphp/saml2/zipball/939564f276598b71e5162243dae9deaacbe5440e", - "reference": "939564f276598b71e5162243dae9deaacbe5440e", + "url": "https://api.github.com/repos/simplesamlphp/saml2/zipball/8be7855cced8a43a474cfc8062e85b328c06f3ff", + "reference": "8be7855cced8a43a474cfc8062e85b328c06f3ff", "shasum": "" }, "require": { @@ -1239,7 +1239,7 @@ "psr/http-message": "~2.0", "psr/log": "~3.0", "simplesamlphp/assert": "~2.0", - "simplesamlphp/xml-common": "~2.7", + "simplesamlphp/xml-common": "~2.8", "simplesamlphp/xml-security": "~2.3", "simplesamlphp/xml-soap": "~2.3" }, @@ -1284,9 +1284,9 @@ "description": "SAML2 PHP library from SimpleSAMLphp", "support": { "issues": "https://github.com/simplesamlphp/saml2/issues", - "source": "https://github.com/simplesamlphp/saml2/tree/v6.1.5" + "source": "https://github.com/simplesamlphp/saml2/tree/v6.2.0" }, - "time": "2026-04-10T11:04:51+00:00" + "time": "2026-04-23T23:20:37+00:00" }, { "name": "simplesamlphp/saml2-legacy", @@ -1384,16 +1384,16 @@ }, { "name": "simplesamlphp/xml-common", - "version": "v2.8.0", + "version": "v2.8.1", "source": { "type": "git", "url": "https://github.com/simplesamlphp/xml-common.git", - "reference": "d3207b41e0e042ccbdfd0d0620f631e94c39d4ba" + "reference": "0308b8454ad25fe31d6ed4283b1df782e049eef4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/simplesamlphp/xml-common/zipball/d3207b41e0e042ccbdfd0d0620f631e94c39d4ba", - "reference": "d3207b41e0e042ccbdfd0d0620f631e94c39d4ba", + "url": "https://api.github.com/repos/simplesamlphp/xml-common/zipball/0308b8454ad25fe31d6ed4283b1df782e049eef4", + "reference": "0308b8454ad25fe31d6ed4283b1df782e049eef4", "shasum": "" }, "require": { @@ -1411,7 +1411,7 @@ "simplesamlphp/composer-xmlprovider-installer": "~1.3" }, "require-dev": { - "simplesamlphp/simplesamlphp-test-framework": "~1.11" + "simplesamlphp/simplesamlphp-test-framework": "~1.11.5" }, "type": "simplesamlphp-xmlprovider", "extra": { @@ -1452,7 +1452,7 @@ "issues": "https://github.com/simplesamlphp/xml-common/issues", "source": "https://github.com/simplesamlphp/xml-common" }, - "time": "2026-04-13T20:34:07+00:00" + "time": "2026-04-24T08:51:06+00:00" }, { "name": "simplesamlphp/xml-security", @@ -1573,16 +1573,16 @@ }, { "name": "symfony/cache", - "version": "v7.4.8", + "version": "v7.4.12", "source": { "type": "git", "url": "https://github.com/symfony/cache.git", - "reference": "467464da294734b0fb17e853e5712abc8470f819" + "reference": "902d621e0b6ef0ebeaa133770b5c339a19328589" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/cache/zipball/467464da294734b0fb17e853e5712abc8470f819", - "reference": "467464da294734b0fb17e853e5712abc8470f819", + "url": "https://api.github.com/repos/symfony/cache/zipball/902d621e0b6ef0ebeaa133770b5c339a19328589", + "reference": "902d621e0b6ef0ebeaa133770b5c339a19328589", "shasum": "" }, "require": { @@ -1653,7 +1653,7 @@ "psr6" ], "support": { - "source": "https://github.com/symfony/cache/tree/v7.4.8" + "source": "https://github.com/symfony/cache/tree/v7.4.12" }, "funding": [ { @@ -1673,20 +1673,20 @@ "type": "tidelift" } ], - "time": "2026-03-30T15:15:47+00:00" + "time": "2026-05-20T07:20:23+00:00" }, { "name": "symfony/cache-contracts", - "version": "v3.6.0", + "version": "v3.7.0", "source": { "type": "git", "url": "https://github.com/symfony/cache-contracts.git", - "reference": "5d68a57d66910405e5c0b63d6f0af941e66fc868" + "reference": "225e8a254166bd3442e370c6f50145465db63831" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/cache-contracts/zipball/5d68a57d66910405e5c0b63d6f0af941e66fc868", - "reference": "5d68a57d66910405e5c0b63d6f0af941e66fc868", + "url": "https://api.github.com/repos/symfony/cache-contracts/zipball/225e8a254166bd3442e370c6f50145465db63831", + "reference": "225e8a254166bd3442e370c6f50145465db63831", "shasum": "" }, "require": { @@ -1700,7 +1700,7 @@ "name": "symfony/contracts" }, "branch-alias": { - "dev-main": "3.6-dev" + "dev-main": "3.7-dev" } }, "autoload": { @@ -1733,7 +1733,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/cache-contracts/tree/v3.6.0" + "source": "https://github.com/symfony/cache-contracts/tree/v3.7.0" }, "funding": [ { @@ -1744,25 +1744,29 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2025-03-13T15:25:07+00:00" + "time": "2026-05-05T15:33:14+00:00" }, { "name": "symfony/config", - "version": "v7.4.8", + "version": "v7.4.10", "source": { "type": "git", "url": "https://github.com/symfony/config.git", - "reference": "2d19dde43fa2ff720b9a40763ace7226594f503b" + "reference": "d91b6c7cd2a8c9a9c2b8d26c8f5ed48edf99ef57" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/config/zipball/2d19dde43fa2ff720b9a40763ace7226594f503b", - "reference": "2d19dde43fa2ff720b9a40763ace7226594f503b", + "url": "https://api.github.com/repos/symfony/config/zipball/d91b6c7cd2a8c9a9c2b8d26c8f5ed48edf99ef57", + "reference": "d91b6c7cd2a8c9a9c2b8d26c8f5ed48edf99ef57", "shasum": "" }, "require": { @@ -1808,7 +1812,7 @@ "description": "Helps you find, load, combine, autofill and validate configuration values of any kind", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/config/tree/v7.4.8" + "source": "https://github.com/symfony/config/tree/v7.4.10" }, "funding": [ { @@ -1828,20 +1832,20 @@ "type": "tidelift" } ], - "time": "2026-03-24T13:12:05+00:00" + "time": "2026-05-03T14:20:49+00:00" }, { "name": "symfony/console", - "version": "v7.4.8", + "version": "v7.4.11", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "1e92e39c51f95b88e3d66fa2d9f06d1fb45dd707" + "reference": "ed0107e43ab452aa77ae99e005b95e56b556e075" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/1e92e39c51f95b88e3d66fa2d9f06d1fb45dd707", - "reference": "1e92e39c51f95b88e3d66fa2d9f06d1fb45dd707", + "url": "https://api.github.com/repos/symfony/console/zipball/ed0107e43ab452aa77ae99e005b95e56b556e075", + "reference": "ed0107e43ab452aa77ae99e005b95e56b556e075", "shasum": "" }, "require": { @@ -1906,7 +1910,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v7.4.8" + "source": "https://github.com/symfony/console/tree/v7.4.11" }, "funding": [ { @@ -1926,20 +1930,20 @@ "type": "tidelift" } ], - "time": "2026-03-30T13:54:39+00:00" + "time": "2026-05-13T12:04:42+00:00" }, { "name": "symfony/dependency-injection", - "version": "v7.4.8", + "version": "v7.4.10", "source": { "type": "git", "url": "https://github.com/symfony/dependency-injection.git", - "reference": "f7025fd7b687c240426562f86ada06a93b1e771d" + "reference": "4eb0d9dfa9d4f7c59216baf49b3ed6b1fb72293d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/f7025fd7b687c240426562f86ada06a93b1e771d", - "reference": "f7025fd7b687c240426562f86ada06a93b1e771d", + "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/4eb0d9dfa9d4f7c59216baf49b3ed6b1fb72293d", + "reference": "4eb0d9dfa9d4f7c59216baf49b3ed6b1fb72293d", "shasum": "" }, "require": { @@ -1990,7 +1994,7 @@ "description": "Allows you to standardize and centralize the way objects are constructed in your application", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/dependency-injection/tree/v7.4.8" + "source": "https://github.com/symfony/dependency-injection/tree/v7.4.10" }, "funding": [ { @@ -2010,20 +2014,20 @@ "type": "tidelift" } ], - "time": "2026-03-31T06:50:29+00:00" + "time": "2026-05-06T11:55:30+00:00" }, { "name": "symfony/deprecation-contracts", - "version": "v3.6.0", + "version": "v3.7.0", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "63afe740e99a13ba87ec199bb07bbdee937a5b62" + "reference": "50f59d1f3ca46d41ac911f97a78626b6756af35b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/63afe740e99a13ba87ec199bb07bbdee937a5b62", - "reference": "63afe740e99a13ba87ec199bb07bbdee937a5b62", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/50f59d1f3ca46d41ac911f97a78626b6756af35b", + "reference": "50f59d1f3ca46d41ac911f97a78626b6756af35b", "shasum": "" }, "require": { @@ -2036,7 +2040,7 @@ "name": "symfony/contracts" }, "branch-alias": { - "dev-main": "3.6-dev" + "dev-main": "3.7-dev" } }, "autoload": { @@ -2061,7 +2065,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v3.6.0" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.7.0" }, "funding": [ { @@ -2072,12 +2076,16 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-25T14:21:43+00:00" + "time": "2026-04-13T15:52:40+00:00" }, { "name": "symfony/error-handler", @@ -2163,16 +2171,16 @@ }, { "name": "symfony/event-dispatcher", - "version": "v7.4.8", + "version": "v7.4.9", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "f57b899fa736fd71121168ef268f23c206083f0a" + "reference": "e4a2e29753c7801f7a8340e066cfa788f3bc8101" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/f57b899fa736fd71121168ef268f23c206083f0a", - "reference": "f57b899fa736fd71121168ef268f23c206083f0a", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/e4a2e29753c7801f7a8340e066cfa788f3bc8101", + "reference": "e4a2e29753c7801f7a8340e066cfa788f3bc8101", "shasum": "" }, "require": { @@ -2224,7 +2232,7 @@ "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/event-dispatcher/tree/v7.4.8" + "source": "https://github.com/symfony/event-dispatcher/tree/v7.4.9" }, "funding": [ { @@ -2244,20 +2252,20 @@ "type": "tidelift" } ], - "time": "2026-03-30T13:54:39+00:00" + "time": "2026-04-18T13:18:21+00:00" }, { "name": "symfony/event-dispatcher-contracts", - "version": "v3.6.0", + "version": "v3.7.0", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher-contracts.git", - "reference": "59eb412e93815df44f05f342958efa9f46b1e586" + "reference": "ccba7060602b7fed0b03c85bf025257f76d9ef32" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/59eb412e93815df44f05f342958efa9f46b1e586", - "reference": "59eb412e93815df44f05f342958efa9f46b1e586", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/ccba7060602b7fed0b03c85bf025257f76d9ef32", + "reference": "ccba7060602b7fed0b03c85bf025257f76d9ef32", "shasum": "" }, "require": { @@ -2271,7 +2279,7 @@ "name": "symfony/contracts" }, "branch-alias": { - "dev-main": "3.6-dev" + "dev-main": "3.7-dev" } }, "autoload": { @@ -2304,7 +2312,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.6.0" + "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.7.0" }, "funding": [ { @@ -2315,12 +2323,16 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-25T14:21:43+00:00" + "time": "2026-01-05T13:30:16+00:00" }, { "name": "symfony/expression-language", @@ -2392,16 +2404,16 @@ }, { "name": "symfony/filesystem", - "version": "v7.4.8", + "version": "v7.4.11", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "58b9790d12f9670b7f53a1c1738febd3108970a5" + "reference": "d721ea61b4a5fba8c5b6e7c1feda19efea144b50" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/58b9790d12f9670b7f53a1c1738febd3108970a5", - "reference": "58b9790d12f9670b7f53a1c1738febd3108970a5", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/d721ea61b4a5fba8c5b6e7c1feda19efea144b50", + "reference": "d721ea61b4a5fba8c5b6e7c1feda19efea144b50", "shasum": "" }, "require": { @@ -2438,7 +2450,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v7.4.8" + "source": "https://github.com/symfony/filesystem/tree/v7.4.11" }, "funding": [ { @@ -2458,7 +2470,7 @@ "type": "tidelift" } ], - "time": "2026-03-24T13:12:05+00:00" + "time": "2026-05-11T16:38:44+00:00" }, { "name": "symfony/finder", @@ -2530,16 +2542,16 @@ }, { "name": "symfony/framework-bundle", - "version": "v7.4.8", + "version": "v7.4.11", "source": { "type": "git", "url": "https://github.com/symfony/framework-bundle.git", - "reference": "180533cfbac2144349044267db31d5d3df9957cb" + "reference": "637f5cac1ac2698a012b41610215bf366004295f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/180533cfbac2144349044267db31d5d3df9957cb", - "reference": "180533cfbac2144349044267db31d5d3df9957cb", + "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/637f5cac1ac2698a012b41610215bf366004295f", + "reference": "637f5cac1ac2698a012b41610215bf366004295f", "shasum": "" }, "require": { @@ -2575,7 +2587,7 @@ "symfony/lock": "<6.4", "symfony/mailer": "<6.4", "symfony/messenger": "<7.4", - "symfony/mime": "<6.4", + "symfony/mime": "<6.4.37|>=7.0,<7.4.9|>=8.0,<8.0.9", "symfony/property-access": "<6.4", "symfony/property-info": "<6.4", "symfony/runtime": "<6.4.13|>=7.0,<7.1.6", @@ -2613,7 +2625,7 @@ "symfony/lock": "^6.4|^7.0|^8.0", "symfony/mailer": "^6.4|^7.0|^8.0", "symfony/messenger": "^7.4|^8.0", - "symfony/mime": "^6.4|^7.0|^8.0", + "symfony/mime": "^6.4.37|^7.4.9|^8.0.9", "symfony/notifier": "^6.4|^7.0|^8.0", "symfony/object-mapper": "^7.3|^8.0", "symfony/polyfill-intl-icu": "~1.0", @@ -2664,7 +2676,7 @@ "description": "Provides a tight integration between Symfony components and the Symfony full-stack framework", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/framework-bundle/tree/v7.4.8" + "source": "https://github.com/symfony/framework-bundle/tree/v7.4.11" }, "funding": [ { @@ -2684,20 +2696,20 @@ "type": "tidelift" } ], - "time": "2026-03-30T12:55:43+00:00" + "time": "2026-05-13T12:04:42+00:00" }, { "name": "symfony/http-client", - "version": "v7.4.8", + "version": "v7.4.9", "source": { "type": "git", "url": "https://github.com/symfony/http-client.git", - "reference": "01933e626c3de76bea1e22641e205e78f6a34342" + "reference": "7e941c6abf4e3bf7dca160bf0e11ef36a9f832f6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-client/zipball/01933e626c3de76bea1e22641e205e78f6a34342", - "reference": "01933e626c3de76bea1e22641e205e78f6a34342", + "url": "https://api.github.com/repos/symfony/http-client/zipball/7e941c6abf4e3bf7dca160bf0e11ef36a9f832f6", + "reference": "7e941c6abf4e3bf7dca160bf0e11ef36a9f832f6", "shasum": "" }, "require": { @@ -2765,7 +2777,7 @@ "http" ], "support": { - "source": "https://github.com/symfony/http-client/tree/v7.4.8" + "source": "https://github.com/symfony/http-client/tree/v7.4.9" }, "funding": [ { @@ -2785,20 +2797,20 @@ "type": "tidelift" } ], - "time": "2026-03-30T12:55:43+00:00" + "time": "2026-04-29T13:25:15+00:00" }, { "name": "symfony/http-client-contracts", - "version": "v3.6.0", + "version": "v3.7.0", "source": { "type": "git", "url": "https://github.com/symfony/http-client-contracts.git", - "reference": "75d7043853a42837e68111812f4d964b01e5101c" + "reference": "4a2d00c37651c0bdc2b9e1c773487a8bf4edb12d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-client-contracts/zipball/75d7043853a42837e68111812f4d964b01e5101c", - "reference": "75d7043853a42837e68111812f4d964b01e5101c", + "url": "https://api.github.com/repos/symfony/http-client-contracts/zipball/4a2d00c37651c0bdc2b9e1c773487a8bf4edb12d", + "reference": "4a2d00c37651c0bdc2b9e1c773487a8bf4edb12d", "shasum": "" }, "require": { @@ -2811,7 +2823,7 @@ "name": "symfony/contracts" }, "branch-alias": { - "dev-main": "3.6-dev" + "dev-main": "3.7-dev" } }, "autoload": { @@ -2847,7 +2859,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/http-client-contracts/tree/v3.6.0" + "source": "https://github.com/symfony/http-client-contracts/tree/v3.7.0" }, "funding": [ { @@ -2858,12 +2870,16 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2025-04-29T11:18:49+00:00" + "time": "2026-03-06T13:17:50+00:00" }, { "name": "symfony/http-foundation", @@ -2949,16 +2965,16 @@ }, { "name": "symfony/http-kernel", - "version": "v7.4.8", + "version": "v7.4.12", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "017e76ad089bac281553389269e259e155935e1a" + "reference": "7922b53e70d2ba2027af8bb6a59d91eb3541ea4d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/017e76ad089bac281553389269e259e155935e1a", - "reference": "017e76ad089bac281553389269e259e155935e1a", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/7922b53e70d2ba2027af8bb6a59d91eb3541ea4d", + "reference": "7922b53e70d2ba2027af8bb6a59d91eb3541ea4d", "shasum": "" }, "require": { @@ -3044,7 +3060,7 @@ "description": "Provides a structured process for converting a Request into a Response", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-kernel/tree/v7.4.8" + "source": "https://github.com/symfony/http-kernel/tree/v7.4.12" }, "funding": [ { @@ -3064,7 +3080,7 @@ "type": "tidelift" } ], - "time": "2026-03-31T20:57:01+00:00" + "time": "2026-05-20T09:27:11+00:00" }, { "name": "symfony/intl", @@ -3234,7 +3250,7 @@ }, { "name": "symfony/polyfill-ctype", - "version": "v1.36.0", + "version": "v1.37.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", @@ -3293,7 +3309,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.36.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.37.0" }, "funding": [ { @@ -3317,16 +3333,16 @@ }, { "name": "symfony/polyfill-intl-grapheme", - "version": "v1.36.0", + "version": "v1.37.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "ad1b7b9092976d6c948b8a187cec9faaea9ec1df" + "reference": "4864388bfbd3001ce88e234fab652acd91fdc57e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/ad1b7b9092976d6c948b8a187cec9faaea9ec1df", - "reference": "ad1b7b9092976d6c948b8a187cec9faaea9ec1df", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/4864388bfbd3001ce88e234fab652acd91fdc57e", + "reference": "4864388bfbd3001ce88e234fab652acd91fdc57e", "shasum": "" }, "require": { @@ -3375,7 +3391,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.36.0" + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.37.0" }, "funding": [ { @@ -3395,11 +3411,11 @@ "type": "tidelift" } ], - "time": "2026-04-10T16:19:22+00:00" + "time": "2026-04-26T13:13:48+00:00" }, { "name": "symfony/polyfill-intl-icu", - "version": "v1.36.0", + "version": "v1.37.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-icu.git", @@ -3463,7 +3479,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-icu/tree/v1.36.0" + "source": "https://github.com/symfony/polyfill-intl-icu/tree/v1.37.0" }, "funding": [ { @@ -3487,7 +3503,7 @@ }, { "name": "symfony/polyfill-intl-normalizer", - "version": "v1.36.0", + "version": "v1.37.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-normalizer.git", @@ -3548,7 +3564,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.36.0" + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.37.0" }, "funding": [ { @@ -3572,7 +3588,7 @@ }, { "name": "symfony/polyfill-mbstring", - "version": "v1.36.0", + "version": "v1.37.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", @@ -3633,7 +3649,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.36.0" + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.37.0" }, "funding": [ { @@ -3657,7 +3673,7 @@ }, { "name": "symfony/polyfill-php83", - "version": "v1.36.0", + "version": "v1.37.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php83.git", @@ -3713,7 +3729,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php83/tree/v1.36.0" + "source": "https://github.com/symfony/polyfill-php83/tree/v1.37.0" }, "funding": [ { @@ -3737,16 +3753,16 @@ }, { "name": "symfony/polyfill-php85", - "version": "v1.36.0", + "version": "v1.37.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php85.git", - "reference": "2c408a6bb0313e6001a83628dc5506100474254e" + "reference": "fcfa4973a9917cef23f2e38774da74a2b7d115ee" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php85/zipball/2c408a6bb0313e6001a83628dc5506100474254e", - "reference": "2c408a6bb0313e6001a83628dc5506100474254e", + "url": "https://api.github.com/repos/symfony/polyfill-php85/zipball/fcfa4973a9917cef23f2e38774da74a2b7d115ee", + "reference": "fcfa4973a9917cef23f2e38774da74a2b7d115ee", "shasum": "" }, "require": { @@ -3793,7 +3809,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php85/tree/v1.36.0" + "source": "https://github.com/symfony/polyfill-php85/tree/v1.37.0" }, "funding": [ { @@ -3813,20 +3829,20 @@ "type": "tidelift" } ], - "time": "2026-04-10T16:50:15+00:00" + "time": "2026-04-26T13:10:57+00:00" }, { "name": "symfony/routing", - "version": "v7.4.8", + "version": "v7.4.12", "source": { "type": "git", "url": "https://github.com/symfony/routing.git", - "reference": "9608de9873ec86e754fb6c0a0fa7e5f1a960eb6b" + "reference": "3b04a5ec4887a8135a12ebf0f4cbc5b8fc8ee204" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/routing/zipball/9608de9873ec86e754fb6c0a0fa7e5f1a960eb6b", - "reference": "9608de9873ec86e754fb6c0a0fa7e5f1a960eb6b", + "url": "https://api.github.com/repos/symfony/routing/zipball/3b04a5ec4887a8135a12ebf0f4cbc5b8fc8ee204", + "reference": "3b04a5ec4887a8135a12ebf0f4cbc5b8fc8ee204", "shasum": "" }, "require": { @@ -3878,7 +3894,7 @@ "url" ], "support": { - "source": "https://github.com/symfony/routing/tree/v7.4.8" + "source": "https://github.com/symfony/routing/tree/v7.4.12" }, "funding": [ { @@ -3898,20 +3914,20 @@ "type": "tidelift" } ], - "time": "2026-03-24T13:12:05+00:00" + "time": "2026-05-20T07:20:23+00:00" }, { "name": "symfony/service-contracts", - "version": "v3.6.1", + "version": "v3.7.0", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "45112560a3ba2d715666a509a0bc9521d10b6c43" + "reference": "d25d82433a80eba6aa0e6c24b61d7370d99e444a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/45112560a3ba2d715666a509a0bc9521d10b6c43", - "reference": "45112560a3ba2d715666a509a0bc9521d10b6c43", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/d25d82433a80eba6aa0e6c24b61d7370d99e444a", + "reference": "d25d82433a80eba6aa0e6c24b61d7370d99e444a", "shasum": "" }, "require": { @@ -3929,7 +3945,7 @@ "name": "symfony/contracts" }, "branch-alias": { - "dev-main": "3.6-dev" + "dev-main": "3.7-dev" } }, "autoload": { @@ -3965,7 +3981,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v3.6.1" + "source": "https://github.com/symfony/service-contracts/tree/v3.7.0" }, "funding": [ { @@ -3985,20 +4001,20 @@ "type": "tidelift" } ], - "time": "2025-07-15T11:30:57+00:00" + "time": "2026-03-28T09:44:51+00:00" }, { "name": "symfony/string", - "version": "v7.4.8", + "version": "v7.4.11", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "114ac57257d75df748eda23dd003878080b8e688" + "reference": "965f7306a43383d02c6aca1e3f3bd2f0ea5dee15" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/114ac57257d75df748eda23dd003878080b8e688", - "reference": "114ac57257d75df748eda23dd003878080b8e688", + "url": "https://api.github.com/repos/symfony/string/zipball/965f7306a43383d02c6aca1e3f3bd2f0ea5dee15", + "reference": "965f7306a43383d02c6aca1e3f3bd2f0ea5dee15", "shasum": "" }, "require": { @@ -4056,7 +4072,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v7.4.8" + "source": "https://github.com/symfony/string/tree/v7.4.11" }, "funding": [ { @@ -4076,20 +4092,20 @@ "type": "tidelift" } ], - "time": "2026-03-24T13:12:05+00:00" + "time": "2026-05-13T12:04:42+00:00" }, { "name": "symfony/translation", - "version": "v7.4.8", + "version": "v7.4.10", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", - "reference": "33600f8489485425bfcddd0d983391038d3422e7" + "reference": "ada7578c30dd5feaa8259cff3e885069ea81ddde" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/33600f8489485425bfcddd0d983391038d3422e7", - "reference": "33600f8489485425bfcddd0d983391038d3422e7", + "url": "https://api.github.com/repos/symfony/translation/zipball/ada7578c30dd5feaa8259cff3e885069ea81ddde", + "reference": "ada7578c30dd5feaa8259cff3e885069ea81ddde", "shasum": "" }, "require": { @@ -4156,7 +4172,7 @@ "description": "Provides tools to internationalize your application", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/translation/tree/v7.4.8" + "source": "https://github.com/symfony/translation/tree/v7.4.10" }, "funding": [ { @@ -4176,20 +4192,20 @@ "type": "tidelift" } ], - "time": "2026-03-24T13:12:05+00:00" + "time": "2026-05-06T11:19:24+00:00" }, { "name": "symfony/translation-contracts", - "version": "v3.6.1", + "version": "v3.7.0", "source": { "type": "git", "url": "https://github.com/symfony/translation-contracts.git", - "reference": "65a8bc82080447fae78373aa10f8d13b38338977" + "reference": "0ab302977a952b42fd51475c4ebac81f8da0a95d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/65a8bc82080447fae78373aa10f8d13b38338977", - "reference": "65a8bc82080447fae78373aa10f8d13b38338977", + "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/0ab302977a952b42fd51475c4ebac81f8da0a95d", + "reference": "0ab302977a952b42fd51475c4ebac81f8da0a95d", "shasum": "" }, "require": { @@ -4202,7 +4218,7 @@ "name": "symfony/contracts" }, "branch-alias": { - "dev-main": "3.6-dev" + "dev-main": "3.7-dev" } }, "autoload": { @@ -4238,7 +4254,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/translation-contracts/tree/v3.6.1" + "source": "https://github.com/symfony/translation-contracts/tree/v3.7.0" }, "funding": [ { @@ -4258,20 +4274,20 @@ "type": "tidelift" } ], - "time": "2025-07-15T13:41:35+00:00" + "time": "2026-01-05T13:30:16+00:00" }, { "name": "symfony/twig-bridge", - "version": "v7.4.8", + "version": "v7.4.12", "source": { "type": "git", "url": "https://github.com/symfony/twig-bridge.git", - "reference": "ac43e7e59298ed1ce98c8d228b651d46e907d02c" + "reference": "81663873d946531129c76c65e80b681ce99c0e89" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/twig-bridge/zipball/ac43e7e59298ed1ce98c8d228b651d46e907d02c", - "reference": "ac43e7e59298ed1ce98c8d228b651d46e907d02c", + "url": "https://api.github.com/repos/symfony/twig-bridge/zipball/81663873d946531129c76c65e80b681ce99c0e89", + "reference": "81663873d946531129c76c65e80b681ce99c0e89", "shasum": "" }, "require": { @@ -4287,7 +4303,7 @@ "symfony/form": "<6.4.32|>7,<7.3.10|>7.4,<7.4.4|>8.0,<8.0.4", "symfony/http-foundation": "<6.4", "symfony/http-kernel": "<6.4", - "symfony/mime": "<6.4.36|>7,<7.4.8|>8.0,<8.0.8", + "symfony/mime": "<6.4.37|>7,<7.4.9|>8.0,<8.0.9", "symfony/serializer": "<6.4", "symfony/translation": "<6.4", "symfony/workflow": "<6.4" @@ -4308,7 +4324,7 @@ "symfony/http-foundation": "^7.3|^8.0", "symfony/http-kernel": "^6.4|^7.0|^8.0", "symfony/intl": "^6.4|^7.0|^8.0", - "symfony/mime": "^6.4.36|^7.4.8|^8.0.8", + "symfony/mime": "^6.4.37|^7.4.9|^8.0.9", "symfony/polyfill-intl-icu": "~1.0", "symfony/property-info": "^6.4|^7.0|^8.0", "symfony/routing": "^6.4|^7.0|^8.0", @@ -4353,7 +4369,7 @@ "description": "Provides integration for Twig with various Symfony components", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/twig-bridge/tree/v7.4.8" + "source": "https://github.com/symfony/twig-bridge/tree/v7.4.12" }, "funding": [ { @@ -4373,7 +4389,7 @@ "type": "tidelift" } ], - "time": "2026-03-30T15:17:09+00:00" + "time": "2026-04-29T17:13:54+00:00" }, { "name": "symfony/var-dumper", @@ -4464,16 +4480,16 @@ }, { "name": "symfony/var-exporter", - "version": "v7.4.8", + "version": "v7.4.9", "source": { "type": "git", "url": "https://github.com/symfony/var-exporter.git", - "reference": "398907e89a2a56fe426f7955c6fa943ec0c77225" + "reference": "22e03a49c95ef054a43601cd159b222bfab1c701" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-exporter/zipball/398907e89a2a56fe426f7955c6fa943ec0c77225", - "reference": "398907e89a2a56fe426f7955c6fa943ec0c77225", + "url": "https://api.github.com/repos/symfony/var-exporter/zipball/22e03a49c95ef054a43601cd159b222bfab1c701", + "reference": "22e03a49c95ef054a43601cd159b222bfab1c701", "shasum": "" }, "require": { @@ -4521,7 +4537,7 @@ "serialize" ], "support": { - "source": "https://github.com/symfony/var-exporter/tree/v7.4.8" + "source": "https://github.com/symfony/var-exporter/tree/v7.4.9" }, "funding": [ { @@ -4541,20 +4557,20 @@ "type": "tidelift" } ], - "time": "2026-03-24T13:12:05+00:00" + "time": "2026-04-18T13:18:21+00:00" }, { "name": "symfony/yaml", - "version": "v7.4.8", + "version": "v7.4.12", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "c58fdf7b3d6c2995368264c49e4e8b05bcff2883" + "reference": "8b6952b56ca6417f25f7a65758cadd0ce02edc51" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/c58fdf7b3d6c2995368264c49e4e8b05bcff2883", - "reference": "c58fdf7b3d6c2995368264c49e4e8b05bcff2883", + "url": "https://api.github.com/repos/symfony/yaml/zipball/8b6952b56ca6417f25f7a65758cadd0ce02edc51", + "reference": "8b6952b56ca6417f25f7a65758cadd0ce02edc51", "shasum": "" }, "require": { @@ -4597,7 +4613,7 @@ "description": "Loads and dumps YAML files", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/yaml/tree/v7.4.8" + "source": "https://github.com/symfony/yaml/tree/v7.4.12" }, "funding": [ { @@ -4617,20 +4633,20 @@ "type": "tidelift" } ], - "time": "2026-03-24T13:12:05+00:00" + "time": "2026-05-20T07:20:23+00:00" }, { "name": "twig/intl-extra", - "version": "v3.24.0", + "version": "v3.26.0", "source": { "type": "git", "url": "https://github.com/twigphp/intl-extra.git", - "reference": "32f15a38d45a8d0ec11bc8a3d97d3ac2a261499f" + "reference": "98f5ad5bff13230fcd2d834d9e79b50adf3ccda9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/twigphp/intl-extra/zipball/32f15a38d45a8d0ec11bc8a3d97d3ac2a261499f", - "reference": "32f15a38d45a8d0ec11bc8a3d97d3ac2a261499f", + "url": "https://api.github.com/repos/twigphp/intl-extra/zipball/98f5ad5bff13230fcd2d834d9e79b50adf3ccda9", + "reference": "98f5ad5bff13230fcd2d834d9e79b50adf3ccda9", "shasum": "" }, "require": { @@ -4669,7 +4685,7 @@ "twig" ], "support": { - "source": "https://github.com/twigphp/intl-extra/tree/v3.24.0" + "source": "https://github.com/twigphp/intl-extra/tree/v3.26.0" }, "funding": [ { @@ -4681,20 +4697,20 @@ "type": "tidelift" } ], - "time": "2026-01-17T13:57:47+00:00" + "time": "2026-05-19T20:44:48+00:00" }, { "name": "twig/twig", - "version": "v3.24.0", + "version": "v3.26.0", "source": { "type": "git", "url": "https://github.com/twigphp/Twig.git", - "reference": "a6769aefb305efef849dc25c9fd1653358c148f0" + "reference": "1fcae487b180d78e6351f4e0afa91f9eab96a2bc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/twigphp/Twig/zipball/a6769aefb305efef849dc25c9fd1653358c148f0", - "reference": "a6769aefb305efef849dc25c9fd1653358c148f0", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/1fcae487b180d78e6351f4e0afa91f9eab96a2bc", + "reference": "1fcae487b180d78e6351f4e0afa91f9eab96a2bc", "shasum": "" }, "require": { @@ -4749,7 +4765,7 @@ ], "support": { "issues": "https://github.com/twigphp/Twig/issues", - "source": "https://github.com/twigphp/Twig/tree/v3.24.0" + "source": "https://github.com/twigphp/Twig/tree/v3.26.0" }, "funding": [ { @@ -4761,20 +4777,20 @@ "type": "tidelift" } ], - "time": "2026-03-17T21:31:11+00:00" + "time": "2026-05-20T07:31:59+00:00" }, { "name": "webmozart/assert", - "version": "2.3.0", + "version": "2.4.0", "source": { "type": "git", "url": "https://github.com/webmozarts/assert.git", - "reference": "eb0d790f735ba6cff25c683a85a1da0eadeff9e4" + "reference": "9007ea6f45ecf352a9422b36644e4bfc039b9155" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webmozarts/assert/zipball/eb0d790f735ba6cff25c683a85a1da0eadeff9e4", - "reference": "eb0d790f735ba6cff25c683a85a1da0eadeff9e4", + "url": "https://api.github.com/repos/webmozarts/assert/zipball/9007ea6f45ecf352a9422b36644e4bfc039b9155", + "reference": "9007ea6f45ecf352a9422b36644e4bfc039b9155", "shasum": "" }, "require": { @@ -4790,7 +4806,11 @@ }, "type": "library", "extra": { + "psalm": { + "pluginClass": "Webmozart\\Assert\\PsalmPlugin" + }, "branch-alias": { + "dev-master": "2.0-dev", "dev-feature/2-0": "2.0-dev" } }, @@ -4821,9 +4841,9 @@ ], "support": { "issues": "https://github.com/webmozarts/assert/issues", - "source": "https://github.com/webmozarts/assert/tree/2.3.0" + "source": "https://github.com/webmozarts/assert/tree/2.4.0" }, - "time": "2026-04-11T10:33:05+00:00" + "time": "2026-05-20T13:07:01+00:00" } ], "packages-dev": [ @@ -5092,16 +5112,16 @@ }, { "name": "dealerdirect/phpcodesniffer-composer-installer", - "version": "v1.2.0", + "version": "v1.2.1", "source": { "type": "git", "url": "https://github.com/PHPCSStandards/composer-installer.git", - "reference": "845eb62303d2ca9b289ef216356568ccc075ffd1" + "reference": "963f0c67bffde0eac41b56be71ac0e8ba132f0bd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCSStandards/composer-installer/zipball/845eb62303d2ca9b289ef216356568ccc075ffd1", - "reference": "845eb62303d2ca9b289ef216356568ccc075ffd1", + "url": "https://api.github.com/repos/PHPCSStandards/composer-installer/zipball/963f0c67bffde0eac41b56be71ac0e8ba132f0bd", + "reference": "963f0c67bffde0eac41b56be71ac0e8ba132f0bd", "shasum": "" }, "require": { @@ -5184,7 +5204,7 @@ "type": "thanks_dev" } ], - "time": "2025-11-11T04:32:07+00:00" + "time": "2026-05-06T08:26:05+00:00" }, { "name": "icanhazstring/composer-unused", @@ -5692,11 +5712,11 @@ }, { "name": "phpstan/phpstan", - "version": "2.1.48", + "version": "2.1.55", "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/231397213efb7c0a066ee024b5c3c87f2d3adfa0", - "reference": "231397213efb7c0a066ee024b5c3c87f2d3adfa0", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/9eaac3826ed5e9b8427350a43cac825eeca3f566", + "reference": "9eaac3826ed5e9b8427350a43cac825eeca3f566", "shasum": "" }, "require": { @@ -5741,7 +5761,7 @@ "type": "github" } ], - "time": "2026-04-15T20:24:19+00:00" + "time": "2026-05-18T11:57:34+00:00" }, { "name": "phpstan/phpstan-mockery", @@ -6195,16 +6215,16 @@ }, { "name": "phpunit/phpunit", - "version": "12.5.21", + "version": "12.5.26", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "1b7bd4788966bf1533901808657850b6c7876ec7" + "reference": "e78c9ad74f73fd3642a23e65ace83746dc8df26d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/1b7bd4788966bf1533901808657850b6c7876ec7", - "reference": "1b7bd4788966bf1533901808657850b6c7876ec7", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/e78c9ad74f73fd3642a23e65ace83746dc8df26d", + "reference": "e78c9ad74f73fd3642a23e65ace83746dc8df26d", "shasum": "" }, "require": { @@ -6223,15 +6243,15 @@ "phpunit/php-invoker": "^6.0.0", "phpunit/php-text-template": "^5.0.0", "phpunit/php-timer": "^8.0.0", - "sebastian/cli-parser": "^4.2.0", - "sebastian/comparator": "^7.1.6", + "sebastian/cli-parser": "^4.2.1", + "sebastian/comparator": "^7.1.8", "sebastian/diff": "^7.0.0", - "sebastian/environment": "^8.1.0", - "sebastian/exporter": "^7.0.2", + "sebastian/environment": "^8.1.1", + "sebastian/exporter": "^7.0.3", "sebastian/global-state": "^8.0.2", "sebastian/object-enumerator": "^7.0.0", "sebastian/recursion-context": "^7.0.1", - "sebastian/type": "^6.0.3", + "sebastian/type": "^6.0.4", "sebastian/version": "^6.0.0", "staabm/side-effects-detector": "^1.0.5" }, @@ -6273,7 +6293,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/12.5.21" + "source": "https://github.com/sebastianbergmann/phpunit/tree/12.5.26" }, "funding": [ { @@ -6281,7 +6301,7 @@ "type": "other" } ], - "time": "2026-04-16T04:56:04+00:00" + "time": "2026-05-21T12:36:53+00:00" }, { "name": "predis/predis", @@ -6348,23 +6368,23 @@ }, { "name": "sebastian/cli-parser", - "version": "4.2.0", + "version": "4.2.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/cli-parser.git", - "reference": "90f41072d220e5c40df6e8635f5dafba2d9d4d04" + "reference": "7d05781b13f7dec9043a629a21d086ed74582a15" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/90f41072d220e5c40df6e8635f5dafba2d9d4d04", - "reference": "90f41072d220e5c40df6e8635f5dafba2d9d4d04", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/7d05781b13f7dec9043a629a21d086ed74582a15", + "reference": "7d05781b13f7dec9043a629a21d086ed74582a15", "shasum": "" }, "require": { "php": ">=8.3" }, "require-dev": { - "phpunit/phpunit": "^12.0" + "phpunit/phpunit": "^12.5.25" }, "type": "library", "extra": { @@ -6393,7 +6413,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/cli-parser/issues", "security": "https://github.com/sebastianbergmann/cli-parser/security/policy", - "source": "https://github.com/sebastianbergmann/cli-parser/tree/4.2.0" + "source": "https://github.com/sebastianbergmann/cli-parser/tree/4.2.1" }, "funding": [ { @@ -6413,20 +6433,20 @@ "type": "tidelift" } ], - "time": "2025-09-14T09:36:45+00:00" + "time": "2026-05-17T05:29:34+00:00" }, { "name": "sebastian/comparator", - "version": "7.1.6", + "version": "7.1.8", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "c769009dee98f494e0edc3fd4f4087501688f11e" + "reference": "7c65c1e79836812819705b473a90c12399542485" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/c769009dee98f494e0edc3fd4f4087501688f11e", - "reference": "c769009dee98f494e0edc3fd4f4087501688f11e", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/7c65c1e79836812819705b473a90c12399542485", + "reference": "7c65c1e79836812819705b473a90c12399542485", "shasum": "" }, "require": { @@ -6434,10 +6454,10 @@ "ext-mbstring": "*", "php": ">=8.3", "sebastian/diff": "^7.0", - "sebastian/exporter": "^7.0" + "sebastian/exporter": "^7.0.3" }, "require-dev": { - "phpunit/phpunit": "^12.2" + "phpunit/phpunit": "^12.5.25" }, "suggest": { "ext-bcmath": "For comparing BcMath\\Number objects" @@ -6485,7 +6505,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/comparator/issues", "security": "https://github.com/sebastianbergmann/comparator/security/policy", - "source": "https://github.com/sebastianbergmann/comparator/tree/7.1.6" + "source": "https://github.com/sebastianbergmann/comparator/tree/7.1.8" }, "funding": [ { @@ -6505,7 +6525,7 @@ "type": "tidelift" } ], - "time": "2026-04-14T08:23:15+00:00" + "time": "2026-05-21T04:45:25+00:00" }, { "name": "sebastian/complexity", @@ -6634,23 +6654,23 @@ }, { "name": "sebastian/environment", - "version": "8.1.0", + "version": "8.1.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "b121608b28a13f721e76ffbbd386d08eff58f3f6" + "reference": "334bc42a97ec6fc44c59001dc3467e0d739a20e9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/b121608b28a13f721e76ffbbd386d08eff58f3f6", - "reference": "b121608b28a13f721e76ffbbd386d08eff58f3f6", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/334bc42a97ec6fc44c59001dc3467e0d739a20e9", + "reference": "334bc42a97ec6fc44c59001dc3467e0d739a20e9", "shasum": "" }, "require": { "php": ">=8.3" }, "require-dev": { - "phpunit/phpunit": "^12.0" + "phpunit/phpunit": "^12.5.25" }, "suggest": { "ext-posix": "*" @@ -6686,7 +6706,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/environment/issues", "security": "https://github.com/sebastianbergmann/environment/security/policy", - "source": "https://github.com/sebastianbergmann/environment/tree/8.1.0" + "source": "https://github.com/sebastianbergmann/environment/tree/8.1.1" }, "funding": [ { @@ -6706,29 +6726,29 @@ "type": "tidelift" } ], - "time": "2026-04-15T12:13:01+00:00" + "time": "2026-05-21T08:45:32+00:00" }, { "name": "sebastian/exporter", - "version": "7.0.2", + "version": "7.0.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "016951ae10980765e4e7aee491eb288c64e505b7" + "reference": "c5e21b5de653ce0a769fb36f5cdfcb5e7a32cf23" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/016951ae10980765e4e7aee491eb288c64e505b7", - "reference": "016951ae10980765e4e7aee491eb288c64e505b7", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/c5e21b5de653ce0a769fb36f5cdfcb5e7a32cf23", + "reference": "c5e21b5de653ce0a769fb36f5cdfcb5e7a32cf23", "shasum": "" }, "require": { "ext-mbstring": "*", "php": ">=8.3", - "sebastian/recursion-context": "^7.0" + "sebastian/recursion-context": "^7.0.1" }, "require-dev": { - "phpunit/phpunit": "^12.0" + "phpunit/phpunit": "^12.5.25" }, "type": "library", "extra": { @@ -6776,7 +6796,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/exporter/issues", "security": "https://github.com/sebastianbergmann/exporter/security/policy", - "source": "https://github.com/sebastianbergmann/exporter/tree/7.0.2" + "source": "https://github.com/sebastianbergmann/exporter/tree/7.0.3" }, "funding": [ { @@ -6796,7 +6816,7 @@ "type": "tidelift" } ], - "time": "2025-09-24T06:16:11+00:00" + "time": "2026-05-20T04:37:17+00:00" }, { "name": "sebastian/global-state", @@ -6874,24 +6894,24 @@ }, { "name": "sebastian/lines-of-code", - "version": "4.0.0", + "version": "4.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/lines-of-code.git", - "reference": "97ffee3bcfb5805568d6af7f0f893678fc076d2f" + "reference": "d543b8ef219dcd8da262cbb958639a96bedba10e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/97ffee3bcfb5805568d6af7f0f893678fc076d2f", - "reference": "97ffee3bcfb5805568d6af7f0f893678fc076d2f", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/d543b8ef219dcd8da262cbb958639a96bedba10e", + "reference": "d543b8ef219dcd8da262cbb958639a96bedba10e", "shasum": "" }, "require": { - "nikic/php-parser": "^5.0", + "nikic/php-parser": "^5.7.0", "php": ">=8.3" }, "require-dev": { - "phpunit/phpunit": "^12.0" + "phpunit/phpunit": "^12.5.25" }, "type": "library", "extra": { @@ -6920,15 +6940,27 @@ "support": { "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", "security": "https://github.com/sebastianbergmann/lines-of-code/security/policy", - "source": "https://github.com/sebastianbergmann/lines-of-code/tree/4.0.0" + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/4.0.1" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/lines-of-code", + "type": "tidelift" } ], - "time": "2025-02-07T04:57:28+00:00" + "time": "2026-05-19T16:22:07+00:00" }, { "name": "sebastian/object-enumerator", @@ -7122,23 +7154,23 @@ }, { "name": "sebastian/type", - "version": "6.0.3", + "version": "6.0.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/type.git", - "reference": "e549163b9760b8f71f191651d22acf32d56d6d4d" + "reference": "82ff822c2edc46724be9f7411d3163021f602773" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/e549163b9760b8f71f191651d22acf32d56d6d4d", - "reference": "e549163b9760b8f71f191651d22acf32d56d6d4d", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/82ff822c2edc46724be9f7411d3163021f602773", + "reference": "82ff822c2edc46724be9f7411d3163021f602773", "shasum": "" }, "require": { "php": ">=8.3" }, "require-dev": { - "phpunit/phpunit": "^12.0" + "phpunit/phpunit": "^12.5.25" }, "type": "library", "extra": { @@ -7167,7 +7199,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/type/issues", "security": "https://github.com/sebastianbergmann/type/security/policy", - "source": "https://github.com/sebastianbergmann/type/tree/6.0.3" + "source": "https://github.com/sebastianbergmann/type/tree/6.0.4" }, "funding": [ { @@ -7187,7 +7219,7 @@ "type": "tidelift" } ], - "time": "2025-08-09T06:57:12+00:00" + "time": "2026-05-20T06:45:45+00:00" }, { "name": "sebastian/version", @@ -7303,20 +7335,20 @@ }, { "name": "slevomat/coding-standard", - "version": "8.28.1", + "version": "8.29.0", "source": { "type": "git", "url": "https://github.com/slevomat/coding-standard.git", - "reference": "66151cfbd25b50e8becd9f809fb704f01fd4d6f2" + "reference": "81fce13c4ef4b53a03e5cfa6ce36afc191c1598e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/66151cfbd25b50e8becd9f809fb704f01fd4d6f2", - "reference": "66151cfbd25b50e8becd9f809fb704f01fd4d6f2", + "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/81fce13c4ef4b53a03e5cfa6ce36afc191c1598e", + "reference": "81fce13c4ef4b53a03e5cfa6ce36afc191c1598e", "shasum": "" }, "require": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.7 || ^1.2.0", + "dealerdirect/phpcodesniffer-composer-installer": "^0.7 || ^1.2.1", "php": "^7.4 || ^8.0", "phpstan/phpdoc-parser": "^2.3.2", "squizlabs/php_codesniffer": "^4.0.1" @@ -7324,11 +7356,11 @@ "require-dev": { "phing/phing": "3.0.1|3.1.2", "php-parallel-lint/php-parallel-lint": "1.4.0", - "phpstan/phpstan": "2.1.42", + "phpstan/phpstan": "2.1.54", "phpstan/phpstan-deprecation-rules": "2.0.4", "phpstan/phpstan-phpunit": "2.0.16", - "phpstan/phpstan-strict-rules": "2.0.10", - "phpunit/phpunit": "9.6.34|10.5.63|11.4.4|11.5.50|12.5.14" + "phpstan/phpstan-strict-rules": "2.0.11", + "phpunit/phpunit": "9.6.34|10.5.63|11.4.4|11.5.55|12.5.24" }, "type": "phpcodesniffer-standard", "extra": { @@ -7352,7 +7384,7 @@ ], "support": { "issues": "https://github.com/slevomat/coding-standard/issues", - "source": "https://github.com/slevomat/coding-standard/tree/8.28.1" + "source": "https://github.com/slevomat/coding-standard/tree/8.29.0" }, "funding": [ { @@ -7364,7 +7396,7 @@ "type": "tidelift" } ], - "time": "2026-03-22T17:22:38+00:00" + "time": "2026-05-07T05:48:08+00:00" }, { "name": "squizlabs/php_codesniffer", @@ -7584,7 +7616,7 @@ }, { "name": "symfony/polyfill-php84", - "version": "v1.36.0", + "version": "v1.37.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php84.git", @@ -7640,7 +7672,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php84/tree/v1.36.0" + "source": "https://github.com/symfony/polyfill-php84/tree/v1.37.0" }, "funding": [ { @@ -7835,16 +7867,16 @@ }, { "name": "symfony/serializer", - "version": "v7.4.8", + "version": "v7.4.10", "source": { "type": "git", "url": "https://github.com/symfony/serializer.git", - "reference": "006fd51717addf2df2bd1a64dafef6b7fab6b455" + "reference": "268c5aa6c4bd675eddd89348e7ecac292a843ddd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/serializer/zipball/006fd51717addf2df2bd1a64dafef6b7fab6b455", - "reference": "006fd51717addf2df2bd1a64dafef6b7fab6b455", + "url": "https://api.github.com/repos/symfony/serializer/zipball/268c5aa6c4bd675eddd89348e7ecac292a843ddd", + "reference": "268c5aa6c4bd675eddd89348e7ecac292a843ddd", "shasum": "" }, "require": { @@ -7857,7 +7889,7 @@ "phpdocumentor/reflection-docblock": "<5.2|>=7", "phpdocumentor/type-resolver": "<1.5.1", "symfony/dependency-injection": "<6.4", - "symfony/property-access": "<6.4", + "symfony/property-access": "<6.4.31|>=7.0,<7.4.2|>=8.0,<8.0.2", "symfony/property-info": "<6.4", "symfony/type-info": "<7.2.5", "symfony/uid": "<6.4", @@ -7879,7 +7911,7 @@ "symfony/http-kernel": "^6.4|^7.0|^8.0", "symfony/messenger": "^6.4|^7.0|^8.0", "symfony/mime": "^6.4|^7.0|^8.0", - "symfony/property-access": "^6.4|^7.0|^8.0", + "symfony/property-access": "^6.4.31|^7.4.2|^8.0.2", "symfony/property-info": "^6.4|^7.0|^8.0", "symfony/translation-contracts": "^2.5|^3", "symfony/type-info": "^7.2.5|^8.0", @@ -7915,7 +7947,7 @@ "description": "Handles serializing and deserializing data structures, including object graphs, into array structures or other formats like XML and JSON.", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/serializer/tree/v7.4.8" + "source": "https://github.com/symfony/serializer/tree/v7.4.10" }, "funding": [ { @@ -7935,20 +7967,20 @@ "type": "tidelift" } ], - "time": "2026-03-30T21:34:42+00:00" + "time": "2026-05-03T13:03:28+00:00" }, { "name": "symfony/type-info", - "version": "v7.4.8", + "version": "v7.4.9", "source": { "type": "git", "url": "https://github.com/symfony/type-info.git", - "reference": "6bf34da885ff5143a3dfd8f1b863bb8ab95f50bd" + "reference": "cafeedbf157b890e94ac5b83eaed85595106d5d6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/type-info/zipball/6bf34da885ff5143a3dfd8f1b863bb8ab95f50bd", - "reference": "6bf34da885ff5143a3dfd8f1b863bb8ab95f50bd", + "url": "https://api.github.com/repos/symfony/type-info/zipball/cafeedbf157b890e94ac5b83eaed85595106d5d6", + "reference": "cafeedbf157b890e94ac5b83eaed85595106d5d6", "shasum": "" }, "require": { @@ -7998,7 +8030,7 @@ "type" ], "support": { - "source": "https://github.com/symfony/type-info/tree/v7.4.8" + "source": "https://github.com/symfony/type-info/tree/v7.4.9" }, "funding": [ { @@ -8018,7 +8050,7 @@ "type": "tidelift" } ], - "time": "2026-03-24T13:12:05+00:00" + "time": "2026-04-22T15:21:55+00:00" }, { "name": "theseer/tokenizer", From 49d7399da7c254757b48d9c417f2a7696d48edee Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Thu, 28 May 2026 12:38:33 +0200 Subject: [PATCH 02/39] Bump dependencies --- composer.lock | 304 ++++++++++++++++++++++++++------------------------ 1 file changed, 159 insertions(+), 145 deletions(-) diff --git a/composer.lock b/composer.lock index 50a869ea33..8909c92c56 100644 --- a/composer.lock +++ b/composer.lock @@ -290,16 +290,16 @@ }, { "name": "guzzlehttp/psr7", - "version": "2.10.1", + "version": "2.10.3", "source": { "type": "git", "url": "https://github.com/guzzle/psr7.git", - "reference": "73ab136360b5dfd858006eae9795e8fe43c80361" + "reference": "7c1472269227dc6f18930bd903d7a88fe6c52130" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/73ab136360b5dfd858006eae9795e8fe43c80361", - "reference": "73ab136360b5dfd858006eae9795e8fe43c80361", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/7c1472269227dc6f18930bd903d7a88fe6c52130", + "reference": "7c1472269227dc6f18930bd903d7a88fe6c52130", "shasum": "" }, "require": { @@ -387,7 +387,7 @@ ], "support": { "issues": "https://github.com/guzzle/psr7/issues", - "source": "https://github.com/guzzle/psr7/tree/2.10.1" + "source": "https://github.com/guzzle/psr7/tree/2.10.3" }, "funding": [ { @@ -403,7 +403,7 @@ "type": "tidelift" } ], - "time": "2026-05-20T09:27:36+00:00" + "time": "2026-05-27T11:48:20+00:00" }, { "name": "nikic/php-parser", @@ -1214,16 +1214,16 @@ }, { "name": "simplesamlphp/saml2", - "version": "v6.2.0", + "version": "v6.2.1", "source": { "type": "git", "url": "https://github.com/simplesamlphp/saml2.git", - "reference": "8be7855cced8a43a474cfc8062e85b328c06f3ff" + "reference": "f3c4d4fbe44639e63a94e023e7198e5d243d6422" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/simplesamlphp/saml2/zipball/8be7855cced8a43a474cfc8062e85b328c06f3ff", - "reference": "8be7855cced8a43a474cfc8062e85b328c06f3ff", + "url": "https://api.github.com/repos/simplesamlphp/saml2/zipball/f3c4d4fbe44639e63a94e023e7198e5d243d6422", + "reference": "f3c4d4fbe44639e63a94e023e7198e5d243d6422", "shasum": "" }, "require": { @@ -1238,6 +1238,7 @@ "psr/clock": "~1.0", "psr/http-message": "~2.0", "psr/log": "~3.0", + "robrichards/xmlseclibs": "^3.1", "simplesamlphp/assert": "~2.0", "simplesamlphp/xml-common": "~2.8", "simplesamlphp/xml-security": "~2.3", @@ -1246,7 +1247,9 @@ "require-dev": { "beste/clock": "~3.0", "ext-intl": "*", + "icanhazstring/composer-unused": "^0.9.6", "mockery/mockery": "~1.6", + "simplesamlphp/simplesamlphp": "2.5.*", "simplesamlphp/simplesamlphp-test-framework": "~1.11" }, "suggest": { @@ -1284,22 +1287,22 @@ "description": "SAML2 PHP library from SimpleSAMLphp", "support": { "issues": "https://github.com/simplesamlphp/saml2/issues", - "source": "https://github.com/simplesamlphp/saml2/tree/v6.2.0" + "source": "https://github.com/simplesamlphp/saml2/tree/v6.2.1" }, - "time": "2026-04-23T23:20:37+00:00" + "time": "2026-05-25T14:44:15+00:00" }, { "name": "simplesamlphp/saml2-legacy", - "version": "v4.20.1", + "version": "v4.20.3", "source": { "type": "git", "url": "https://github.com/simplesamlphp/saml2-legacy.git", - "reference": "ac325057307cc8765e190fae20f7721d5f7b9f69" + "reference": "b43d5d10ea1180f478ddcd677ff13bb324cfa866" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/simplesamlphp/saml2-legacy/zipball/ac325057307cc8765e190fae20f7721d5f7b9f69", - "reference": "ac325057307cc8765e190fae20f7721d5f7b9f69", + "url": "https://api.github.com/repos/simplesamlphp/saml2-legacy/zipball/b43d5d10ea1180f478ddcd677ff13bb324cfa866", + "reference": "b43d5d10ea1180f478ddcd677ff13bb324cfa866", "shasum": "" }, "require": { @@ -1322,7 +1325,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "v4.2.x-dev" + "dev-master": "v4.20.x-dev" } }, "autoload": { @@ -1342,9 +1345,9 @@ ], "description": "SAML2 PHP library from SimpleSAMLphp", "support": { - "source": "https://github.com/simplesamlphp/saml2-legacy/tree/v4.20.1" + "source": "https://github.com/simplesamlphp/saml2-legacy/tree/v4.20.3" }, - "time": "2026-03-13T12:39:43+00:00" + "time": "2026-05-25T16:06:14+00:00" }, { "name": "simplesamlphp/simplesamlphp-assets-base", @@ -1573,16 +1576,16 @@ }, { "name": "symfony/cache", - "version": "v7.4.12", + "version": "v7.4.13", "source": { "type": "git", "url": "https://github.com/symfony/cache.git", - "reference": "902d621e0b6ef0ebeaa133770b5c339a19328589" + "reference": "4c09e18a92cce126cc0d1155825279fca8cd0673" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/cache/zipball/902d621e0b6ef0ebeaa133770b5c339a19328589", - "reference": "902d621e0b6ef0ebeaa133770b5c339a19328589", + "url": "https://api.github.com/repos/symfony/cache/zipball/4c09e18a92cce126cc0d1155825279fca8cd0673", + "reference": "4c09e18a92cce126cc0d1155825279fca8cd0673", "shasum": "" }, "require": { @@ -1653,7 +1656,7 @@ "psr6" ], "support": { - "source": "https://github.com/symfony/cache/tree/v7.4.12" + "source": "https://github.com/symfony/cache/tree/v7.4.13" }, "funding": [ { @@ -1673,7 +1676,7 @@ "type": "tidelift" } ], - "time": "2026-05-20T07:20:23+00:00" + "time": "2026-05-24T08:43:14+00:00" }, { "name": "symfony/cache-contracts", @@ -1836,16 +1839,16 @@ }, { "name": "symfony/console", - "version": "v7.4.11", + "version": "v7.4.13", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "ed0107e43ab452aa77ae99e005b95e56b556e075" + "reference": "85095d2573eaefaf35e40b9513a9bf09f72cd217" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/ed0107e43ab452aa77ae99e005b95e56b556e075", - "reference": "ed0107e43ab452aa77ae99e005b95e56b556e075", + "url": "https://api.github.com/repos/symfony/console/zipball/85095d2573eaefaf35e40b9513a9bf09f72cd217", + "reference": "85095d2573eaefaf35e40b9513a9bf09f72cd217", "shasum": "" }, "require": { @@ -1910,7 +1913,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v7.4.11" + "source": "https://github.com/symfony/console/tree/v7.4.13" }, "funding": [ { @@ -1930,20 +1933,20 @@ "type": "tidelift" } ], - "time": "2026-05-13T12:04:42+00:00" + "time": "2026-05-24T08:56:14+00:00" }, { "name": "symfony/dependency-injection", - "version": "v7.4.10", + "version": "v7.4.13", "source": { "type": "git", "url": "https://github.com/symfony/dependency-injection.git", - "reference": "4eb0d9dfa9d4f7c59216baf49b3ed6b1fb72293d" + "reference": "f299e20ce983be6c0744952533c6dfeaaa1448e2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/4eb0d9dfa9d4f7c59216baf49b3ed6b1fb72293d", - "reference": "4eb0d9dfa9d4f7c59216baf49b3ed6b1fb72293d", + "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/f299e20ce983be6c0744952533c6dfeaaa1448e2", + "reference": "f299e20ce983be6c0744952533c6dfeaaa1448e2", "shasum": "" }, "require": { @@ -1994,7 +1997,7 @@ "description": "Allows you to standardize and centralize the way objects are constructed in your application", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/dependency-injection/tree/v7.4.10" + "source": "https://github.com/symfony/dependency-injection/tree/v7.4.13" }, "funding": [ { @@ -2014,7 +2017,7 @@ "type": "tidelift" } ], - "time": "2026-05-06T11:55:30+00:00" + "time": "2026-05-20T14:07:29+00:00" }, { "name": "symfony/deprecation-contracts", @@ -2542,16 +2545,16 @@ }, { "name": "symfony/framework-bundle", - "version": "v7.4.11", + "version": "v7.4.13", "source": { "type": "git", "url": "https://github.com/symfony/framework-bundle.git", - "reference": "637f5cac1ac2698a012b41610215bf366004295f" + "reference": "8be39c7bf9e6f58fe49c07927572a9df7c961c95" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/637f5cac1ac2698a012b41610215bf366004295f", - "reference": "637f5cac1ac2698a012b41610215bf366004295f", + "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/8be39c7bf9e6f58fe49c07927572a9df7c961c95", + "reference": "8be39c7bf9e6f58fe49c07927572a9df7c961c95", "shasum": "" }, "require": { @@ -2676,7 +2679,7 @@ "description": "Provides a tight integration between Symfony components and the Symfony full-stack framework", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/framework-bundle/tree/v7.4.11" + "source": "https://github.com/symfony/framework-bundle/tree/v7.4.13" }, "funding": [ { @@ -2696,20 +2699,20 @@ "type": "tidelift" } ], - "time": "2026-05-13T12:04:42+00:00" + "time": "2026-05-23T18:04:28+00:00" }, { "name": "symfony/http-client", - "version": "v7.4.9", + "version": "v7.4.13", "source": { "type": "git", "url": "https://github.com/symfony/http-client.git", - "reference": "7e941c6abf4e3bf7dca160bf0e11ef36a9f832f6" + "reference": "e8a112b8415707265a7e614278136a9d92989a6a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-client/zipball/7e941c6abf4e3bf7dca160bf0e11ef36a9f832f6", - "reference": "7e941c6abf4e3bf7dca160bf0e11ef36a9f832f6", + "url": "https://api.github.com/repos/symfony/http-client/zipball/e8a112b8415707265a7e614278136a9d92989a6a", + "reference": "e8a112b8415707265a7e614278136a9d92989a6a", "shasum": "" }, "require": { @@ -2777,7 +2780,7 @@ "http" ], "support": { - "source": "https://github.com/symfony/http-client/tree/v7.4.9" + "source": "https://github.com/symfony/http-client/tree/v7.4.13" }, "funding": [ { @@ -2797,7 +2800,7 @@ "type": "tidelift" } ], - "time": "2026-04-29T13:25:15+00:00" + "time": "2026-05-24T09:57:54+00:00" }, { "name": "symfony/http-client-contracts", @@ -2883,16 +2886,16 @@ }, { "name": "symfony/http-foundation", - "version": "v7.4.8", + "version": "v7.4.13", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "9381209597ec66c25be154cbf2289076e64d1eab" + "reference": "bc354f47c62301e990b7874fa662326368508e2c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/9381209597ec66c25be154cbf2289076e64d1eab", - "reference": "9381209597ec66c25be154cbf2289076e64d1eab", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/bc354f47c62301e990b7874fa662326368508e2c", + "reference": "bc354f47c62301e990b7874fa662326368508e2c", "shasum": "" }, "require": { @@ -2941,7 +2944,7 @@ "description": "Defines an object-oriented layer for the HTTP specification", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-foundation/tree/v7.4.8" + "source": "https://github.com/symfony/http-foundation/tree/v7.4.13" }, "funding": [ { @@ -2961,20 +2964,20 @@ "type": "tidelift" } ], - "time": "2026-03-24T13:12:05+00:00" + "time": "2026-05-24T11:20:33+00:00" }, { "name": "symfony/http-kernel", - "version": "v7.4.12", + "version": "v7.4.13", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "7922b53e70d2ba2027af8bb6a59d91eb3541ea4d" + "reference": "9df847980c436451f4f51d1284491bb4356dd989" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/7922b53e70d2ba2027af8bb6a59d91eb3541ea4d", - "reference": "7922b53e70d2ba2027af8bb6a59d91eb3541ea4d", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/9df847980c436451f4f51d1284491bb4356dd989", + "reference": "9df847980c436451f4f51d1284491bb4356dd989", "shasum": "" }, "require": { @@ -3060,7 +3063,7 @@ "description": "Provides a structured process for converting a Request into a Response", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-kernel/tree/v7.4.12" + "source": "https://github.com/symfony/http-kernel/tree/v7.4.13" }, "funding": [ { @@ -3080,7 +3083,7 @@ "type": "tidelift" } ], - "time": "2026-05-20T09:27:11+00:00" + "time": "2026-05-27T08:31:43+00:00" }, { "name": "symfony/intl", @@ -3333,16 +3336,16 @@ }, { "name": "symfony/polyfill-intl-grapheme", - "version": "v1.37.0", + "version": "v1.38.1", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "4864388bfbd3001ce88e234fab652acd91fdc57e" + "reference": "e9247d281d694a5120554d9afaf54e070e88a603" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/4864388bfbd3001ce88e234fab652acd91fdc57e", - "reference": "4864388bfbd3001ce88e234fab652acd91fdc57e", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/e9247d281d694a5120554d9afaf54e070e88a603", + "reference": "e9247d281d694a5120554d9afaf54e070e88a603", "shasum": "" }, "require": { @@ -3391,7 +3394,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.37.0" + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.38.1" }, "funding": [ { @@ -3411,20 +3414,20 @@ "type": "tidelift" } ], - "time": "2026-04-26T13:13:48+00:00" + "time": "2026-05-26T05:58:03+00:00" }, { "name": "symfony/polyfill-intl-icu", - "version": "v1.37.0", + "version": "v1.38.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-icu.git", - "reference": "3510b63d07376b04e57e27e82607d468bb134f78" + "reference": "445c90e341fccda10311019cf82ff73bb7343945" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-icu/zipball/3510b63d07376b04e57e27e82607d468bb134f78", - "reference": "3510b63d07376b04e57e27e82607d468bb134f78", + "url": "https://api.github.com/repos/symfony/polyfill-intl-icu/zipball/445c90e341fccda10311019cf82ff73bb7343945", + "reference": "445c90e341fccda10311019cf82ff73bb7343945", "shasum": "" }, "require": { @@ -3479,7 +3482,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-icu/tree/v1.37.0" + "source": "https://github.com/symfony/polyfill-intl-icu/tree/v1.38.0" }, "funding": [ { @@ -3499,20 +3502,20 @@ "type": "tidelift" } ], - "time": "2026-04-10T16:50:15+00:00" + "time": "2026-05-25T11:52:53+00:00" }, { "name": "symfony/polyfill-intl-normalizer", - "version": "v1.37.0", + "version": "v1.38.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-normalizer.git", - "reference": "3833d7255cc303546435cb650316bff708a1c75c" + "reference": "2d446c214bdbe5b71bde5011b060a05fece3ae6b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/3833d7255cc303546435cb650316bff708a1c75c", - "reference": "3833d7255cc303546435cb650316bff708a1c75c", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/2d446c214bdbe5b71bde5011b060a05fece3ae6b", + "reference": "2d446c214bdbe5b71bde5011b060a05fece3ae6b", "shasum": "" }, "require": { @@ -3564,7 +3567,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.37.0" + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.38.0" }, "funding": [ { @@ -3584,20 +3587,20 @@ "type": "tidelift" } ], - "time": "2024-09-09T11:45:10+00:00" + "time": "2026-05-25T13:48:31+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.37.0", + "version": "v1.38.1", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "6a21eb99c6973357967f6ce3708cd55a6bec6315" + "reference": "14c5439eec4ccff081ac14eca2dc57feb2a66d92" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/6a21eb99c6973357967f6ce3708cd55a6bec6315", - "reference": "6a21eb99c6973357967f6ce3708cd55a6bec6315", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/14c5439eec4ccff081ac14eca2dc57feb2a66d92", + "reference": "14c5439eec4ccff081ac14eca2dc57feb2a66d92", "shasum": "" }, "require": { @@ -3649,7 +3652,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.37.0" + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.38.1" }, "funding": [ { @@ -3669,20 +3672,20 @@ "type": "tidelift" } ], - "time": "2026-04-10T17:25:58+00:00" + "time": "2026-05-26T12:51:13+00:00" }, { "name": "symfony/polyfill-php83", - "version": "v1.37.0", + "version": "v1.38.1", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php83.git", - "reference": "3600c2cb22399e25bb226e4a135ce91eeb2a6149" + "reference": "8339098cae28673c15cce00d80734af0453054e2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php83/zipball/3600c2cb22399e25bb226e4a135ce91eeb2a6149", - "reference": "3600c2cb22399e25bb226e4a135ce91eeb2a6149", + "url": "https://api.github.com/repos/symfony/polyfill-php83/zipball/8339098cae28673c15cce00d80734af0453054e2", + "reference": "8339098cae28673c15cce00d80734af0453054e2", "shasum": "" }, "require": { @@ -3729,7 +3732,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php83/tree/v1.37.0" + "source": "https://github.com/symfony/polyfill-php83/tree/v1.38.1" }, "funding": [ { @@ -3749,20 +3752,20 @@ "type": "tidelift" } ], - "time": "2026-04-10T17:25:58+00:00" + "time": "2026-05-26T12:51:13+00:00" }, { "name": "symfony/polyfill-php85", - "version": "v1.37.0", + "version": "v1.38.1", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php85.git", - "reference": "fcfa4973a9917cef23f2e38774da74a2b7d115ee" + "reference": "ba2ba04f3352cfa2dcbbcb90aee13ed967f505b1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php85/zipball/fcfa4973a9917cef23f2e38774da74a2b7d115ee", - "reference": "fcfa4973a9917cef23f2e38774da74a2b7d115ee", + "url": "https://api.github.com/repos/symfony/polyfill-php85/zipball/ba2ba04f3352cfa2dcbbcb90aee13ed967f505b1", + "reference": "ba2ba04f3352cfa2dcbbcb90aee13ed967f505b1", "shasum": "" }, "require": { @@ -3809,7 +3812,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php85/tree/v1.37.0" + "source": "https://github.com/symfony/polyfill-php85/tree/v1.38.1" }, "funding": [ { @@ -3829,20 +3832,20 @@ "type": "tidelift" } ], - "time": "2026-04-26T13:10:57+00:00" + "time": "2026-05-26T02:25:22+00:00" }, { "name": "symfony/routing", - "version": "v7.4.12", + "version": "v7.4.13", "source": { "type": "git", "url": "https://github.com/symfony/routing.git", - "reference": "3b04a5ec4887a8135a12ebf0f4cbc5b8fc8ee204" + "reference": "3a162171bb008e5e0f15dce6581373a4c0e8390d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/routing/zipball/3b04a5ec4887a8135a12ebf0f4cbc5b8fc8ee204", - "reference": "3b04a5ec4887a8135a12ebf0f4cbc5b8fc8ee204", + "url": "https://api.github.com/repos/symfony/routing/zipball/3a162171bb008e5e0f15dce6581373a4c0e8390d", + "reference": "3a162171bb008e5e0f15dce6581373a4c0e8390d", "shasum": "" }, "require": { @@ -3894,7 +3897,7 @@ "url" ], "support": { - "source": "https://github.com/symfony/routing/tree/v7.4.12" + "source": "https://github.com/symfony/routing/tree/v7.4.13" }, "funding": [ { @@ -3914,7 +3917,7 @@ "type": "tidelift" } ], - "time": "2026-05-20T07:20:23+00:00" + "time": "2026-05-24T11:20:33+00:00" }, { "name": "symfony/service-contracts", @@ -4005,16 +4008,16 @@ }, { "name": "symfony/string", - "version": "v7.4.11", + "version": "v7.4.13", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "965f7306a43383d02c6aca1e3f3bd2f0ea5dee15" + "reference": "961683010db3b27ec6ebcd7308e6e1ee8fa7ffde" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/965f7306a43383d02c6aca1e3f3bd2f0ea5dee15", - "reference": "965f7306a43383d02c6aca1e3f3bd2f0ea5dee15", + "url": "https://api.github.com/repos/symfony/string/zipball/961683010db3b27ec6ebcd7308e6e1ee8fa7ffde", + "reference": "961683010db3b27ec6ebcd7308e6e1ee8fa7ffde", "shasum": "" }, "require": { @@ -4072,7 +4075,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v7.4.11" + "source": "https://github.com/symfony/string/tree/v7.4.13" }, "funding": [ { @@ -4092,7 +4095,7 @@ "type": "tidelift" } ], - "time": "2026-05-13T12:04:42+00:00" + "time": "2026-05-23T15:23:29+00:00" }, { "name": "symfony/translation", @@ -4561,16 +4564,16 @@ }, { "name": "symfony/yaml", - "version": "v7.4.12", + "version": "v7.4.13", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "8b6952b56ca6417f25f7a65758cadd0ce02edc51" + "reference": "a7ec3b1156faf8815db7683ec7c1e7338e6f977c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/8b6952b56ca6417f25f7a65758cadd0ce02edc51", - "reference": "8b6952b56ca6417f25f7a65758cadd0ce02edc51", + "url": "https://api.github.com/repos/symfony/yaml/zipball/a7ec3b1156faf8815db7683ec7c1e7338e6f977c", + "reference": "a7ec3b1156faf8815db7683ec7c1e7338e6f977c", "shasum": "" }, "require": { @@ -4613,7 +4616,7 @@ "description": "Loads and dumps YAML files", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/yaml/tree/v7.4.12" + "source": "https://github.com/symfony/yaml/tree/v7.4.13" }, "funding": [ { @@ -4633,7 +4636,7 @@ "type": "tidelift" } ], - "time": "2026-05-20T07:20:23+00:00" + "time": "2026-05-25T06:06:12+00:00" }, { "name": "twig/intl-extra", @@ -4701,16 +4704,16 @@ }, { "name": "twig/twig", - "version": "v3.26.0", + "version": "v3.27.0", "source": { "type": "git", "url": "https://github.com/twigphp/Twig.git", - "reference": "1fcae487b180d78e6351f4e0afa91f9eab96a2bc" + "reference": "04ae1bfe9463c816cf72ca0abe7eae2c77a9a9ed" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/twigphp/Twig/zipball/1fcae487b180d78e6351f4e0afa91f9eab96a2bc", - "reference": "1fcae487b180d78e6351f4e0afa91f9eab96a2bc", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/04ae1bfe9463c816cf72ca0abe7eae2c77a9a9ed", + "reference": "04ae1bfe9463c816cf72ca0abe7eae2c77a9a9ed", "shasum": "" }, "require": { @@ -4765,7 +4768,7 @@ ], "support": { "issues": "https://github.com/twigphp/Twig/issues", - "source": "https://github.com/twigphp/Twig/tree/v3.26.0" + "source": "https://github.com/twigphp/Twig/tree/v3.27.0" }, "funding": [ { @@ -4777,7 +4780,7 @@ "type": "tidelift" } ], - "time": "2026-05-20T07:31:59+00:00" + "time": "2026-05-27T13:05:51+00:00" }, { "name": "webmozart/assert", @@ -5712,11 +5715,11 @@ }, { "name": "phpstan/phpstan", - "version": "2.1.55", + "version": "2.2.0", "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/9eaac3826ed5e9b8427350a43cac825eeca3f566", - "reference": "9eaac3826ed5e9b8427350a43cac825eeca3f566", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/b4cd98348c809924f62bb9cc8c047f5e73bc9a58", + "reference": "b4cd98348c809924f62bb9cc8c047f5e73bc9a58", "shasum": "" }, "require": { @@ -5739,6 +5742,17 @@ "license": [ "MIT" ], + "authors": [ + { + "name": "Ondřej Mirtes" + }, + { + "name": "Markus Staab" + }, + { + "name": "Vincent Langlet" + } + ], "description": "PHPStan - PHP Static Analysis Tool", "keywords": [ "dev", @@ -5761,7 +5775,7 @@ "type": "github" } ], - "time": "2026-05-18T11:57:34+00:00" + "time": "2026-05-28T08:22:43+00:00" }, { "name": "phpstan/phpstan-mockery", @@ -6215,16 +6229,16 @@ }, { "name": "phpunit/phpunit", - "version": "12.5.26", + "version": "12.5.28", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "e78c9ad74f73fd3642a23e65ace83746dc8df26d" + "reference": "5895d05f5bf421ed230fbd76e1277e4b8955def4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/e78c9ad74f73fd3642a23e65ace83746dc8df26d", - "reference": "e78c9ad74f73fd3642a23e65ace83746dc8df26d", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/5895d05f5bf421ed230fbd76e1277e4b8955def4", + "reference": "5895d05f5bf421ed230fbd76e1277e4b8955def4", "shasum": "" }, "require": { @@ -6246,7 +6260,7 @@ "sebastian/cli-parser": "^4.2.1", "sebastian/comparator": "^7.1.8", "sebastian/diff": "^7.0.0", - "sebastian/environment": "^8.1.1", + "sebastian/environment": "^8.1.2", "sebastian/exporter": "^7.0.3", "sebastian/global-state": "^8.0.2", "sebastian/object-enumerator": "^7.0.0", @@ -6293,7 +6307,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/12.5.26" + "source": "https://github.com/sebastianbergmann/phpunit/tree/12.5.28" }, "funding": [ { @@ -6301,7 +6315,7 @@ "type": "other" } ], - "time": "2026-05-21T12:36:53+00:00" + "time": "2026-05-27T14:01:10+00:00" }, { "name": "predis/predis", @@ -6654,23 +6668,23 @@ }, { "name": "sebastian/environment", - "version": "8.1.1", + "version": "8.1.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "334bc42a97ec6fc44c59001dc3467e0d739a20e9" + "reference": "9d32c685773823b1983e256ae4ecd48a10d6e439" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/334bc42a97ec6fc44c59001dc3467e0d739a20e9", - "reference": "334bc42a97ec6fc44c59001dc3467e0d739a20e9", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/9d32c685773823b1983e256ae4ecd48a10d6e439", + "reference": "9d32c685773823b1983e256ae4ecd48a10d6e439", "shasum": "" }, "require": { "php": ">=8.3" }, "require-dev": { - "phpunit/phpunit": "^12.5.25" + "phpunit/phpunit": "^12.5.26" }, "suggest": { "ext-posix": "*" @@ -6706,7 +6720,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/environment/issues", "security": "https://github.com/sebastianbergmann/environment/security/policy", - "source": "https://github.com/sebastianbergmann/environment/tree/8.1.1" + "source": "https://github.com/sebastianbergmann/environment/tree/8.1.2" }, "funding": [ { @@ -6726,7 +6740,7 @@ "type": "tidelift" } ], - "time": "2026-05-21T08:45:32+00:00" + "time": "2026-05-25T13:40:20+00:00" }, { "name": "sebastian/exporter", @@ -7616,16 +7630,16 @@ }, { "name": "symfony/polyfill-php84", - "version": "v1.37.0", + "version": "v1.38.1", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php84.git", - "reference": "88486db2c389b290bf87ff1de7ebc1e13e42bb06" + "reference": "f4e1dfaee5b74aba5964fe1fd4dfc7ba5e3085fa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php84/zipball/88486db2c389b290bf87ff1de7ebc1e13e42bb06", - "reference": "88486db2c389b290bf87ff1de7ebc1e13e42bb06", + "url": "https://api.github.com/repos/symfony/polyfill-php84/zipball/f4e1dfaee5b74aba5964fe1fd4dfc7ba5e3085fa", + "reference": "f4e1dfaee5b74aba5964fe1fd4dfc7ba5e3085fa", "shasum": "" }, "require": { @@ -7672,7 +7686,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php84/tree/v1.37.0" + "source": "https://github.com/symfony/polyfill-php84/tree/v1.38.1" }, "funding": [ { @@ -7692,7 +7706,7 @@ "type": "tidelift" } ], - "time": "2026-04-10T18:47:49+00:00" + "time": "2026-05-26T12:51:13+00:00" }, { "name": "symfony/property-access", From a23bdc8568b8f9ad4243fb4aac71ccd13196157e Mon Sep 17 00:00:00 2001 From: Ethan Setnik Date: Fri, 29 May 2026 05:17:03 -0400 Subject: [PATCH 03/39] HTTP: have getServerHTTPS() honor https baseurlpath when $_SERVER['HTTPS'] is absent (#2638) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * HTTP: have getServerHTTPS() honor https baseurlpath when $_SERVER['HTTPS'] is absent When SimpleSAMLphp is invoked from an external script (e.g. via \SimpleSAML\Auth\Simple from a host application's controller) behind a TLS-terminating upstream proxy, $_SERVER['HTTPS'] is absent in PHP -- nginx's stock fastcgi_params ships `fastcgi_param HTTPS $https if_not_empty;`, and $https is empty when nginx itself receives a plain HTTP connection from the upstream proxy. In that topology getServerHTTPS() returns false for what is actually an HTTPS request, which cascades through five callers -- most visibly via Session::getSessionFromRequest() throwing CriticalConfigurationError ('Setting secure cookie on plain HTTP') from the secure-cookie check. The maintainer-prescribed workaround for reverse-proxy deployments (see PRs simplesamlphp/simplesamlphp#795, #376, #324, #491) is to set baseurlpath to a full URL. That works for Utils\HTTP::getBaseURL()'s full-URL branch but is silently ignored by getServerHTTPS() and its four downstream callers. This change has getServerHTTPS() consult the admin-set baseurlpath as a secondary signal -- but only when: (a) $_SERVER['HTTPS'] is COMPLETELY ABSENT (preserves explicit 'off') (b) baseurlpath is a full https:// URL (c) baseurlpath's host exactly matches the current request's host (case-insensitive) No client-controlled header (X-Forwarded-Proto etc.) is read at any point -- consistent with the maintainer position taken in PRs #795, #376, #324, and #491. Adds 8 PHPUnit tests covering: the bug demonstration, the host-match guard, the HTTPS=on short-circuit, explicit HTTPS=off preservation, case-insensitive host comparison, host-with-port in the request, relative-path baseurlpath rejection, and http:// baseurlpath rejection. Verified against upstream master: 880 -> 888 tests, 0 regressions. * tests: fix PSR-12 spacing (2 blank lines after methods) PHPCS reported 8 violations from PR #2638 — 7x 'Expected 2 blank lines after method, found 1' and 1x 'closing brace for the class must go on the next line after the body'. Auto-fixed by phpcbf. No behavioral change; all 888 unit tests still pass. * HTTP: drop defensive try/catch around Configuration::getInstance() `getBaseURL()` (same file) calls `Configuration::getInstance()` without a try/catch; the new `getServerHTTPS()` fallback should follow the same pattern for consistency. The catch's `return false` was untested (would require Configuration to throw, which it doesn't in normal operation) — codecov flagged it as the 1 line of missing patch coverage on PR #2638. * HTTP: add debug logging to getServerHTTPS() baseurlpath fallback Per review feedback (@thijskh): when $_SERVER['HTTPS'] is absent and getServerHTTPS() falls back to the baseurlpath check, log a debug-level line explaining which variable drove the HTTPS-or-not conclusion, so deployers who don't get the URL they expect can diagnose it. Three distinct debug lines cover the three fallback outcomes: - baseurlpath host matches current host -> treated as HTTPS - baseurlpath host does NOT match -> not HTTPS (names both hosts) - baseurlpath is not a full https:// URL -> not HTTPS, with a hint to set baseurlpath/application.baseURL for upstream-TLS-terminating deployments Logging is confined to the new fallback branch; the pre-existing $_SERVER['HTTPS'] cases are unchanged and unlogged to avoid noise on the common path. All three lines are exercised by existing tests. --- src/SimpleSAML/Utils/HTTP.php | 67 +++++- tests/src/SimpleSAML/Utils/HTTPTest.php | 269 ++++++++++++++++++++++++ 2 files changed, 329 insertions(+), 7 deletions(-) diff --git a/src/SimpleSAML/Utils/HTTP.php b/src/SimpleSAML/Utils/HTTP.php index 6627279879..40626766bd 100644 --- a/src/SimpleSAML/Utils/HTTP.php +++ b/src/SimpleSAML/Utils/HTTP.php @@ -178,18 +178,71 @@ private function getServerHost(): string */ public function getServerHTTPS(): bool { - if (!array_key_exists('HTTPS', $_SERVER)) { - // not an https-request - return false; + // When $_SERVER['HTTPS'] is set — by a web server that terminates + // TLS itself — it is the authoritative signal. Preserve the + // existing three-case interpretation exactly, so an admin's + // explicit 'off' (IIS convention) still wins. + if (array_key_exists('HTTPS', $_SERVER)) { + if ($_SERVER['HTTPS'] === 'off') { + return false; + } + return !empty($_SERVER['HTTPS']); } - if ($_SERVER['HTTPS'] === 'off') { - // IIS with HTTPS off + // $_SERVER['HTTPS'] is COMPLETELY ABSENT. This is the typical + // php-fpm case behind a TLS-terminating reverse proxy: nginx's + // stock fastcgi_params line `fastcgi_param HTTPS $https + // if_not_empty;` only sends the param when $https itself is + // non-empty, which only happens when nginx terminates TLS. + // + // Fall back to the admin-set baseurlpath. We trust it only when: + // (a) it is a full URL starting with https://, AND + // (b) its host exactly matches the current request's host. + // + // (a) restricts to deployments where the admin has explicitly + // declared an HTTPS deployment scheme (the maintainer-prescribed + // form for reverse-proxy setups, e.g. as in + // github.com/simplesamlphp/simplesamlphp/pull/795). + // + // (b) prevents a multi-host SimpleSAMLphp installation from + // over-promoting unrelated requests to HTTPS just because some + // virtual host the library knows about is configured for HTTPS. + // + // No client-controlled header is read at any point. + $cfg = Configuration::getInstance(); + $baseURL = $cfg->getOptionalString('baseurlpath', null); + if ( + $baseURL !== null + && preg_match('#^https://([^/:]+)(?::([0-9]+))?#', $baseURL, $matches) + ) { + $configuredHost = strtolower($matches[1]); + $currentHost = strtolower($this->getServerHost()); + if ($configuredHost === $currentHost) { + Logger::debug( + "getServerHTTPS(): no \$_SERVER['HTTPS']; treating the request as HTTPS " + . "because the 'baseurlpath' host '" . $configuredHost + . "' matches the current host.", + ); + + return true; + } + + Logger::debug( + "getServerHTTPS(): no \$_SERVER['HTTPS']; not treating the request as HTTPS " + . "because the 'baseurlpath' host '" . $configuredHost + . "' does not match the current host '" . $currentHost . "'.", + ); + return false; } - // otherwise, HTTPS will be non-empty - return !empty($_SERVER['HTTPS']); + Logger::debug( + "getServerHTTPS(): no \$_SERVER['HTTPS'] and 'baseurlpath' is not a full https:// " + . "URL, so the request is not treated as HTTPS. If TLS is terminated at an upstream " + . "proxy, set 'baseurlpath' (or 'application.baseURL') to your full https:// URL.", + ); + + return false; } diff --git a/tests/src/SimpleSAML/Utils/HTTPTest.php b/tests/src/SimpleSAML/Utils/HTTPTest.php index 4afb357be7..1520ace66a 100644 --- a/tests/src/SimpleSAML/Utils/HTTPTest.php +++ b/tests/src/SimpleSAML/Utils/HTTPTest.php @@ -808,4 +808,273 @@ public function testGetSelfURLWithRewrittenCasLogin(): void $_SERVER = $originalServer; } + + + /** + * Reproducer guard: when SimpleSAMLphp is invoked from an external + * script (script outside its own public/ directory) behind a + * TLS-terminating reverse proxy that does not set $_SERVER['HTTPS'], + * getServerHTTPS() must honor an https:// baseurlpath whose host + * matches the current request's host. Without this, isHTTPS() + * returns false and setting a secure cookie raises + * CriticalConfigurationError ("Setting secure cookie on plain HTTP"). + */ + public function testGetServerHTTPSHonorsHttpsBaseurlpathBehindProxy(): void + { + $original = $_SERVER; + $httpUtils = new Utils\HTTP(); + + Configuration::loadFromArray([ + 'baseurlpath' => 'https://app.example.test/simplesaml/', + ], '[ARRAY]', 'simplesaml'); + + $_SERVER = [ + 'HTTP_HOST' => 'app.example.test', + 'HTTP_X_FORWARDED_PROTO' => 'https', + 'REQUEST_URI' => '/app/sp.php?foo=bar', + 'SCRIPT_FILENAME' => '/var/www/app/sp.php', + 'SERVER_PORT' => '80', + ]; + + $this->assertTrue( + $httpUtils->getServerHTTPS(), + 'getServerHTTPS() must return true when baseurlpath declares https for the current host, ' + . 'even when $_SERVER[HTTPS] is empty (TLS-terminating-proxy topology).', + ); + $this->assertTrue( + $httpUtils->isHTTPS(), + 'isHTTPS() must return true in the same topology, otherwise secure-cookie setup fails.', + ); + $this->assertStringStartsWith( + 'https://', + $httpUtils->getSelfURL(), + 'getSelfURL() must return an https:// URL when baseurlpath declares https for the current host.', + ); + + $_SERVER = $original; + } + + + /** + * Companion guard: when baseurlpath declares https for a DIFFERENT + * host than the current request, the host-match guard must prevent + * the new fallback from triggering — getServerHTTPS() must fall + * through to the original $_SERVER-based detection (which here + * yields false because $_SERVER['HTTPS'] is unset). + */ + public function testGetServerHTTPSBaseurlpathHostMismatchDoesNotForceHTTPS(): void + { + $original = $_SERVER; + $httpUtils = new Utils\HTTP(); + + Configuration::loadFromArray([ + 'baseurlpath' => 'https://different-host.example.test/simplesaml/', + ], '[ARRAY]', 'simplesaml'); + + $_SERVER = [ + 'HTTP_HOST' => 'app.example.test', + 'REQUEST_URI' => '/app/sp.php', + 'SCRIPT_FILENAME' => '/var/www/app/sp.php', + 'SERVER_PORT' => '80', + ]; + + $this->assertFalse( + $httpUtils->getServerHTTPS(), + 'getServerHTTPS() must NOT be coerced to true when baseurlpath declares https for a different host.', + ); + + $_SERVER = $original; + } + + + /** + * Branch A regression guard: when $_SERVER['HTTPS'] is set to 'on', + * the existing short-circuit must continue to return true regardless + * of any baseurlpath configuration. This guards against a future + * refactor that accidentally reorders the checks. + */ + public function testGetServerHTTPSReturnsTrueWhenHttpsEnvIsSet(): void + { + $original = $_SERVER; + $httpUtils = new Utils\HTTP(); + + // No baseurlpath at all; HTTPS=on must still be honoured. + Configuration::loadFromArray([], '[ARRAY]', 'simplesaml'); + + $_SERVER = [ + 'HTTPS' => 'on', + 'HTTP_HOST' => 'app.example.test', + 'REQUEST_URI' => '/', + 'SCRIPT_FILENAME' => '/var/www/app/sp.php', + 'SERVER_PORT' => '443', + ]; + $this->assertTrue($httpUtils->getServerHTTPS()); + + // HTTPS=on with a totally unrelated baseurlpath also stays true. + Configuration::loadFromArray([ + 'baseurlpath' => 'http://different-host.example.test/simplesaml/', + ], '[ARRAY]', 'simplesaml'); + $this->assertTrue( + $httpUtils->getServerHTTPS(), + 'HTTPS=on env must win over a conflicting (http) baseurlpath.', + ); + + $_SERVER = $original; + } + + + /** + * Critical preservation guard: an admin's explicit $_SERVER['HTTPS'] + * = 'off' (IIS convention for "no HTTPS for this request") must + * still return false, even when baseurlpath declares https for the + * matching host. The fallback only applies when HTTPS is absent + * from $_SERVER, not when it is explicitly off. + */ + public function testGetServerHTTPSRespectsExplicitHttpsOff(): void + { + $original = $_SERVER; + $httpUtils = new Utils\HTTP(); + + Configuration::loadFromArray([ + 'baseurlpath' => 'https://app.example.test/simplesaml/', + ], '[ARRAY]', 'simplesaml'); + + $_SERVER = [ + 'HTTPS' => 'off', + 'HTTP_HOST' => 'app.example.test', + 'REQUEST_URI' => '/', + 'SCRIPT_FILENAME' => '/var/www/app/sp.php', + 'SERVER_PORT' => '80', + ]; + + $this->assertFalse( + $httpUtils->getServerHTTPS(), + 'Explicit $_SERVER[HTTPS]=off must not be silently overridden by an https baseurlpath.', + ); + + $_SERVER = $original; + } + + + /** + * Host comparison must be case-insensitive (DNS hostnames are + * case-insensitive). Without this, an admin who writes baseurlpath + * with capital letters would see the fallback silently fail. + */ + public function testGetServerHTTPSCaseInsensitiveHostMatch(): void + { + $original = $_SERVER; + $httpUtils = new Utils\HTTP(); + + Configuration::loadFromArray([ + 'baseurlpath' => 'https://APP.Example.Test/simplesaml/', + ], '[ARRAY]', 'simplesaml'); + + $_SERVER = [ + 'HTTP_HOST' => 'app.example.test', + 'REQUEST_URI' => '/', + 'SCRIPT_FILENAME' => '/var/www/app/sp.php', + 'SERVER_PORT' => '80', + ]; + + $this->assertTrue( + $httpUtils->getServerHTTPS(), + 'Host comparison must be case-insensitive.', + ); + + $_SERVER = $original; + } + + + /** + * When the current request's HTTP_HOST includes a port (because + * the public listener uses a non-standard port and the proxy + * preserved the Host header), getServerHost() strips the port; the + * fallback host match should still succeed when baseurlpath + * declares the same host without a port. + */ + public function testGetServerHTTPSHostWithPortInRequest(): void + { + $original = $_SERVER; + $httpUtils = new Utils\HTTP(); + + Configuration::loadFromArray([ + 'baseurlpath' => 'https://app.example.test/simplesaml/', + ], '[ARRAY]', 'simplesaml'); + + $_SERVER = [ + 'HTTP_HOST' => 'app.example.test:8443', + 'REQUEST_URI' => '/', + 'SCRIPT_FILENAME' => '/var/www/app/sp.php', + 'SERVER_PORT' => '8443', + ]; + + $this->assertTrue( + $httpUtils->getServerHTTPS(), + 'Host with port in HTTP_HOST must still match baseurlpath without port (port stripped by getServerHost()).', + ); + + $_SERVER = $original; + } + + + /** + * A relative-path baseurlpath (the default `simplesaml/`, or any + * value not starting with https://) must NOT trigger the fallback. + * This guards against a future regex loosening that could + * false-positive on relative paths. + */ + public function testGetServerHTTPSIgnoresRelativeBaseurlpath(): void + { + $original = $_SERVER; + $httpUtils = new Utils\HTTP(); + + Configuration::loadFromArray([ + 'baseurlpath' => 'simplesaml/', + ], '[ARRAY]', 'simplesaml'); + + $_SERVER = [ + 'HTTP_HOST' => 'app.example.test', + 'REQUEST_URI' => '/', + 'SCRIPT_FILENAME' => '/var/www/app/sp.php', + 'SERVER_PORT' => '80', + ]; + + $this->assertFalse( + $httpUtils->getServerHTTPS(), + 'Relative-path baseurlpath must not trigger the HTTPS fallback.', + ); + + $_SERVER = $original; + } + + + /** + * An http:// (not https://) baseurlpath must NOT trigger the + * fallback. The fallback only honours an explicit https + * declaration, never an http one. + */ + public function testGetServerHTTPSIgnoresHttpBaseurlpath(): void + { + $original = $_SERVER; + $httpUtils = new Utils\HTTP(); + + Configuration::loadFromArray([ + 'baseurlpath' => 'http://app.example.test/simplesaml/', + ], '[ARRAY]', 'simplesaml'); + + $_SERVER = [ + 'HTTP_HOST' => 'app.example.test', + 'REQUEST_URI' => '/', + 'SCRIPT_FILENAME' => '/var/www/app/sp.php', + 'SERVER_PORT' => '80', + ]; + + $this->assertFalse( + $httpUtils->getServerHTTPS(), + 'An http:// baseurlpath must not be coerced into HTTPS by the fallback.', + ); + + $_SERVER = $original; + } } From 3e1524e3c077a112c74ac064eb1ef96cc28c0cc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Ivan=C4=8Di=C4=87?= Date: Sun, 31 May 2026 15:41:55 +0200 Subject: [PATCH 04/39] Fix version in extra/simplesamlphp.spec --- extra/simplesamlphp.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extra/simplesamlphp.spec b/extra/simplesamlphp.spec index 8469a2100d..2eea97ef29 100644 --- a/extra/simplesamlphp.spec +++ b/extra/simplesamlphp.spec @@ -1,6 +1,6 @@ %define name simplesamlphp %define summary SAML IDP/SP written in PHP -%define version 2.6.0 +%define version 2.3.0 %define release 1 %define license LGPL 2.1 %define group Networking/WWW From f9e5894fa02bc6c1767ed1767cb4dc2251ef4bbe Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Sun, 31 May 2026 20:45:08 +0200 Subject: [PATCH 05/39] Bump assets --- composer.json | 2 +- composer.lock | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/composer.json b/composer.json index ea7bbaea49..c94250953a 100644 --- a/composer.json +++ b/composer.json @@ -74,7 +74,7 @@ "simplesamlphp/composer-module-installer": "~1.7", "simplesamlphp/saml2": "~6.1", "simplesamlphp/saml2-legacy": "~4.20", - "simplesamlphp/simplesamlphp-assets-base": "~2.5.0", + "simplesamlphp/simplesamlphp-assets-base": "~2.6.0", "simplesamlphp/xml-common": "~2.7", "simplesamlphp/xml-security": "~2.3", "symfony/cache": "~7.4", diff --git a/composer.lock b/composer.lock index ec19d02287..7f4a220f74 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "19685047f8d77d650ae24856be1eed42", + "content-hash": "9c17fce76aff944946dc8ce5d5dba4c3", "packages": [ { "name": "gettext/gettext", @@ -1351,16 +1351,16 @@ }, { "name": "simplesamlphp/simplesamlphp-assets-base", - "version": "v2.5.15", + "version": "v2.6.0", "source": { "type": "git", "url": "https://github.com/simplesamlphp/simplesamlphp-assets-base.git", - "reference": "6c65cfe90415e2922a9a2ace2bbb72761525fa35" + "reference": "32fccb412c3aa1789314d7e6f50bdcaa8ee427b5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/simplesamlphp/simplesamlphp-assets-base/zipball/6c65cfe90415e2922a9a2ace2bbb72761525fa35", - "reference": "6c65cfe90415e2922a9a2ace2bbb72761525fa35", + "url": "https://api.github.com/repos/simplesamlphp/simplesamlphp-assets-base/zipball/32fccb412c3aa1789314d7e6f50bdcaa8ee427b5", + "reference": "32fccb412c3aa1789314d7e6f50bdcaa8ee427b5", "shasum": "" }, "require": { @@ -1381,9 +1381,9 @@ "description": "Assets for the SimpleSAMLphp main repository", "support": { "issues": "https://github.com/simplesamlphp/simplesamlphp-assets-base/issues", - "source": "https://github.com/simplesamlphp/simplesamlphp-assets-base/tree/v2.5.15" + "source": "https://github.com/simplesamlphp/simplesamlphp-assets-base/tree/v2.6.0" }, - "time": "2026-05-31T03:32:51+00:00" + "time": "2026-05-31T18:18:53+00:00" }, { "name": "simplesamlphp/xml-common", From 5c65c80cf8ff330061bb62ae6dcc1a51b68f4735 Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Sun, 31 May 2026 20:45:53 +0200 Subject: [PATCH 06/39] Bump assets --- composer.json | 2 +- composer.lock | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/composer.json b/composer.json index ea7bbaea49..c94250953a 100644 --- a/composer.json +++ b/composer.json @@ -74,7 +74,7 @@ "simplesamlphp/composer-module-installer": "~1.7", "simplesamlphp/saml2": "~6.1", "simplesamlphp/saml2-legacy": "~4.20", - "simplesamlphp/simplesamlphp-assets-base": "~2.5.0", + "simplesamlphp/simplesamlphp-assets-base": "~2.6.0", "simplesamlphp/xml-common": "~2.7", "simplesamlphp/xml-security": "~2.3", "symfony/cache": "~7.4", diff --git a/composer.lock b/composer.lock index ec19d02287..7f4a220f74 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "19685047f8d77d650ae24856be1eed42", + "content-hash": "9c17fce76aff944946dc8ce5d5dba4c3", "packages": [ { "name": "gettext/gettext", @@ -1351,16 +1351,16 @@ }, { "name": "simplesamlphp/simplesamlphp-assets-base", - "version": "v2.5.15", + "version": "v2.6.0", "source": { "type": "git", "url": "https://github.com/simplesamlphp/simplesamlphp-assets-base.git", - "reference": "6c65cfe90415e2922a9a2ace2bbb72761525fa35" + "reference": "32fccb412c3aa1789314d7e6f50bdcaa8ee427b5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/simplesamlphp/simplesamlphp-assets-base/zipball/6c65cfe90415e2922a9a2ace2bbb72761525fa35", - "reference": "6c65cfe90415e2922a9a2ace2bbb72761525fa35", + "url": "https://api.github.com/repos/simplesamlphp/simplesamlphp-assets-base/zipball/32fccb412c3aa1789314d7e6f50bdcaa8ee427b5", + "reference": "32fccb412c3aa1789314d7e6f50bdcaa8ee427b5", "shasum": "" }, "require": { @@ -1381,9 +1381,9 @@ "description": "Assets for the SimpleSAMLphp main repository", "support": { "issues": "https://github.com/simplesamlphp/simplesamlphp-assets-base/issues", - "source": "https://github.com/simplesamlphp/simplesamlphp-assets-base/tree/v2.5.15" + "source": "https://github.com/simplesamlphp/simplesamlphp-assets-base/tree/v2.6.0" }, - "time": "2026-05-31T03:32:51+00:00" + "time": "2026-05-31T18:18:53+00:00" }, { "name": "simplesamlphp/xml-common", From 75e939df029fcbe1dd965adbedc42f405cf15063 Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Tue, 2 Jun 2026 22:16:25 +0200 Subject: [PATCH 07/39] Revert "Set version number during the build of the tarballs" This reverts commit 41419fe0c8f0dd8e8bd238a2d0d878f7ba710930. --- .github/workflows/build-release.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 4273c63be3..204ee63658 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -46,12 +46,6 @@ jobs: - name: Validate composer.json and composer.lock run: composer validate - # This has to happen before installing the modules - - name: Set version number - run: | - composer config version "$TAG" - composer update --lock - - name: Install Composer dependencies run: composer install --no-progress --no-dev --prefer-dist --optimize-autoloader From 044378696abddd368accebd0f1f082abf74bb8d3 Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Tue, 2 Jun 2026 22:16:54 +0200 Subject: [PATCH 08/39] evert "Set version number during the build of the tarballs" This reverts commit 41419fe0c8f0dd8e8bd238a2d0d878f7ba710930. --- .github/workflows/build-release.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 4273c63be3..204ee63658 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -46,12 +46,6 @@ jobs: - name: Validate composer.json and composer.lock run: composer validate - # This has to happen before installing the modules - - name: Set version number - run: | - composer config version "$TAG" - composer update --lock - - name: Install Composer dependencies run: composer install --no-progress --no-dev --prefer-dist --optimize-autoloader From b8a6c0216a04b8ee1a1dd8c1460ad79659647bbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Ivan=C4=8Di=C4=87?= Date: Mon, 15 Jun 2026 15:56:21 +0200 Subject: [PATCH 09/39] Update version --- composer.json | 2 +- extra/simplesamlphp.spec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 8f25a00557..b6d89eb243 100644 --- a/composer.json +++ b/composer.json @@ -156,5 +156,5 @@ "echo 'Post-install tasks completed!'" ] }, - "version": "v2.6.0" + "version": "v3.0.0" } diff --git a/extra/simplesamlphp.spec b/extra/simplesamlphp.spec index 2eea97ef29..b04d33a3bf 100644 --- a/extra/simplesamlphp.spec +++ b/extra/simplesamlphp.spec @@ -1,6 +1,6 @@ %define name simplesamlphp %define summary SAML IDP/SP written in PHP -%define version 2.3.0 +%define version 3.0.0 %define release 1 %define license LGPL 2.1 %define group Networking/WWW From cfe871c466be4ccb8914dacf1818283fd31bf71e Mon Sep 17 00:00:00 2001 From: Marko Ivancic Date: Wed, 17 Jun 2026 07:32:24 +0200 Subject: [PATCH 10/39] Move to global Kernel (#2630) * Initial implementation * Update slash redirects * Add not found custo exception handler * Fix test * Lint * Add pre-commit script * Fix phpstan * Move to global Kernel when clearing cache * Remove Kernel module argument * Update docs * Add docs note about publishin assets * Fix unordered list to use the proper character * Redirect legacy admin index and admin shortcut * Move public entry points to ObsoleteRouteController * Fix yaml indentation * Terminate kernel after sending the response * Make sure assets in primary modules are in gitignore * Lint * Do composer update * Remove fileinfo requirement * coposer update * Remove redundant Symfony services * Move to exception listener * Move to SecurityHeadersSubscriber * Simplify service definitions * Lint docs * Add unit test coverage * composer update * Support legacy module.php routes in transition period * Add twig example for custom error page * Add note about getModuleUrl and getModuleAssetUrl usage * Note how to list kernel.exception events --------- Co-authored-by: Tim van Dijen --- .gitignore | 10 + bin/console | 7 +- composer.json | 9 +- composer.lock | 268 +++++++++++------ config/config.php.dist | 4 +- docs/simplesamlphp-artifact-idp.md | 4 +- docs/simplesamlphp-developer-information.md | 34 ++- docs/simplesamlphp-ecp-idp.md | 4 +- docs/simplesamlphp-errorhandling.md | 147 ++++++++- docs/simplesamlphp-googleapps.md | 2 +- docs/simplesamlphp-hok-idp.md | 8 +- docs/simplesamlphp-idp-more.md | 4 +- docs/simplesamlphp-idp.md | 14 +- docs/simplesamlphp-install.md | 62 +++- docs/simplesamlphp-modules.md | 29 +- docs/simplesamlphp-reference-idp-hosted.md | 12 +- docs/simplesamlphp-sp-api.md | 4 +- docs/simplesamlphp-sp.md | 6 +- docs/simplesamlphp-testing-install.md | 4 +- docs/simplesamlphp-theming.md | 6 +- docs/simplesamlphp-upgrade-notes-3.0.md | 168 +++++++++++ docs/simplesamlphp-upgrade-notes.md | 1 + modules/core/routing/routes/routes.yml | 2 +- modules/saml/routing/routes/routes.yml | 2 +- public/.htaccess | 21 ++ public/admin/index.php | 22 -- public/assets/admin/css/admin.css | 65 ++++ public/assets/admin/js/metadata-converter.js | 5 + public/assets/core/js/loginuserpass.js | 17 ++ public/assets/cron/css/cron.css | 4 + public/assets/debugsp/css/splogintest.css | 1 + public/assets/exampleauth/css/default.css | 23 ++ public/index.php | 15 +- public/module.php | 24 -- .../saml2/idp/ArtifactResolutionService.php | 30 -- public/saml2/idp/SSOService.php | 30 -- public/saml2/idp/SingleLogoutService.php | 30 -- public/saml2/idp/initSLO.php | 30 -- public/saml2/idp/metadata.php | 30 -- routing/routes/routes.yml | 73 +++-- routing/services/console.yml | 6 +- routing/services/routing.yml | 76 ----- routing/services/services.yml | 35 --- routing/services/simplesamlphp.yml | 18 +- routing/services/web.yml | 25 -- src/SimpleSAML/Asset/ModuleAssetPublisher.php | 58 ++++ .../Command/AssetsPublishCommand.php | 41 +++ .../Command/SspCacheClearCommand.php | 283 ++++++++---------- src/SimpleSAML/Console/Application.php | 6 - .../Controller/FrontpageController.php | 23 ++ .../Controller/ObsoleteRouteController.php | 21 ++ src/SimpleSAML/Error/Error.php | 65 ++-- src/SimpleSAML/Error/ExceptionHandler.php | 51 ++-- .../EventSubscriber/ExceptionSubscriber.php | 45 +++ .../SecurityHeadersSubscriber.php | 52 ++++ src/SimpleSAML/Kernel.php | 109 ++++--- .../Metadata/MetaDataStorageHandler.php | 4 +- src/SimpleSAML/Module.php | 235 ++------------- src/SimpleSAML/Utils/EMail.php | 2 +- src/SimpleSAML/Utils/HTTP.php | 130 ++++---- src/SimpleSAML/XHTML/Template.php | 7 +- .../modules/cron/src/Controller/CronTest.php | 14 +- tests/modules/saml/src/Auth/Source/SPTest.php | 4 +- tests/modules/saml/src/IdP/SAML2Test.php | 24 +- .../Asset/ModuleAssetPublisherTest.php | 41 +++ .../SimpleSAML/Asset/ModuleGitignoreTest.php | 48 +++ .../Command/AssetsPublishCommandTest.php | 94 ++++++ .../Controller/FrontpageControllerTest.php | 78 +++++ .../ObsoleteRouteControllerTest.php | 37 +++ .../ExceptionSubscriberTest.php | 115 +++++++ .../SecurityHeadersSubscriberTest.php | 89 ++++++ tests/src/SimpleSAML/KernelTest.php | 67 +++++ tests/src/SimpleSAML/ModuleTest.php | 25 +- tests/src/SimpleSAML/Utils/HTTPTest.php | 105 ++++--- tests/src/SimpleSAML/XHTML/TemplateTest.php | 2 +- tests/www/IndexTest.php | 44 ++- 76 files changed, 2163 insertions(+), 1147 deletions(-) create mode 100644 docs/simplesamlphp-upgrade-notes-3.0.md create mode 100644 public/.htaccess delete mode 100644 public/admin/index.php create mode 100644 public/assets/admin/css/admin.css create mode 100644 public/assets/admin/js/metadata-converter.js create mode 100644 public/assets/core/js/loginuserpass.js create mode 100644 public/assets/cron/css/cron.css create mode 100644 public/assets/debugsp/css/splogintest.css create mode 100644 public/assets/exampleauth/css/default.css delete mode 100644 public/module.php delete mode 100644 public/saml2/idp/ArtifactResolutionService.php delete mode 100644 public/saml2/idp/SSOService.php delete mode 100644 public/saml2/idp/SingleLogoutService.php delete mode 100644 public/saml2/idp/initSLO.php delete mode 100644 public/saml2/idp/metadata.php delete mode 100644 routing/services/routing.yml delete mode 100644 routing/services/services.yml delete mode 100644 routing/services/web.yml create mode 100644 src/SimpleSAML/Asset/ModuleAssetPublisher.php create mode 100644 src/SimpleSAML/Command/AssetsPublishCommand.php create mode 100644 src/SimpleSAML/Controller/FrontpageController.php create mode 100644 src/SimpleSAML/Controller/ObsoleteRouteController.php create mode 100644 src/SimpleSAML/EventSubscriber/ExceptionSubscriber.php create mode 100644 src/SimpleSAML/EventSubscriber/SecurityHeadersSubscriber.php create mode 100644 tests/src/SimpleSAML/Asset/ModuleAssetPublisherTest.php create mode 100644 tests/src/SimpleSAML/Asset/ModuleGitignoreTest.php create mode 100644 tests/src/SimpleSAML/Command/AssetsPublishCommandTest.php create mode 100644 tests/src/SimpleSAML/Controller/FrontpageControllerTest.php create mode 100644 tests/src/SimpleSAML/Controller/ObsoleteRouteControllerTest.php create mode 100644 tests/src/SimpleSAML/EventSubscriber/ExceptionSubscriberTest.php create mode 100644 tests/src/SimpleSAML/EventSubscriber/SecurityHeadersSubscriberTest.php create mode 100644 tests/src/SimpleSAML/KernelTest.php diff --git a/.gitignore b/.gitignore index 7264898ed0..a0f01b031b 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,16 @@ metadata/* !/public/assets/.gitkeep /public/assets/* .phplint.cache/ +!/public/assets/admin/ +!/public/assets/core/ +!/public/assets/cron/ +!/public/assets/debugsp/ +!/public/assets/exampleauth/ +!/public/assets/admin/** +!/public/assets/core/** +!/public/assets/cron/** +!/public/assets/debugsp/** +!/public/assets/exampleauth/** .phpunit.cache/ .phpunit.result.cache phpunit.xml.bak diff --git a/bin/console b/bin/console index 74816335eb..e7224a24b7 100755 --- a/bin/console +++ b/bin/console @@ -5,16 +5,13 @@ declare(strict_types=1); use SimpleSAML\Console\Application; use SimpleSAML\Kernel; -use Symfony\Component\Console\Input\ArgvInput; umask(000); set_time_limit(0); require __DIR__.'/../vendor/autoload.php'; -$input = new ArgvInput(); -$module = $input->getParameterOption(['--module', '-m'], 'core'); -$kernel = new Kernel($module); +$kernel = new Kernel(); $application = new Application($kernel); -$application->run($input); +$application->run(); diff --git a/composer.json b/composer.json index b6d89eb243..793b0e75cc 100644 --- a/composer.json +++ b/composer.json @@ -49,7 +49,6 @@ "php": "^8.3", "ext-date": "*", "ext-dom": "*", - "ext-fileinfo": "*", "ext-filter": "*", "ext-hash": "*", "ext-json": "*", @@ -143,6 +142,7 @@ } }, "scripts": { + "assets:publish": "./bin/console assets:publish", "translations:unused": "./bin/translations translations:unused", "translations:update:translatable": "./bin/translations translations:update:translatable", "clear-symfony-cache": [ @@ -154,6 +154,13 @@ ], "post-install-cmd": [ "echo 'Post-install tasks completed!'" + ], + "pre-commit": [ + "vendor/bin/phpcbf -pn", + "vendor/bin/phpcs -p", + "vendor/bin/phpstan analyze -c phpstan.neon --memory-limit=1024M", + "vendor/bin/phpstan analyze -c phpstan-dev.neon --memory-limit=1024M", + "vendor/bin/phpunit" ] }, "version": "v3.0.0" diff --git a/composer.lock b/composer.lock index 7f4a220f74..2a541b83c1 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "9c17fce76aff944946dc8ce5d5dba4c3", + "content-hash": "e5e668d25a63f275921b75715877a7c2", "packages": [ { "name": "gettext/gettext", @@ -290,23 +290,25 @@ }, { "name": "guzzlehttp/psr7", - "version": "2.10.4", + "version": "2.11.0", "source": { "type": "git", "url": "https://github.com/guzzle/psr7.git", - "reference": "d2a1a094e396da8957e797489fddaf860c340cfc" + "reference": "bbb5e61349fa5cb822b3e87842b951088b76b81f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/d2a1a094e396da8957e797489fddaf860c340cfc", - "reference": "d2a1a094e396da8957e797489fddaf860c340cfc", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/bbb5e61349fa5cb822b3e87842b951088b76b81f", + "reference": "bbb5e61349fa5cb822b3e87842b951088b76b81f", "shasum": "" }, "require": { "php": "^7.2.5 || ^8.0", "psr/http-factory": "^1.0", "psr/http-message": "^1.1 || ^2.0", - "ralouphie/getallheaders": "^3.0" + "ralouphie/getallheaders": "^3.0", + "symfony/deprecation-contracts": "^2.5 || ^3.0", + "symfony/polyfill-php80": "^1.24" }, "provide": { "psr/http-factory-implementation": "1.0", @@ -387,7 +389,7 @@ ], "support": { "issues": "https://github.com/guzzle/psr7/issues", - "source": "https://github.com/guzzle/psr7/tree/2.10.4" + "source": "https://github.com/guzzle/psr7/tree/2.11.0" }, "funding": [ { @@ -403,7 +405,7 @@ "type": "tidelift" } ], - "time": "2026-05-29T12:59:07+00:00" + "time": "2026-06-02T12:30:48+00:00" }, { "name": "nikic/php-parser", @@ -1128,16 +1130,16 @@ }, { "name": "simplesamlphp/composer-module-installer", - "version": "v1.7.0", + "version": "v1.7.1", "source": { "type": "git", "url": "https://github.com/simplesamlphp/composer-module-installer.git", - "reference": "7560ebd48e74001329a0c2ba44cc467c2e823368" + "reference": "348f02344e851655587474e389fe4234c9399404" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/simplesamlphp/composer-module-installer/zipball/7560ebd48e74001329a0c2ba44cc467c2e823368", - "reference": "7560ebd48e74001329a0c2ba44cc467c2e823368", + "url": "https://api.github.com/repos/simplesamlphp/composer-module-installer/zipball/348f02344e851655587474e389fe4234c9399404", + "reference": "348f02344e851655587474e389fe4234c9399404", "shasum": "" }, "require": { @@ -1152,7 +1154,10 @@ }, "type": "composer-plugin", "extra": { - "class": "SimpleSAML\\Composer\\ModuleInstallerPlugin" + "class": "SimpleSAML\\Composer\\ModuleInstallerPlugin", + "branch-alias": { + "dev-master": "1.8.0.x-dev" + } }, "autoload": { "psr-4": { @@ -1166,22 +1171,22 @@ "description": "A Composer plugin that allows installing SimpleSAMLphp modules through Composer.", "support": { "issues": "https://github.com/simplesamlphp/composer-module-installer/issues", - "source": "https://github.com/simplesamlphp/composer-module-installer/tree/v1.7.0" + "source": "https://github.com/simplesamlphp/composer-module-installer/tree/v1.7.1" }, - "time": "2026-02-19T23:36:00+00:00" + "time": "2026-06-10T19:18:29+00:00" }, { "name": "simplesamlphp/composer-xmlprovider-installer", - "version": "v1.3.0", + "version": "v1.3.1", "source": { "type": "git", "url": "https://github.com/simplesamlphp/composer-xmlprovider-installer.git", - "reference": "80a2d6a30c730a5fd90358f4875b94140114c643" + "reference": "7eed3afcd294fd754f012f177c266c5ca71c3c58" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/simplesamlphp/composer-xmlprovider-installer/zipball/80a2d6a30c730a5fd90358f4875b94140114c643", - "reference": "80a2d6a30c730a5fd90358f4875b94140114c643", + "url": "https://api.github.com/repos/simplesamlphp/composer-xmlprovider-installer/zipball/7eed3afcd294fd754f012f177c266c5ca71c3c58", + "reference": "7eed3afcd294fd754f012f177c266c5ca71c3c58", "shasum": "" }, "require": { @@ -1194,7 +1199,10 @@ }, "type": "composer-plugin", "extra": { - "class": "SimpleSAML\\Composer\\XMLProvider\\XMLProviderInstallerPlugin" + "class": "SimpleSAML\\Composer\\XMLProvider\\XMLProviderInstallerPlugin", + "branch-alias": { + "dev-master": "1.4.0.x-dev" + } }, "autoload": { "psr-4": { @@ -1208,9 +1216,9 @@ "description": "A composer plugin that will auto-generate a classmap with all classes that implement SerializableElementInterface.", "support": { "issues": "https://github.com/simplesamlphp/composer-xmlprovider-installer/issues", - "source": "https://github.com/simplesamlphp/composer-xmlprovider-installer/tree/v1.3.0" + "source": "https://github.com/simplesamlphp/composer-xmlprovider-installer/tree/v1.3.1" }, - "time": "2026-02-19T23:34:51+00:00" + "time": "2026-06-10T19:16:24+00:00" }, { "name": "simplesamlphp/saml2", @@ -1351,16 +1359,16 @@ }, { "name": "simplesamlphp/simplesamlphp-assets-base", - "version": "v2.6.0", + "version": "v2.6.1", "source": { "type": "git", "url": "https://github.com/simplesamlphp/simplesamlphp-assets-base.git", - "reference": "32fccb412c3aa1789314d7e6f50bdcaa8ee427b5" + "reference": "7ddfc3685dd7656ee1350d9d5ad1df0278e92ae5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/simplesamlphp/simplesamlphp-assets-base/zipball/32fccb412c3aa1789314d7e6f50bdcaa8ee427b5", - "reference": "32fccb412c3aa1789314d7e6f50bdcaa8ee427b5", + "url": "https://api.github.com/repos/simplesamlphp/simplesamlphp-assets-base/zipball/7ddfc3685dd7656ee1350d9d5ad1df0278e92ae5", + "reference": "7ddfc3685dd7656ee1350d9d5ad1df0278e92ae5", "shasum": "" }, "require": { @@ -1381,9 +1389,9 @@ "description": "Assets for the SimpleSAMLphp main repository", "support": { "issues": "https://github.com/simplesamlphp/simplesamlphp-assets-base/issues", - "source": "https://github.com/simplesamlphp/simplesamlphp-assets-base/tree/v2.6.0" + "source": "https://github.com/simplesamlphp/simplesamlphp-assets-base/tree/v2.6.1" }, - "time": "2026-05-31T18:18:53+00:00" + "time": "2026-05-31T18:56:52+00:00" }, { "name": "simplesamlphp/xml-common", @@ -3591,16 +3599,16 @@ }, { "name": "symfony/polyfill-mbstring", - "version": "v1.38.1", + "version": "v1.38.2", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "14c5439eec4ccff081ac14eca2dc57feb2a66d92" + "reference": "d3d318bad5e7a1bfbd026009c8bfb8d8f99ae6b6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/14c5439eec4ccff081ac14eca2dc57feb2a66d92", - "reference": "14c5439eec4ccff081ac14eca2dc57feb2a66d92", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/d3d318bad5e7a1bfbd026009c8bfb8d8f99ae6b6", + "reference": "d3d318bad5e7a1bfbd026009c8bfb8d8f99ae6b6", "shasum": "" }, "require": { @@ -3652,7 +3660,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.38.1" + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.38.2" }, "funding": [ { @@ -3672,20 +3680,104 @@ "type": "tidelift" } ], - "time": "2026-05-26T12:51:13+00:00" + "time": "2026-05-27T06:59:30+00:00" + }, + { + "name": "symfony/polyfill-php80", + "version": "v1.37.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php80.git", + "reference": "dfb55726c3a76ea3b6459fcfda1ec2d80a682411" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/dfb55726c3a76ea3b6459fcfda1ec2d80a682411", + "reference": "dfb55726c3a76ea3b6459fcfda1ec2d80a682411", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php80\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ion Bazan", + "email": "ion.bazan@gmail.com" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php80/tree/v1.37.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-04-10T16:19:22+00:00" }, { "name": "symfony/polyfill-php83", - "version": "v1.38.1", + "version": "v1.38.2", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php83.git", - "reference": "8339098cae28673c15cce00d80734af0453054e2" + "reference": "796a26abb75ce49f3a84433cd81bf1009d73d5f8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php83/zipball/8339098cae28673c15cce00d80734af0453054e2", - "reference": "8339098cae28673c15cce00d80734af0453054e2", + "url": "https://api.github.com/repos/symfony/polyfill-php83/zipball/796a26abb75ce49f3a84433cd81bf1009d73d5f8", + "reference": "796a26abb75ce49f3a84433cd81bf1009d73d5f8", "shasum": "" }, "require": { @@ -3732,7 +3824,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php83/tree/v1.38.1" + "source": "https://github.com/symfony/polyfill-php83/tree/v1.38.2" }, "funding": [ { @@ -3752,7 +3844,7 @@ "type": "tidelift" } ], - "time": "2026-05-26T12:51:13+00:00" + "time": "2026-05-27T06:51:48+00:00" }, { "name": "symfony/polyfill-php85", @@ -4970,28 +5062,29 @@ }, { "name": "composer/pcre", - "version": "3.3.2", + "version": "3.4.0", "source": { "type": "git", "url": "https://github.com/composer/pcre.git", - "reference": "b2bed4734f0cc156ee1fe9c0da2550420d99a21e" + "reference": "d5a341b3fb61f3001970940afb1d332968a183ed" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/pcre/zipball/b2bed4734f0cc156ee1fe9c0da2550420d99a21e", - "reference": "b2bed4734f0cc156ee1fe9c0da2550420d99a21e", + "url": "https://api.github.com/repos/composer/pcre/zipball/d5a341b3fb61f3001970940afb1d332968a183ed", + "reference": "d5a341b3fb61f3001970940afb1d332968a183ed", "shasum": "" }, "require": { "php": "^7.4 || ^8.0" }, "conflict": { - "phpstan/phpstan": "<1.11.10" + "phpstan/phpstan": "<2.2.2" }, "require-dev": { - "phpstan/phpstan": "^1.12 || ^2", - "phpstan/phpstan-strict-rules": "^1 || ^2", - "phpunit/phpunit": "^8 || ^9" + "phpstan/phpstan": "^2", + "phpstan/phpstan-deprecation-rules": "^2", + "phpstan/phpstan-strict-rules": "^2", + "phpunit/phpunit": "^9" }, "type": "library", "extra": { @@ -5029,7 +5122,7 @@ ], "support": { "issues": "https://github.com/composer/pcre/issues", - "source": "https://github.com/composer/pcre/tree/3.3.2" + "source": "https://github.com/composer/pcre/tree/3.4.0" }, "funding": [ { @@ -5039,13 +5132,9 @@ { "url": "https://github.com/composer", "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/composer/composer", - "type": "tidelift" } ], - "time": "2024-11-12T16:29:46+00:00" + "time": "2026-06-07T11:47:49+00:00" }, { "name": "composer/xdebug-handler", @@ -5715,11 +5804,11 @@ }, { "name": "phpstan/phpstan", - "version": "2.2.1", + "version": "2.2.2", "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/dea9c8f2d25cc849391042b71e429c1a4bf82660", - "reference": "dea9c8f2d25cc849391042b71e429c1a4bf82660", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/e5cc34d491a90e79c216d824f60fe21fd4d93bd6", + "reference": "e5cc34d491a90e79c216d824f60fe21fd4d93bd6", "shasum": "" }, "require": { @@ -5775,7 +5864,7 @@ "type": "github" } ], - "time": "2026-05-28T14:44:12+00:00" + "time": "2026-06-05T09:00:01+00:00" }, { "name": "phpstan/phpstan-mockery", @@ -5884,16 +5973,16 @@ }, { "name": "phpunit/php-code-coverage", - "version": "12.5.6", + "version": "12.5.7", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "876099a072646c7745f673d7aeab5382c4439691" + "reference": "186dab580576598076de6818596d12b61801880e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/876099a072646c7745f673d7aeab5382c4439691", - "reference": "876099a072646c7745f673d7aeab5382c4439691", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/186dab580576598076de6818596d12b61801880e", + "reference": "186dab580576598076de6818596d12b61801880e", "shasum": "" }, "require": { @@ -5904,13 +5993,13 @@ "php": ">=8.3", "phpunit/php-text-template": "^5.0", "sebastian/complexity": "^5.0", - "sebastian/environment": "^8.0.3", - "sebastian/lines-of-code": "^4.0", + "sebastian/environment": "^8.1.2", + "sebastian/lines-of-code": "^4.0.1", "sebastian/version": "^6.0", "theseer/tokenizer": "^2.0.1" }, "require-dev": { - "phpunit/phpunit": "^12.5.1" + "phpunit/phpunit": "^12.5.28" }, "suggest": { "ext-pcov": "PHP extension that provides line coverage", @@ -5948,7 +6037,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/12.5.6" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/12.5.7" }, "funding": [ { @@ -5968,7 +6057,7 @@ "type": "tidelift" } ], - "time": "2026-04-15T08:23:17+00:00" + "time": "2026-06-01T13:24:19+00:00" }, { "name": "phpunit/php-file-iterator", @@ -6229,16 +6318,16 @@ }, { "name": "phpunit/phpunit", - "version": "12.5.28", + "version": "12.5.30", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "5895d05f5bf421ed230fbd76e1277e4b8955def4" + "reference": "900400a5b616d6fb306f9549f6da33ba615d3fbb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/5895d05f5bf421ed230fbd76e1277e4b8955def4", - "reference": "5895d05f5bf421ed230fbd76e1277e4b8955def4", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/900400a5b616d6fb306f9549f6da33ba615d3fbb", + "reference": "900400a5b616d6fb306f9549f6da33ba615d3fbb", "shasum": "" }, "require": { @@ -6252,7 +6341,7 @@ "phar-io/manifest": "^2.0.4", "phar-io/version": "^3.2.1", "php": ">=8.3", - "phpunit/php-code-coverage": "^12.5.6", + "phpunit/php-code-coverage": "^12.5.7", "phpunit/php-file-iterator": "^6.0.1", "phpunit/php-invoker": "^6.0.0", "phpunit/php-text-template": "^5.0.0", @@ -6262,7 +6351,7 @@ "sebastian/diff": "^7.0.0", "sebastian/environment": "^8.1.2", "sebastian/exporter": "^7.0.3", - "sebastian/global-state": "^8.0.2", + "sebastian/global-state": "^8.0.3", "sebastian/object-enumerator": "^7.0.0", "sebastian/recursion-context": "^7.0.1", "sebastian/type": "^6.0.4", @@ -6307,7 +6396,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/12.5.28" + "source": "https://github.com/sebastianbergmann/phpunit/tree/12.5.30" }, "funding": [ { @@ -6315,20 +6404,20 @@ "type": "other" } ], - "time": "2026-05-27T14:01:10+00:00" + "time": "2026-06-15T13:12:30+00:00" }, { "name": "predis/predis", - "version": "v3.4.2", + "version": "v3.5.1", "source": { "type": "git", "url": "https://github.com/predis/predis.git", - "reference": "2033429520d8997a7815a2485f56abe6d2d0e075" + "reference": "5c996db191ee2d9bafe651f454b1fca16754271b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/predis/predis/zipball/2033429520d8997a7815a2485f56abe6d2d0e075", - "reference": "2033429520d8997a7815a2485f56abe6d2d0e075", + "url": "https://api.github.com/repos/predis/predis/zipball/5c996db191ee2d9bafe651f454b1fca16754271b", + "reference": "5c996db191ee2d9bafe651f454b1fca16754271b", "shasum": "" }, "require": { @@ -6370,7 +6459,7 @@ ], "support": { "issues": "https://github.com/predis/predis/issues", - "source": "https://github.com/predis/predis/tree/v3.4.2" + "source": "https://github.com/predis/predis/tree/v3.5.1" }, "funding": [ { @@ -6378,7 +6467,7 @@ "type": "github" } ], - "time": "2026-03-09T20:33:04+00:00" + "time": "2026-06-11T16:56:53+00:00" }, { "name": "sebastian/cli-parser", @@ -6834,26 +6923,26 @@ }, { "name": "sebastian/global-state", - "version": "8.0.2", + "version": "8.0.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "ef1377171613d09edd25b7816f05be8313f9115d" + "reference": "b164d3274d6537ab462591c5755f76a8f5b1aae9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/ef1377171613d09edd25b7816f05be8313f9115d", - "reference": "ef1377171613d09edd25b7816f05be8313f9115d", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/b164d3274d6537ab462591c5755f76a8f5b1aae9", + "reference": "b164d3274d6537ab462591c5755f76a8f5b1aae9", "shasum": "" }, "require": { "php": ">=8.3", "sebastian/object-reflector": "^5.0", - "sebastian/recursion-context": "^7.0" + "sebastian/recursion-context": "^7.0.1" }, "require-dev": { "ext-dom": "*", - "phpunit/phpunit": "^12.0" + "phpunit/phpunit": "^12.5.28" }, "type": "library", "extra": { @@ -6884,7 +6973,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/global-state/issues", "security": "https://github.com/sebastianbergmann/global-state/security/policy", - "source": "https://github.com/sebastianbergmann/global-state/tree/8.0.2" + "source": "https://github.com/sebastianbergmann/global-state/tree/8.0.3" }, "funding": [ { @@ -6904,7 +6993,7 @@ "type": "tidelift" } ], - "time": "2025-08-29T11:29:25+00:00" + "time": "2026-06-01T15:10:33+00:00" }, { "name": "sebastian/lines-of-code", @@ -8177,7 +8266,6 @@ "php": "^8.3", "ext-date": "*", "ext-dom": "*", - "ext-fileinfo": "*", "ext-filter": "*", "ext-hash": "*", "ext-json": "*", diff --git a/config/config.php.dist b/config/config.php.dist index 3fb78ff2d1..a4f0d4061f 100644 --- a/config/config.php.dist +++ b/config/config.php.dist @@ -255,10 +255,10 @@ $config = [ * If you have some SP's on HTTP and IdP is normally on HTTPS, this option * enables secure POSTing to HTTP endpoint without warning from browser. * - * For this to work, module.php/core/postredirect.php must be accessible + * For this to work, /module/core/postredirect must be accessible * also via HTTP on IdP, e.g. if your IdP is on * https://idp.example.org/ssp/, then - * http://idp.example.org/ssp/module.php/core/postredirect.php must be accessible. + * http://idp.example.org/ssp/module/core/postredirect must be accessible. */ 'enable.http_post' => false, diff --git a/docs/simplesamlphp-artifact-idp.md b/docs/simplesamlphp-artifact-idp.md index e327134131..8a13efb9b7 100644 --- a/docs/simplesamlphp-artifact-idp.md +++ b/docs/simplesamlphp-artifact-idp.md @@ -70,12 +70,12 @@ In general, that should look something like: 'AssertionConsumerService' => [ [ 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST', - 'Location' => 'https://sp.example.org/simplesaml/module.php/saml/sp/saml2-acs.php/default-sp', + 'Location' => 'https://sp.example.org/simplesaml/module/saml/sp/saml2-acs.php/default-sp', 'index' => 0, ], [ 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact', - 'Location' => 'https://sp.example.org/simplesaml/module.php/saml/sp/saml2-acs.php/default-sp', + 'Location' => 'https://sp.example.org/simplesaml/module/saml/sp/saml2-acs.php/default-sp', 'index' => 2, ], ], diff --git a/docs/simplesamlphp-developer-information.md b/docs/simplesamlphp-developer-information.md index ba084594ec..a4dfb9b43d 100644 --- a/docs/simplesamlphp-developer-information.md +++ b/docs/simplesamlphp-developer-information.md @@ -1,7 +1,7 @@ # SimpleSAMLphp developer information - @@ -66,18 +66,31 @@ The dependencies are updated using github actions in simplesamlphp-assets-base. Select a recent branch such as release-2.2 and dig into the .github directory for details. +### Primary Module Assets + +If a primary module (a module included in the main repository) contains public +assets inside its `public/assets/` directory, these assets must be explicitly +allowed in the repository's root `.gitignore` file. Because `/public/assets/*` +is ignored by default, you must add `!/public/assets//` and +`!/public/assets//**` to the `.gitignore` file to ensure the deployed +assets for that module can be tracked by Git. + ## Following a simple login The `SimpleSAML\Auth\Simple` class takes the authentication_source name and can be used to find a login URL with `getLoginURL()`. The getLoginURL method takes the return URL as it's only parameter. The -URL returned from `getLoginURL()` will be a request to module.php and -include the return URL information. - -The module.php code `Module::process`. The `process` method uses -Symfony to dispatch the request. This may result in a call to -modules/core/src/Controller/Login.php in `Login::loginuserpass()`. The -code flows through `handleLogin()` which may call +URL returned from `getLoginURL()` points at a routed module endpoint, +typically under `/module/saml/...`, and includes the return URL +information. + +SimpleSAMLphp now handles supported web requests through the front +controller in `public/index.php`. The global kernel loads the routes, +services, and controllers from all enabled modules and uses Symfony to +dispatch the request. A simple login request may therefore resolve to +`modules/saml/src/Controller/ServiceProvider.php` and then into the +configured authentication source. The code flows through +`handleLogin()` which may call `UserPassBase::handleLogin(authstateid, username, password)`. The `handleLogin` method looks up the `$as = Auth\Source` and passes the login credentials to the `$as->login( username, password )` method. @@ -87,6 +100,9 @@ modules/sqlauth/src/Auth/Source/SQL.php and the `SQL::login` method. This `login` method either returns the user attributes on success or throws an exception on login failure. +Similarly, `getLogoutURL()` now returns a routed logout endpoint under +`/module/core/...`. + ## Documentation The core of the simplesamlphp.org website is taken from diff --git a/docs/simplesamlphp-ecp-idp.md b/docs/simplesamlphp-ecp-idp.md index dd0ffa2948..d1786fae56 100644 --- a/docs/simplesamlphp-ecp-idp.md +++ b/docs/simplesamlphp-ecp-idp.md @@ -37,11 +37,11 @@ The `saml20-idp-remote` metadata for simpleSAMLphp SPs should contain something 'SingleSignOnService' => [ 0 => [ 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect', - 'Location' => 'https://idp.example.org/simplesaml/module.php/saml/idp/singleSignOnService', + 'Location' => 'https://idp.example.org/simplesaml/module/saml/idp/singleSignOnService', ], 1 => [ 'index' => 0, - 'Location' => 'https://didp.example.org/simplesaml/module.php/saml/idp/singleSignOnService', + 'Location' => 'https://didp.example.org/simplesaml/module/saml/idp/singleSignOnService', 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:SOAP', ], ], diff --git a/docs/simplesamlphp-errorhandling.md b/docs/simplesamlphp-errorhandling.md index 3a5e59539b..585eebcb5f 100644 --- a/docs/simplesamlphp-errorhandling.md +++ b/docs/simplesamlphp-errorhandling.md @@ -196,18 +196,149 @@ An exception which isn't a subclass of `\SimpleSAML\Error\Exception` will be con This happens regardless of whether the exception is delivered directly or through the error handler. This is done to be consistent in what the application receives - now it will always receive the same exception, regardless of whether it is delivered directly or through a redirect. -## Custom error show function +## Custom error rendering -Optional custom error show function, called from \SimpleSAML\Error\Error::show, is defined with 'errors.show_function' in config.php. +SimpleSAMLphp 3.0 uses Symfony's event system for error rendering. To customize how errors are displayed, you can register a custom event subscriber that listens for the `kernel.exception` event. -Example code for this function, which implements the same functionality as \SimpleSAML\Error\Error::show, looks something like: +### Creating a custom error subscriber + +Create a class that implements `\Symfony\Component\EventDispatcher\EventSubscriberInterface`. Your subscriber should have a priority higher than 200 to ensure it runs before the default SimpleSAMLphp error handler. + +Example: + +```php + 200 to run before SimpleSAMLphp's default handler + KernelEvents::EXCEPTION => ['onKernelException', 250], + ]; + } + + public function onKernelException(ExceptionEvent $event): void + { + $exception = $event->getThrowable(); + + // Your custom error rendering logic + $response = new Response( + '

Custom Error

' . + htmlspecialchars($exception->getMessage()) . + '

', + 500, + ); + + $event->setResponse($response); + } +} +``` + +### Rendering the error page with a Twig template + +SimpleSAMLphp's `\SimpleSAML\XHTML\Template` class extends +Symfony's `Response`, so a template can be returned directly from the event. + +First, add a Twig template to your module, for example +`modules/mymodule/templates/error.twig`: + +```twig + + + + + Custom error page + + +

Custom Error

+

{{ errorMessage|escape('html') }}

+ + +``` + +Then build and return that template from the subscriber. The template name uses +the `:.twig` convention, variables are passed through the public +`$data` array, and the status code is set with the usual `Response` method: ```php -public static function show(\SimpleSAML\Configuration $config, array $data) +data = array_merge($t->data, $data); - $t->send(); - exit; + public static function getSubscribedEvents(): array + { + return [ + // Priority > 200 to run before SimpleSAMLphp's default handler + KernelEvents::EXCEPTION => ['onKernelException', 250], + ]; + } + + public function onKernelException(ExceptionEvent $event): void + { + $exception = $event->getThrowable(); + + // Template extends Symfony's Response, so it can be returned straight + // from the event. + $template = new Template(Configuration::getInstance(), 'mymodule:error.twig'); + + // Variables are passed to Twig through the public $data array. + $template->data['errorMessage'] = $exception->getMessage(); + + // Reuse the exception's HTTP status code when it has one (e.g. a 404 + // NotFoundHttpException), otherwise fall back to 500. + $template->setStatusCode( + $exception instanceof HttpExceptionInterface ? $exception->getStatusCode() : 500, + ); + + $event->setResponse($template); + } } ``` + +The subscriber is registered as in the inline example below. + +### Registering the subscriber + +Register your subscriber as a service in your module's `routing/services/` directory (e.g., `routing/services/mymodule.yml`): + +```yaml +services: + SimpleSAML\Module\mymodule\EventSubscriber\CustomErrorSubscriber: + tags: ['kernel.event_subscriber'] +``` + +### Verifying the subscriber is registered + +After registering the service and clearing the cache, you can confirm +that your subscriber is actually wired up — and check its priority +relative to SimpleSAMLphp's built-in handler (priority 200) — with: + +```sh +php bin/console debug:event-dispatcher kernel.exception +``` + +This lists every listener registered for the `kernel.exception` event in +the order they run. Your subscriber should appear with the priority you +configured; a priority higher than 200 confirms it runs before (and can +therefore override) SimpleSAMLphp's default error handler. If it does +not appear at all, the service definition was not loaded — check that it +lives under your module's `routing/services/` directory, that the module +is enabled, and that the cache has been cleared. diff --git a/docs/simplesamlphp-googleapps.md b/docs/simplesamlphp-googleapps.md index db7adfc947..d3e25f055e 100644 --- a/docs/simplesamlphp-googleapps.md +++ b/docs/simplesamlphp-googleapps.md @@ -187,7 +187,7 @@ You will find in the metadata the XML tag `` which contains the right URL to input in the field, it will look something like this: -`https://dev2.andreas.feide.no/simplesaml/module.php/saml/idp/singleSignOnService` +`https://dev2.andreas.feide.no/simplesaml/module/saml/idp/singleSignOnService` The Sign-out page or change password URL can be static pages on your server. (Google does not support SAML Single Log Out.) diff --git a/docs/simplesamlphp-hok-idp.md b/docs/simplesamlphp-hok-idp.md index 527924d42b..8842ed9bab 100644 --- a/docs/simplesamlphp-hok-idp.md +++ b/docs/simplesamlphp-hok-idp.md @@ -47,7 +47,7 @@ The `saml20-idp-remote` metadata for SimpleSAMLphp SPs should contain something [ 'hoksso:ProtocolBinding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect', 'Binding' => 'urn:oasis:names:tc:SAML:2.0:profiles:holder-of-key:SSO:browser', - 'Location' => 'https://idp.example.org/simplesaml/module.php/saml/idp/singleSignOnService', + 'Location' => 'https://idp.example.org/simplesaml/module/saml/idp/singleSignOnService', 'attributes' => [ [ 'namespaceURI' => 'urn:oasis:names:tc:SAML:2.0:profiles:holder-of-key:SSO:browser', @@ -59,7 +59,7 @@ The `saml20-idp-remote` metadata for SimpleSAMLphp SPs should contain something ], [ 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect', - 'Location' => 'https://idp.example.org/simplesaml/module.php/saml/idp/singleSignOnService', + 'Location' => 'https://idp.example.org/simplesaml/module/saml/idp/singleSignOnService', ], ], ``` @@ -74,12 +74,12 @@ In general, this should look like the following code: 'AssertionConsumerService' => [ [ 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST', - 'Location' => 'https://sp.example.org/simplesaml/module.php/saml/sp/saml2-acs.php/default-sp', + 'Location' => 'https://sp.example.org/simplesaml/module/saml/sp/saml2-acs.php/default-sp', 'index' => 0, ], [ 'Binding' => 'urn:oasis:names:tc:SAML:2.0:profiles:holder-of-key:SSO:browser', - 'Location' => 'https://sp.example.org/simplesaml/module.php/saml/sp/saml2-acs.php/default-sp', + 'Location' => 'https://sp.example.org/simplesaml/module/saml/sp/saml2-acs.php/default-sp', 'index' => 4, ], ], diff --git a/docs/simplesamlphp-idp-more.md b/docs/simplesamlphp-idp-more.md index 4dadf4ca4f..e550ce6834 100644 --- a/docs/simplesamlphp-idp-more.md +++ b/docs/simplesamlphp-idp-more.md @@ -35,11 +35,11 @@ If you do not want to start the SSO flow at the SP, you may use the IdP-first se Here is an example of such a URL: -`https://idp.example.org/simplesaml/module.php/saml/idp/singleSignOnService?spentityid=urn:mace:feide.no:someservice` +`https://idp.example.org/simplesaml/module/saml/idp/singleSignOnService?spentityid=urn:mace:feide.no:someservice` You can also add a `RelayState` parameter to the IdP-first URL: -`https://idp.example.org/simplesaml/module.php/saml/idp/singleSignOnService?spentityid=urn:mace:feide.no:someservice&RelayState=https://sp.example.org/somepage` +`https://idp.example.org/simplesaml/module/saml/idp/singleSignOnService?spentityid=urn:mace:feide.no:someservice&RelayState=https://sp.example.org/somepage` The `RelayState` parameter is often used to carry the URL the SP should redirect to after authentication. It is also possible to specify the Assertion Consumer URL with the `ConsumerURL` parameter. diff --git a/docs/simplesamlphp-idp.md b/docs/simplesamlphp-idp.md index b5af78fca3..934c32ecbf 100644 --- a/docs/simplesamlphp-idp.md +++ b/docs/simplesamlphp-idp.md @@ -183,16 +183,16 @@ This is a minimal example of a `metadata/saml20-sp-remote.php` metadata file for ```php [ [ - 'Location' => 'https://sp.example.org/simplesaml/module.php/saml/sp/saml2-acs.php/default-sp', + 'Location' => 'https://sp.example.org/simplesaml/module/saml/sp/saml2-acs.php/default-sp', 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST', ], ], 'SingleLogoutService' => [ [ - 'Location' => 'https://sp.example.org/simplesaml/module.php/saml/sp/saml2-logout.php/default-sp', + 'Location' => 'https://sp.example.org/simplesaml/module/saml/sp/saml2-logout.php/default-sp', 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect', ], ], @@ -200,13 +200,13 @@ $metadata['https://sp.example.org/simplesaml/module.php/saml/sp/metadata.php/def ``` Note that the URI in the entityID and the URLs to the AssertionConsumerService and SingleLogoutService endpoints change between different service providers. -If you have the metadata of the remote SP as an XML file, you can use the built-in XML to SimpleSAMLphp metadata converter, which by default is available as `/module.php/admin/federation/metadata-converter` in your SimpleSAMLphp installation. +If you have the metadata of the remote SP as an XML file, you can use the built-in XML to SimpleSAMLphp metadata converter, which by default is available as `/module/admin/federation/metadata-converter` in your SimpleSAMLphp installation. For more information about available options in the sp-remote metadata files, see the [SP remote reference](simplesamlphp-reference-sp-remote). ## Adding this IdP to other SPs -The method for adding this IdP to a SP varies between different types of SPs. In general, most SPs need some metadata from the IdP. This should be available from `/saml2/idp/metadata.php`. +The method for adding this IdP to a SP varies between different types of SPs. In general, most SPs need some metadata from the IdP. This should be available from `/module/saml/idp/metadata`. ## Testing the IdP @@ -232,14 +232,14 @@ If you do not want to start the SSO flow at the SP, you may use the IdP-first se Here is an example of such a URL: -`https://idp.example.org/simplesaml/module.php/saml/idp/singleSignOnService?spentityid=sp.example.org` +`https://idp.example.org/simplesaml/module/saml/idp/singleSignOnService?spentityid=sp.example.org` If the SP is a SimpleSAMLphp SP, you must also specify a `RelayState` parameter for the SP. This must be set to a URL the user should be redirected to after authentication. The `RelayState` parameter can be specified in the [SP configuration](./saml:sp), or it can be sent from the IdP. To send the RelayState parameter from a SimpleSAMLphp IdP, specify it in the query string to SSOService.php: -`https://idp.example.org/simplesaml/module.php/saml/idp/singleSignOnService?spentityid=sp.example.org&RelayState=https://sp.example.org/welcome.php` +`https://idp.example.org/simplesaml/module/saml/idp/singleSignOnService?spentityid=sp.example.org&RelayState=https://sp.example.org/welcome.php` To set it in the SP configuration, add it to `authsources.php`: diff --git a/docs/simplesamlphp-install.md b/docs/simplesamlphp-install.md index 48fbc1f0ae..ad332aa496 100644 --- a/docs/simplesamlphp-install.md +++ b/docs/simplesamlphp-install.md @@ -95,6 +95,31 @@ Most likely the metadata format is backwards compatible. If not, you should rece startup indicating how and what you need to update. You should look through the metadata in the `metadata-templates` directory after the upgrade to see whether recommended defaults have been changed. +### Publishing module assets + +If you use modules that ship browser assets in +`modules//public/assets/`, publish them after installing or +upgrading SimpleSAMLphp: + +```sh +composer assets:publish +``` + +This command copies module assets into `public/assets//`, +where they can be served directly by the web server. + +Run it whenever: + +* you install or upgrade SimpleSAMLphp +* you add, remove, or update a module that provides browser assets +* you change files under `modules//public/assets/` + +If you prefer not to use Composer scripts, the equivalent command is: + +```sh +php bin/console assets:publish +``` + ## Configuration ### Location of configuration files @@ -119,6 +144,10 @@ The only subdirectory of `SimpleSAMLphp` that needs to be accessible from the we exposing SimpleSAMLphp depending on the way web sites are structured on your Apache web server. The following is just one possible configuration. +SimpleSAMLphp handles supported dynamic requests through +`public/index.php`. Static files, such as published module assets under +`public/assets/`, should be served directly by the web server. + Find the Apache configuration file for the virtual hosts where you want to run SimpleSAMLphp. The configuration may look like this: @@ -133,6 +162,7 @@ look like this: Require all granted + AllowOverride All ``` @@ -160,6 +190,10 @@ your configuration to a different location, you can use this environment variabl for configuration files. This works only for the `config` directory. If you need your metadata to be in a different directory too, use the `metadatadir` configuration option to specify the location. +If you do not want to rely on `.htaccess`, configure equivalent +rewrite rules directly in the virtual host so that non-file requests +below `/simplesaml` are sent to `index.php`. + This is just the basic configuration to get things working. For a checklist further completing your documentation, please see [Maintenance and configuration: Apache](simplesamlphp-maintenance). @@ -190,21 +224,29 @@ server { location ^~ /simplesaml { alias /var/simplesamlphp/public; + try_files $uri $uri/ /simplesaml/index.php$is_args$args; + } - location ~^(?/simplesaml)(?.+?\.php)(?/.*)?$ { - include fastcgi_params; - fastcgi_pass $fastcgi_pass; - fastcgi_param SCRIPT_FILENAME $document_root$phpfile; - - # Must be prepended with the baseurlpath - fastcgi_param SCRIPT_NAME /simplesaml$phpfile; - - fastcgi_param PATH_INFO $pathinfo if_not_empty; - } + location = /simplesaml/index.php { + include fastcgi_params; + fastcgi_pass $fastcgi_pass; + fastcgi_param SCRIPT_FILENAME /var/simplesamlphp/public/index.php; + fastcgi_param SCRIPT_NAME /simplesaml/index.php; + fastcgi_param PATH_INFO ""; } } ``` +This configuration serves static files directly from `public/` and +routes other requests through `public/index.php`. If you expose +SimpleSAMLphp under a different base path, update both the `alias` and +`SCRIPT_NAME` values accordingly. + +Legacy deployments sometimes mapped requests to individual PHP scripts +such as `module.php` or `public/saml2/idp/*.php`. Those entrypoints are +no longer supported; use front-controller routing through `index.php` +instead. + ## SimpleSAMLphp configuration: config.php There are a few steps that you should complete in the main configuration file, `config.php`, right away: diff --git a/docs/simplesamlphp-modules.md b/docs/simplesamlphp-modules.md index 0a1c4ef745..7d681f7e60 100644 --- a/docs/simplesamlphp-modules.md +++ b/docs/simplesamlphp-modules.md @@ -21,6 +21,10 @@ specific times. More than one thing can be stored in a single module. There is also support for storing supporting files, such as templates and dictionaries, in modules. +Enabled module routes, services, and controllers are loaded by the +global SimpleSAMLphp kernel and are reached through the front +controller in `public/index.php`. + The different functionalities which can be created as modules will be described in more detail in the following sections; what follows is a short introduction to what you can do with them: @@ -102,18 +106,19 @@ themes `modules/example/themes/blue/core/loginuserpass.twig`. public -: All files stored in this directory will be available by - accessing the URL - `https://.../simplesamlphp/module.php//`. - For example, if a script named `login.php` is stored in - `modules/example/public/`, it can be accessed by the URL - `https://.../simplesamlphp/module.php/example/login.php`. - -: To retrieve this URL, the - `SimpleSAML\Module::getModuleURL($resource)`-function can be used. - This function takes in a resource on the form `/`. - This function will then return a URL to the given file in the - `public`-directory of `module`. +: This directory is reserved for browser assets only. Static files + stored below `modules//public/assets/` are published to + `public/assets//...` and are then available at URLs on the + form `https://.../simplesamlphp/assets//`. + +: After adding or changing files in `modules//public/assets/`, + run `composer assets:publish` (or `php bin/console assets:publish`) + so the published copies in `public/assets//` are updated. + +: Dynamic PHP scripts in `modules//public/` are no longer + supported. Dynamic module behavior must be implemented with + controllers and routes, which are exposed under + `https://.../simplesamlphp/module//...`. ## Authentication sources diff --git a/docs/simplesamlphp-reference-idp-hosted.md b/docs/simplesamlphp-reference-idp-hosted.md index b17e1d2e10..b6d5ca0a79 100644 --- a/docs/simplesamlphp-reference-idp-hosted.md +++ b/docs/simplesamlphp-reference-idp-hosted.md @@ -306,12 +306,12 @@ The following SAML 2.0 options are available: `SingleSignOnService` : Override the default URL for the SingleSignOnService for this IdP. This is an absolute URL. The default value is - `/module.php/saml/idp/singleSignOnService` + `/module/saml/idp/singleSignOnService` : Note that this only changes the values in the generated metadata and in the messages sent to others. You must also - configure your webserver to deliver this URL to the correct PHP - page. + configure your webserver to route this URL through the + front controller in `public/index.php`. `SingleSignOnServiceBinding` : List of SingleSignOnService bindings that the IdP will claim support for. @@ -327,12 +327,12 @@ The following SAML 2.0 options are available: `SingleLogoutService` : Override the default URL for the SingleLogoutService for this IdP. This is an absolute URL. The default value is - `/module.php/saml/idp/singleLogout` + `/module/saml/idp/singleLogout` : Note that this only changes the values in the generated metadata and in the messages sent to others. You must also - configure your webserver to deliver this URL to the correct PHP - page. + configure your webserver to route this URL through the + front controller in `public/index.php`. `SingleLogoutServiceBinding` : List of SingleLogoutService bindings the IdP will claim support for. diff --git a/docs/simplesamlphp-sp-api.md b/docs/simplesamlphp-sp-api.md index dcb31860bd..b1f50e1b7f 100644 --- a/docs/simplesamlphp-sp-api.md +++ b/docs/simplesamlphp-sp-api.md @@ -285,7 +285,7 @@ The URL returned by this function is static, and will not change. You can easily create your own links without using this function. The URL should be: -`.../simplesaml/module.php/core/login/?ReturnTo=` +`.../simplesaml/module/saml/sp/login/?ReturnTo=` ### getLogoutURL @@ -315,4 +315,4 @@ The URL returned by this function is static, and will not change. You can easily create your own links without using this function. The URL should be: -`.../simplesaml/module.php/core/logout/?ReturnTo=` +`.../simplesaml/module/core/logout/?ReturnTo=` diff --git a/docs/simplesamlphp-sp.md b/docs/simplesamlphp-sp.md index 1e9f0a1958..bb4ad2748b 100644 --- a/docs/simplesamlphp-sp.md +++ b/docs/simplesamlphp-sp.md @@ -92,13 +92,13 @@ metadata file: $metadata['https://example.org/saml-idp'] = [ 'SingleSignOnService' => [ [ - 'Location' => 'https://example.org/simplesaml/module.php/saml/idp/singleSignOnService', + 'Location' => 'https://example.org/simplesaml/module/saml/idp/singleSignOnService', 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect', ], ], 'SingleLogoutService' => [ [ - 'Location' => 'https://example.org/simplesaml/module.php/saml/idp/singleLogout', + 'Location' => 'https://example.org/simplesaml/module/saml/idp/singleLogout', 'ResponseLocation' => 'https://sp.example.org/LogoutResponse', 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect', ], @@ -115,7 +115,7 @@ files, see the [IdP remote reference](simplesamlphp-reference-idp-remote). If you have the metadata of the remote IdP as an XML file, you can use the built-in XML to SimpleSAMLphp metadata converter, which by default is -available at `/module.php/admin/federation/metadata-converter` in +available at `/module/admin/federation/metadata-converter` in your SimpleSAMLphp installation. Note that the idp-remote file lists all IdPs you trust. diff --git a/docs/simplesamlphp-testing-install.md b/docs/simplesamlphp-testing-install.md index afa893b848..aaacc8c6dd 100644 --- a/docs/simplesamlphp-testing-install.md +++ b/docs/simplesamlphp-testing-install.md @@ -4,7 +4,7 @@ ## Testing a SimpleSAMLphp installation -The admin interface available as `/module.php/admin/` on your site +The admin interface available as `/module/admin` on your site allows for testing logins to the authentication sources available on your installation. @@ -33,7 +33,7 @@ method allows for login without password so should be disabled in any non testing environment. The ProfileAuth functionality can be accessed through the path -`/module.php/admin/test` page using for example a `profileauth` +`/module/admin/test` page using for example a `profileauth` authentication source with the following `config.php` fragment. The module must be enabled (and admin to get to it easily) and a small diff --git a/docs/simplesamlphp-theming.md b/docs/simplesamlphp-theming.md index a65e54fe01..3d0c9d9ab2 100644 --- a/docs/simplesamlphp-theming.md +++ b/docs/simplesamlphp-theming.md @@ -66,7 +66,7 @@ In the `modules/mymodule/themes/fancytheme/default/_header.twig` file, type in s ## Adding resource files -You can put resource files within the `public/assets` folder of your module, to make your module completely independent with included css, icons etc. +You can put resource files within the `public/assets` folder of your module, to make your module completely independent with included css, icons etc. These assets are published to `public/assets//...` and served directly by the web server. ```bash modules @@ -156,8 +156,8 @@ If you need to make more extensive customizations to the base template, you shou cp templates/base.twig modules/mymodule/themes/fancytheme/default/ ``` -Any references to `$this->data['baseurlpath']` in old-style templates can be replaced with `{{baseurlpath}}` in Twig templates. Likewise, references to `\SimpleSAML\Module::getModuleURL()` can be replaced with `{{baseurlpath}}module.php/mymodule/...` or the `asset()` function like shown above. -If you want to use the `asset()` function, you need to move the asserts from `public/` to `public/assets/`. +Any references to `$this->data['baseurlpath']` in old-style templates can be replaced with `{{baseurlpath}}` in Twig templates. Likewise, references to `\SimpleSAML\Module::getModuleURL()` should be replaced with routed URLs under `{{ baseurlpath }}module/...` or with the `asset()` function like shown above. +If you want to use the `asset()` function, you need to move the assets from `public/` to `public/assets/`. Within templates each module is defined as a separate namespace matching the module name. This allows one template to reference templates from other modules using Twig's `@namespace_name/template_path` notation. For instance, a template in `mymodule` can include the widget template from the `yourmodule` module using the notation `@yourmodule/widget.twig`. A special namespace, `__parent__`, exists to allow theme developers to more easily extend a module's stock template. diff --git a/docs/simplesamlphp-upgrade-notes-3.0.md b/docs/simplesamlphp-upgrade-notes-3.0.md new file mode 100644 index 0000000000..b704a307a5 --- /dev/null +++ b/docs/simplesamlphp-upgrade-notes-3.0.md @@ -0,0 +1,168 @@ +# Upgrade notes for SimpleSAMLphp 3.0 + +SimpleSAMLphp 3.0 introduces a routing architecture based on a single +global Symfony kernel and a front controller in `public/index.php`. +The following changes are relevant for installers, operators, and +module developers. + +## Web entrypoints and routing + +SimpleSAMLphp now handles supported web requests through +`public/index.php`. + +- Dynamic module endpoints are exposed under `/module//...`. +- Module browser assets are published under `/assets//...`. +- The legacy `public/module.php` PHP entry script is no longer present; + all requests are handled by `public/index.php`. (Legacy + `module.php/...` *URLs* are still handled during the transition period — see + [Legacy `module.php` URL compatibility](#legacy-modulephp-url-compatibility) below.) +- The legacy `public/saml2/idp/*.php` scripts are no longer supported. + +If your deployment previously linked directly to `module.php` or other +public PHP scripts, update those URLs to the routed equivalents. + +Examples: + +- Admin interface: + - old: `/simplesaml/module.php/admin/` + - new: `/simplesaml/module/admin` +- Metadata converter: + - old: `/simplesaml/module.php/admin/federation/metadata-converter` + - new: `/simplesaml/module/admin/federation/metadata-converter` +- IdP SSO endpoint: + - old: `/simplesaml/module.php/saml/idp/singleSignOnService` + - new: `/simplesaml/module/saml/idp/singleSignOnService` +- SP metadata endpoint: + - old: `/simplesaml/module.php/saml/sp/metadata.php/default-sp` + - new: `/simplesaml/module/saml/sp/metadata/default-sp` +- Module asset: + - old: `/simplesaml/module.php/mymodule/assets/app.css` + - new: `/simplesaml/assets/mymodule/app.css` + +### Legacy `module.php` URL compatibility + +Changing the route of every endpoint also changes the URLs that appear +in SAML metadata — for example an IdP's SingleSignOnService, an SP's +AssertionConsumerService and SingleLogoutService, and the metadata +endpoints published by protocol modules such as `saml`, `oidc`, `casserver` +and `adfs`. Because authentication protocols typically work by exchanging +metadata between entities, a peer that still holds your pre-3.0 metadata +would otherwise send requests and responses to URLs that no longer exist, +breaking authentication until every peer refreshes its metadata. + +To keep existing federations working across the upgrade, v3.0 serves +every module route under both the new `/module//...` path and +the legacy `/module.php//...` path. The legacy paths are served +**natively by the same controllers** — they are not HTTP redirects. + +This compatibility layer is always on in v3.0 and requires no +configuration. However, **It is deprecated and scheduled for removal in a +future release.** Treat v3.0 as the transition window: republish your metadata +(and ask your federation peers to refresh theirs) with the new +`/module/...` URLs. Once all peers consume the updated metadata, the +legacy URLs are no longer needed, and a later release will remove them. +Also, make sure to update any hardcoded URLs in your own external applications, +templates, and modules, that call SimpleSAMLphp endpoints. + +## Custom error rendering + +The `errors.show_function` configuration option has been removed. +Custom error rendering is now handled through Symfony's event system. + +To customize error pages, create a `kernel.exception` event subscriber +in your module and register it with a priority higher than 200 (which +is the priority used by SimpleSAMLphp's built-in error handler). + +See [Error Handling](./simplesamlphp-errorhandling.md) for details and +a complete example. + +## Installer and operator impact + +Your web server must route non-file requests in `public/` to +`index.php`. + +- Apache deployments should use the provided `public/.htaccess` file or + equivalent rewrite rules in the virtual-host configuration. +- Nginx and other web servers must be configured with equivalent + front-controller routing. + +Static files under `public/assets/` continue to be served directly by +the web server. Dynamic requests should no longer be mapped to +individual PHP scripts inside `public/`. + +After upgrading, clear the cache so that any stale routing or +controller metadata is rebuilt: + +```sh +composer clear-symfony-cache +``` + +## Developer and module-author impact + +SimpleSAMLphp now runs a single global kernel that loads the services, +routes, and controllers for all enabled modules. + +- Dynamic module behavior must be implemented with routes and + controllers. +- `modules//public/` is no longer a place for PHP entry + scripts. +- Browser assets should live under `modules//public/assets/` + and be published to `public/assets//`. +- Callers, templates, and external integrations should stop generating + `module.php/...` URLs. + +For module URLs, use the URL helpers provided by SimpleSAMLphp instead +of hardcoding legacy paths. Use `\SimpleSAML\Module::getModuleURL()`, +which builds a `/module/...` URL under the configured `baseurlpath`. The +`$resource` argument is the module-relative path (without a leading +slash), and optional query parameters can be passed as the second +argument: + +```php +use SimpleSAML\Module; + +// before (legacy): .../simplesaml/module.php/saml/sp/metadata.php/default-sp +// after: .../simplesaml/module/saml/sp/metadata/default-sp +$url = Module::getModuleURL('saml/sp/metadata/default-sp'); + +// with query parameters +$url = Module::getModuleURL('core/logout', ['ReturnTo' => $returnTo]); +``` + +For assets, use the published asset URLs instead of the legacy +`module.php//...` paths. Use +`\SimpleSAML\Module::getModuleAssetUrl()`, which builds an +`/assets//...` URL under the configured `baseurlpath`: + +```php +use SimpleSAML\Module; + +// before (legacy): .../simplesaml/module.php/mymodule/assets/css/style.css +// after: .../simplesaml/assets/mymodule/css/style.css +$url = Module::getModuleAssetUrl('mymodule', 'css/style.css'); +``` + +In Twig templates, the same helpers are exposed as the `moduleURL()` and +`asset()` functions, so templates do not need to hardcode paths either: + +```twig + +Metadata +``` + +## General upgrade advice + +When upgrading an existing deployment: + +1. Update web server configuration so requests under the configured + `baseurlpath` reach `public/index.php`. +2. Replace documented or hardcoded `module.php/...` URLs with + `/module/...` URLs. +3. Replace legacy module asset URLs with `/assets//...`. +4. Review any custom modules for direct PHP entry scripts in + `modules//public/` and move that behavior into routed + controllers. +5. Remove `error.show_function` option from `config/config.php` if present. + If you used custom error function, move the implementation to event + subscribers instead. +6. Clear the Symfony cache after deployment. diff --git a/docs/simplesamlphp-upgrade-notes.md b/docs/simplesamlphp-upgrade-notes.md index 676f06b352..8d121642fc 100644 --- a/docs/simplesamlphp-upgrade-notes.md +++ b/docs/simplesamlphp-upgrade-notes.md @@ -3,6 +3,7 @@ See the following pages for important information for users upgrading from older versions of SimpleSAMLphp: +* [Upgrade notes for version 3.0](simplesamlphp-upgrade-notes-3.0) * [Upgrade notes for version 2.5](simplesamlphp-upgrade-notes-2.5) * [Upgrade notes for version 2.4](simplesamlphp-upgrade-notes-2.4) * [Upgrade notes for version 2.3](simplesamlphp-upgrade-notes-2.3) diff --git a/modules/core/routing/routes/routes.yml b/modules/core/routing/routes/routes.yml index 8ce7680a0a..4376115f9e 100644 --- a/modules/core/routing/routes/routes.yml +++ b/modules/core/routing/routes/routes.yml @@ -18,7 +18,7 @@ core-legacy-login: path: /login/{as} defaults: { _controller: 'Symfony\Bundle\FrameworkBundle\Controller\RedirectController::urlRedirectAction', - path: /module.php/saml/sp/login/, permanent: true + path: /module/saml/sp/login/, permanent: true } methods: [GET] diff --git a/modules/saml/routing/routes/routes.yml b/modules/saml/routing/routes/routes.yml index 3336a3dabf..ed057211b2 100644 --- a/modules/saml/routing/routes/routes.yml +++ b/modules/saml/routing/routes/routes.yml @@ -76,7 +76,7 @@ saml-legacy-sp-metadata: path: /sp/metadata.php/{sourceId} defaults: { _controller: 'SimpleSAML\Module\saml\Controller\ServiceProvider::metadata', - path: /saml/sp/metadata, permanent: true + path: /module/saml/sp/metadata, permanent: true } methods: [GET] diff --git a/public/.htaccess b/public/.htaccess new file mode 100644 index 0000000000..3aec5e27e5 --- /dev/null +++ b/public/.htaccess @@ -0,0 +1,21 @@ + + + Options -MultiViews -Indexes + + + RewriteEngine On + + # Handle Authorization Header + RewriteCond %{HTTP:Authorization} . + RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] + + # Redirect Trailing Slashes If Not A Folder... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_URI} (.+)/$ + RewriteRule ^ %1 [L,R=301] + + # Send Requests To Front Controller... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^ index.php [L] + diff --git a/public/admin/index.php b/public/admin/index.php deleted file mode 100644 index f84b8167a2..0000000000 --- a/public/admin/index.php +++ /dev/null @@ -1,22 +0,0 @@ -getOptionalArray('headers.security', Configuration::DEFAULT_SECURITY_HEADERS); -$redirect = Module::getModuleURL('admin/'); -$response = new HTTP\RunnableResponse([$httpUtils, 'redirectTrustedURL'], [$redirect]); -foreach ($headers as $header => $value) { - // Some pages may have specific requirements that we must follow. Don't touch them. - if (!$response->headers->has($header)) { - $response->headers->set($header, $value); - } -} - -$response->send(); diff --git a/public/assets/admin/css/admin.css b/public/assets/admin/css/admin.css new file mode 100644 index 0000000000..d3765b9e2d --- /dev/null +++ b/public/assets/admin/css/admin.css @@ -0,0 +1,65 @@ +.enablebox table { + border: 1px solid #eee; + margin-left: 1em; +} + +.enablebox.mini table { + float: right; +} + +.enablebox tr td { + padding: 0.5px 1em 1px 0.5em; + margin: 0; +} + +.enablebox { + font-size: 85%; +} + +.enablebox tr.enabled td { + background: #eee; +} + +.enablebox tr.disabled td { + background: #ccc; +} + +fieldset.fancyfieldset { + padding-left: 1.5em; +} + +fieldset.fancyfieldset legend { + padding: 3px 2em 3px 0; + width: 100%; +} + +dt { + font-weight: bold; +} + +.entity-name, +.entity-deprecated, +.entity-expired { + font-weight: bold; +} + +.entity-expired { + color: #500; +} + +ul.modulelist { + column-count: 3; +} + +div.code-box-content { + padding: 0; +} + +.wrapping-menu { + white-space: normal; +} + +.wrapping-menu .pure-menu-list { + display: flex; + flex-wrap: wrap; +} diff --git a/public/assets/admin/js/metadata-converter.js b/public/assets/admin/js/metadata-converter.js new file mode 100644 index 0000000000..a3f7944201 --- /dev/null +++ b/public/assets/admin/js/metadata-converter.js @@ -0,0 +1,5 @@ +document.getElementById('file-input').addEventListener('change', function () { + var showFile = document.getElementById('show-file'); + var replacement = document.createTextNode(this.files.item(0).name); + showFile.replaceChild(replacement, showFile.childNodes[0]); +}); diff --git a/public/assets/core/js/loginuserpass.js b/public/assets/core/js/loginuserpass.js new file mode 100644 index 0000000000..7a258b27dd --- /dev/null +++ b/public/assets/core/js/loginuserpass.js @@ -0,0 +1,17 @@ +ready(function () { + window.onpageshow = function () { + var button = document.getElementById("submit_button"); + var replacement = document.createTextNode(button.getAttribute("data-default")); + button.replaceChild(replacement, button.childNodes[0]); + button.disabled = false; + }; + + var form = document.getElementById("f"); + form.onsubmit = function () { + var button = document.getElementById("submit_button"); + var replacement = document.createTextNode(button.getAttribute("data-processing")); + button.replaceChild(replacement, button.childNodes[0]); + button.disabled = true; + }; +}); + diff --git a/public/assets/cron/css/cron.css b/public/assets/cron/css/cron.css new file mode 100644 index 0000000000..d388c00fea --- /dev/null +++ b/public/assets/cron/css/cron.css @@ -0,0 +1,4 @@ +code#cronlist { + font-size: 0.7vw; + white-space: nowrap; +} diff --git a/public/assets/debugsp/css/splogintest.css b/public/assets/debugsp/css/splogintest.css new file mode 100644 index 0000000000..651a05f61e --- /dev/null +++ b/public/assets/debugsp/css/splogintest.css @@ -0,0 +1 @@ +/* blank file */ diff --git a/public/assets/exampleauth/css/default.css b/public/assets/exampleauth/css/default.css new file mode 100644 index 0000000000..58bce21a0b --- /dev/null +++ b/public/assets/exampleauth/css/default.css @@ -0,0 +1,23 @@ +h2 { + margin-bottom: 0; +} + +h2:hover { + margin-bottom: 0; +} + +a { + text-decoration: unset; +} + +a:hover { + color: unset; +} + +table.profile { + font-size: smaller; +} + +.profile td.key { + padding-right: 10px; +} diff --git a/public/index.php b/public/index.php index 5234b5e748..ed28d1e036 100644 --- a/public/index.php +++ b/public/index.php @@ -6,16 +6,9 @@ require_once('_include.php'); -$config = Configuration::getInstance(); -$httpUtils = new Utils\HTTP(); +$kernel = new Kernel(); +$request = \Symfony\Component\HttpFoundation\Request::createFromGlobals(); +$response = $kernel->handle($request); -$headers = $config->getOptionalArray('headers.security', Configuration::DEFAULT_SECURITY_HEADERS); -$redirect = $config->getOptionalString('frontpage.redirect', Module::getModuleURL('core/welcome')); -$response = new HTTP\RunnableResponse([$httpUtils, 'redirectTrustedURL'], [$redirect]); -foreach ($headers as $header => $value) { - // Some pages may have specific requirements that we must follow. Don't touch them. - if (!$response->headers->has($header)) { - $response->headers->set($header, $value); - } -} $response->send(); +$kernel->terminate($request, $response); diff --git a/public/module.php b/public/module.php deleted file mode 100644 index 18ca9e8681..0000000000 --- a/public/module.php +++ /dev/null @@ -1,24 +0,0 @@ -getOptionalArray('headers.security', Configuration::DEFAULT_SECURITY_HEADERS); - -$response = Module::process(); -foreach ($headers as $header => $value) { - // Some pages may have specific requirements that we must follow. Don't touch them. - if (!$response->headers->has($header)) { - $response->headers->set($header, $value); - } -} -$response->send(); diff --git a/public/saml2/idp/ArtifactResolutionService.php b/public/saml2/idp/ArtifactResolutionService.php deleted file mode 100644 index e8a5bfd404..0000000000 --- a/public/saml2/idp/ArtifactResolutionService.php +++ /dev/null @@ -1,30 +0,0 @@ -getOptionalArray('headers.security', Configuration::DEFAULT_SECURITY_HEADERS); - -$response = $controller->ArtifactResolutionService($request); -foreach ($headers as $header => $value) { - // Some pages may have specific requirements that we must follow. Don't touch them. - if (!$response->headers->has($header)) { - $response->headers->set($header, $value); - } -} -$response->send(); diff --git a/public/saml2/idp/SSOService.php b/public/saml2/idp/SSOService.php deleted file mode 100644 index 52407bfac0..0000000000 --- a/public/saml2/idp/SSOService.php +++ /dev/null @@ -1,30 +0,0 @@ -getOptionalArray('headers.security', Configuration::DEFAULT_SECURITY_HEADERS); - -$response = $controller->singleSignOnService($request); -foreach ($headers as $header => $value) { - // Some pages may have specific requirements that we must follow. Don't touch them. - if (!$response->headers->has($header)) { - $response->headers->set($header, $value); - } -} -$response->send(); diff --git a/public/saml2/idp/SingleLogoutService.php b/public/saml2/idp/SingleLogoutService.php deleted file mode 100644 index ea8b1416d2..0000000000 --- a/public/saml2/idp/SingleLogoutService.php +++ /dev/null @@ -1,30 +0,0 @@ -getOptionalArray('headers.security', Configuration::DEFAULT_SECURITY_HEADERS); - -$response = $controller->singleLogout($request); -foreach ($headers as $header => $value) { - // Some pages may have specific requirements that we must follow. Don't touch them. - if (!$response->headers->has($header)) { - $response->headers->set($header, $value); - } -} -$response->send(); diff --git a/public/saml2/idp/initSLO.php b/public/saml2/idp/initSLO.php deleted file mode 100644 index 2037150800..0000000000 --- a/public/saml2/idp/initSLO.php +++ /dev/null @@ -1,30 +0,0 @@ -getOptionalArray('headers.security', Configuration::DEFAULT_SECURITY_HEADERS); - -$response = $controller->initSingleLogout($request); -foreach ($headers as $header => $value) { - // Some pages may have specific requirements that we must follow. Don't touch them. - if (!$response->headers->has($header)) { - $response->headers->set($header, $value); - } -} -$response->send(); diff --git a/public/saml2/idp/metadata.php b/public/saml2/idp/metadata.php deleted file mode 100644 index 650c71aeb6..0000000000 --- a/public/saml2/idp/metadata.php +++ /dev/null @@ -1,30 +0,0 @@ -getOptionalArray('headers.security', Configuration::DEFAULT_SECURITY_HEADERS); - -$response = $controller->metadata($request); -foreach ($headers as $header => $value) { - // Some pages may have specific requirements that we must follow. Don't touch them. - if (!$response->headers->has($header)) { - $response->headers->set($header, $value); - } -} -$response->send(); diff --git a/routing/routes/routes.yml b/routing/routes/routes.yml index ed6b53e704..b38c7d0b31 100644 --- a/routing/routes/routes.yml +++ b/routing/routes/routes.yml @@ -1,28 +1,63 @@ --- -remove_trailing_slash: - path: /{module}/{url} - defaults: { - _controller: SimpleSAML\Module::removeTrailingSlash - } - requirements: - url: ".*/$" +frontpage: + path: / + defaults: + _controller: 'SimpleSAML\Controller\FrontpageController::redirect' methods: [GET] -add_trailing_slash: - path: /{url} - defaults: { - _controller: SimpleSAML\Module::addTrailingSlash - } - requirements: - url: "[a-zA-Z0-9_-]+[^/]$" +frontpage-index: + path: /index.php + defaults: + _controller: 'SimpleSAML\Controller\FrontpageController::redirect' methods: [GET] admin-shortcut: path: /admin - defaults: { - _controller: 'SimpleSAML\Module\admin\Controller\Config::main', - path: /admin, - permanent: true - } + controller: Symfony\Bundle\FrameworkBundle\Controller\RedirectController + defaults: + route: admin-main methods: [GET] + +obsolete-route-redirect-admin-index: + path: /admin/index.php + controller: Symfony\Bundle\FrameworkBundle\Controller\RedirectController + defaults: + route: admin-main + methods: [GET] + +obsolete-route-gone-saml2-idp-ArtifactResolutionService: + path: /saml2/idp/ArtifactResolutionService.php + controller: SimpleSAML\Controller\ObsoleteRouteController + defaults: + message: 'The /saml2/idp entry points are no longer supported. Use the routed /module/saml endpoints instead.' + +obsolete-route-gone-saml2-idp-initSLO: + path: /saml2/idp/initSLO.php + controller: SimpleSAML\Controller\ObsoleteRouteController + defaults: + message: 'The /saml2/idp entry points are no longer supported. Use the routed /module/saml endpoints instead.' + +obsolete-route-gone-saml2-idp-metadata: + path: /saml2/idp/metadata.php + controller: SimpleSAML\Controller\ObsoleteRouteController + defaults: + message: 'The /saml2/idp entry points are no longer supported. Use the routed /module/saml endpoints instead.' + +obsolete-route-gone-saml2-idp-SingleLogoutService: + path: /saml2/idp/SingleLogoutService.php + controller: SimpleSAML\Controller\ObsoleteRouteController + defaults: + message: 'The /saml2/idp entry points are no longer supported. Use the routed /module/saml endpoints instead.' + +obsolete-route-gone-saml2-idp-SSOService: + path: /saml2/idp/SSOService.php + controller: SimpleSAML\Controller\ObsoleteRouteController + defaults: + message: 'The /saml2/idp entry points are no longer supported. Use the routed /module/saml endpoints instead.' + +obsolete-route-gone-module: + path: /module.php + controller: SimpleSAML\Controller\ObsoleteRouteController + defaults: + message: 'The module.php entry point is no longer supported.' diff --git a/routing/services/console.yml b/routing/services/console.yml index 942f3c8ea3..05aeed7e51 100644 --- a/routing/services/console.yml +++ b/routing/services/console.yml @@ -3,10 +3,14 @@ services: # default configuration for services in *this* file _defaults: - public: false + autowire: true + autoconfigure: true SimpleSAML\Command\SspCacheClearCommand: tags: ['console.command'] arguments: $cacheClearer: '@cache_clearer' $filesystem: '@filesystem' + + SimpleSAML\Command\AssetsPublishCommand: + tags: ['console.command'] diff --git a/routing/services/routing.yml b/routing/services/routing.yml deleted file mode 100644 index 7a30b1c46f..0000000000 --- a/routing/services/routing.yml +++ /dev/null @@ -1,76 +0,0 @@ ---- - -services: - # default configuration for services in *this* file - _defaults: - public: false - - routing.resolver: - class: Symfony\Component\Config\Loader\LoaderResolver - - routing.loader.xml: - class: Symfony\Component\Routing\Loader\XmlFileLoader - arguments: - - '@file_locator' - tags: ['routing.loader'] - - routing.loader.yaml: - class: Symfony\Component\Routing\Loader\YamlFileLoader - arguments: - - '@file_locator' - tags: ['routing.loader'] - - routing.loader.php: - class: Symfony\Component\Routing\Loader\PhpFileLoader - arguments: - - '@file_locator' - tags: ['routing.loader'] - - routing.loader.glob: - class: Symfony\Component\Routing\Loader\GlobFileLoader - arguments: - - '@file_locator' - tags: ['routing.loader'] - - routing.loader.directory: - class: Symfony\Component\Routing\Loader\DirectoryLoader - arguments: - - '@file_locator' - tags: ['routing.loader'] - - routing.loader.service: - class: Symfony\Component\Routing\Loader\ContainerLoader - arguments: - - '@service_container' - tags: ['routing.loader'] - - routing.loader: - public: true - class: Symfony\Component\Config\Loader\DelegatingLoader - arguments: - - '@routing.resolver' - - {} - - router.default: - class: Symfony\Component\Routing\Router - arguments: - - '@routing.loader' - - 'kernel::loadRoutes' - - { - resource_type: 'service' - } - - '@?router.request_context' - - router: - alias: router.default - public: true - - router.request_context: - class: Symfony\Component\Routing\RequestContext - - router.router_listener: - class: Symfony\Component\HttpKernel\EventListener\RouterListener - arguments: - - '@router' - - '@request_stack' - - '@?router.request_context' diff --git a/routing/services/services.yml b/routing/services/services.yml deleted file mode 100644 index 0156131757..0000000000 --- a/routing/services/services.yml +++ /dev/null @@ -1,35 +0,0 @@ ---- - -services: - # default configuration for services in *this* file - _defaults: - public: false - - request_stack: - class: Symfony\Component\HttpFoundation\RequestStack - public: true - - Symfony\Component\HttpFoundation\RequestStack: - alias: request_stack - - file_locator: - class: Symfony\Component\Config\FileLocator - - dispatcher: - class: Symfony\Component\EventDispatcher\EventDispatcher - calls: - - method: addSubscriber - arguments: - - '@router_listener' - - method: addSubscriber - arguments: - - '@response_listener' - - http_kernel: - class: Symfony\Component\HttpKernel\HttpKernel - public: true - arguments: - - '@dispatcher' - - '@controller_resolver' - - '@request_stack' - - '@argument_resolver' diff --git a/routing/services/simplesamlphp.yml b/routing/services/simplesamlphp.yml index 27a81a0d2c..c82bb6a33c 100644 --- a/routing/services/simplesamlphp.yml +++ b/routing/services/simplesamlphp.yml @@ -3,7 +3,8 @@ services: # default configuration for services in *this* file _defaults: - public: false + autowire: true + autoconfigure: true SimpleSAML\Configuration: factory: ['SimpleSAML\Configuration', 'getInstance'] @@ -11,11 +12,12 @@ services: SimpleSAML\Session: factory: ['SimpleSAML\Session', 'getSessionFromRequest'] - SimpleSAML\Auth\AuthenticationFactory: - class: SimpleSAML\Auth\AuthenticationFactory - arguments: - - '@SimpleSAML\Configuration' - - '@SimpleSAML\Session' + SimpleSAML\Auth\AuthenticationFactory: ~ - SimpleSAML\Utils\HTTP: - class: SimpleSAML\Utils\HTTP + SimpleSAML\Utils\HTTP: ~ + + SimpleSAML\EventSubscriber\ExceptionSubscriber: + tags: ['kernel.event_subscriber'] + + SimpleSAML\EventSubscriber\SecurityHeadersSubscriber: + tags: ['kernel.event_subscriber'] diff --git a/routing/services/web.yml b/routing/services/web.yml deleted file mode 100644 index fc910f081c..0000000000 --- a/routing/services/web.yml +++ /dev/null @@ -1,25 +0,0 @@ ---- - -services: - # default configuration for services in *this* file - _defaults: - public: false - - controller_resolver: - class: Symfony\Component\HttpKernel\Controller\ContainerControllerResolver - arguments: - - '@service_container' - - argument_metadata_factory: - class: Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadataFactory - - argument_resolver: - class: Symfony\Component\HttpKernel\Controller\ArgumentResolver - arguments: - - '@argument_metadata_factory' - - '' - - response_listener: - class: Symfony\Component\HttpKernel\EventListener\ResponseListener - arguments: - - 'UTF-8' diff --git a/src/SimpleSAML/Asset/ModuleAssetPublisher.php b/src/SimpleSAML/Asset/ModuleAssetPublisher.php new file mode 100644 index 0000000000..92763b34a1 --- /dev/null +++ b/src/SimpleSAML/Asset/ModuleAssetPublisher.php @@ -0,0 +1,58 @@ +. + * + * @param string $baseDir + * @return string[] The list of modules whose published asset trees were updated. + */ + public function publish(string $baseDir): array + { + $baseDir = rtrim($baseDir, DIRECTORY_SEPARATOR); + $modulesDir = $baseDir . '/modules'; + $publicAssetsDir = $baseDir . '/public/assets'; + + $this->filesystem->mkdir($publicAssetsDir); + + $finder = new Finder(); + $finder->directories()->in($modulesDir)->depth(0); + + $published = []; + foreach ($finder as $moduleDir) { + $module = $moduleDir->getFilename(); + $sourceDir = $moduleDir->getRealPath() . '/public/assets'; + $targetDir = sprintf('%s/%s', $publicAssetsDir, $module); + + if (is_dir($sourceDir)) { + $this->filesystem->mirror($sourceDir, $targetDir, null, [ + 'override' => true, + 'delete' => true, + ]); + $published[] = $module; + } elseif (is_dir($targetDir)) { + $this->filesystem->remove($targetDir); + } + } + + return $published; + } +} diff --git a/src/SimpleSAML/Command/AssetsPublishCommand.php b/src/SimpleSAML/Command/AssetsPublishCommand.php new file mode 100644 index 0000000000..08b0dc992e --- /dev/null +++ b/src/SimpleSAML/Command/AssetsPublishCommand.php @@ -0,0 +1,41 @@ +publisher->publish(Configuration::getInstance()->getBaseDir()); + + if (empty($published)) { + $io->success('No module assets needed publishing.'); + } else { + $io->success('Published module assets for: ' . implode(', ', $published)); + } + + return Command::SUCCESS; + } +} diff --git a/src/SimpleSAML/Command/SspCacheClearCommand.php b/src/SimpleSAML/Command/SspCacheClearCommand.php index 272249dc94..9867a02cc6 100644 --- a/src/SimpleSAML/Command/SspCacheClearCommand.php +++ b/src/SimpleSAML/Command/SspCacheClearCommand.php @@ -6,10 +6,10 @@ use SimpleSAML\Configuration; use SimpleSAML\Error\CriticalConfigurationError; -use SimpleSAML\Kernel; -use Symfony\Component\Config\Loader\LoaderInterface; +use Symfony\Bundle\FrameworkBundle\Console\Application as FrameworkApplication; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Command\Command; +use Symfony\Component\Console\Exception\LogicException; use Symfony\Component\Console\Exception\RuntimeException; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; @@ -21,25 +21,17 @@ use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Finder\Finder; use Symfony\Component\HttpKernel\CacheClearer\CacheClearerInterface; -use Symfony\Component\HttpKernel\Kernel as BaseKernel; -use Symfony\Component\HttpKernel\KernelInterface; use Symfony\Component\HttpKernel\RebootableInterface; #[AsCommand( name: 'ssp-cache:clear', - description: 'SimpleSamlPHP cache clear command. Clear the SimpleSamlPHP and all modules cache.', + description: 'SimpleSamlPHP cache clear command. Clear and warm up the global application cache.', )] class SspCacheClearCommand extends Command { /** @var \Symfony\Component\Filesystem\Filesystem */ private Filesystem $filesystem; - /** @var array */ - private array $enabledModules; - - /** @var \Symfony\Component\HttpKernel\KernelInterface */ - private KernelInterface $temporaryKernel; - /** * @param \Symfony\Component\HttpKernel\CacheClearer\CacheClearerInterface $cacheClearer @@ -51,24 +43,6 @@ public function __construct( ) { parent::__construct(); $this->filesystem = $filesystem ?? new Filesystem(); - - $this->temporaryKernel = new class ('test', true) extends BaseKernel { - public function registerBundles(): iterable - { - return []; - } - - - public function registerContainerConfiguration(LoaderInterface $loader): void - { - } - - - public function getContainerClass(): string - { - return parent::getContainerClass(); - } - }; } @@ -104,153 +78,134 @@ protected function execute(InputInterface $input, OutputInterface $output): int $io = new SymfonyStyle($input, $output); $fs = $this->filesystem; try { - $this->enabledModules = Configuration::getInstance()->getArray('module.enable'); - } catch (CriticalConfigurationError $e) { + Configuration::getInstance(); + } catch (CriticalConfigurationError) { $io->comment('Error:configuration file not found'); - exit; - } - $io->comment('Starting the SimpleSamlPHP cache clearing process.'); - - $application = $this->getApplication(); - - if ($application === null) { - $io->error('Application instance is not available.'); return Command::FAILURE; } + $io->comment('Starting the SimpleSAMLphp cache clearing process.'); - // Iterate and clean - foreach ($this->enabledModules as $module => $enabled) { - // Only work on enabled modules - if (!filter_var($enabled, FILTER_VALIDATE_BOOLEAN)) { - continue; - } - $io->comment(sprintf('Clearing cache for module: "%s".', $module)); - - $kernel = new Kernel($module); - $kernel->boot(); - - $realCacheDir = $kernel->getContainer()->getParameter('kernel.cache_dir'); - $realBuildDir = $kernel->getContainer()->hasParameter('kernel.build_dir') - ? $kernel->getContainer()->getParameter('kernel.build_dir') : $realCacheDir; - // the old cache dir name must not be longer than the real one to avoid exceeding - // the maximum length of a directory or file path within it (esp. Windows MAX_PATH) - $oldCacheDir = substr($realCacheDir, 0, -1) . (str_ends_with($realCacheDir, '~') ? '+' : '~'); - $fs->remove($oldCacheDir); + $application = $this->getFrameworkApplication(); - if (!is_writable($realCacheDir)) { - throw new RuntimeException(sprintf('Unable to write in the "%s" directory.', $realCacheDir)); - } + $kernel = $application->getKernel(); + $realCacheDir = $kernel->getContainer()->getParameter('kernel.cache_dir'); + $realBuildDir = $kernel->getContainer()->hasParameter('kernel.build_dir') + ? $kernel->getContainer()->getParameter('kernel.build_dir') : $realCacheDir; + // the old cache dir name must not be longer than the real one to avoid exceeding + // the maximum length of a directory or file path within it (esp. Windows MAX_PATH) + $oldCacheDir = substr($realCacheDir, 0, -1) . (str_ends_with($realCacheDir, '~') ? '+' : '~'); + $fs->remove($oldCacheDir); - $useBuildDir = $realBuildDir !== $realCacheDir; - $oldBuildDir = substr($realBuildDir, 0, -1) . (str_ends_with($realBuildDir, '~') ? '+' : '~'); - if ($useBuildDir) { - $fs->remove($oldBuildDir); + if (!is_writable($realCacheDir)) { + throw new RuntimeException(sprintf('Unable to write in the "%s" directory.', $realCacheDir)); + } - if (!is_writable($realBuildDir)) { - throw new RuntimeException(sprintf('Unable to write in the "%s" directory.', $realBuildDir)); - } + $useBuildDir = $realBuildDir !== $realCacheDir; + $oldBuildDir = substr($realBuildDir, 0, -1) . (str_ends_with($realBuildDir, '~') ? '+' : '~'); + if ($useBuildDir) { + $fs->remove($oldBuildDir); - if ($this->isNfs($realCacheDir)) { - $fs->remove($realCacheDir); - } else { - $fs->rename($realCacheDir, $oldCacheDir); - } - $fs->mkdir($realCacheDir); + if (!is_writable($realBuildDir)) { + throw new RuntimeException(sprintf('Unable to write in the "%s" directory.', $realBuildDir)); } - if ($useBuildDir) { - $this->cacheClearer->clear($realBuildDir); + if ($this->isNfs($realCacheDir)) { + $fs->remove($realCacheDir); + } else { + $fs->rename($realCacheDir, $oldCacheDir); } - $this->cacheClearer->clear($realCacheDir); + $fs->mkdir($realCacheDir); + } - // The current event dispatcher is stale, let's not use it anymore - $this->getApplication()->setDispatcher(new EventDispatcher()); + $io->comment(sprintf( + 'Clearing the cache for the %s environment with debug %s.', + $kernel->getEnvironment(), + var_export($kernel->isDebug(), true), + )); + if ($useBuildDir) { + $this->cacheClearer->clear($realBuildDir); + } + $this->cacheClearer->clear($realCacheDir); - $containerFile = (new \ReflectionObject($kernel->getContainer()))->getFileName(); - $containerDir = basename(\dirname($containerFile)); + // The current event dispatcher is stale, let's not use it anymore + $application->setDispatcher(new EventDispatcher()); - // the warmup cache dir name must have the same length as the real one - // to avoid the many problems in serialized resources files - $warmupDir = substr($realBuildDir, 0, -1) . (str_ends_with($realBuildDir, '_') ? '-' : '_'); + $containerFile = (new \ReflectionObject($kernel->getContainer()))->getFileName(); + $containerDir = basename(\dirname($containerFile)); - if ($output->isVerbose() && $fs->exists($warmupDir)) { - $io->comment('Clearing outdated warmup directory...'); + // the warmup cache dir name must have the same length as the real one + // to avoid the many problems in serialized resources files + $warmupDir = substr($realBuildDir, 0, -1) . (str_ends_with($realBuildDir, '_') ? '-' : '_'); + + if ($output->isVerbose() && $fs->exists($warmupDir)) { + $io->comment('Clearing outdated warmup directory...'); + } + $fs->remove($warmupDir); + + if ($_SERVER['REQUEST_TIME'] <= filemtime($containerFile) && filemtime($containerFile) <= time()) { + if ($output->isVerbose()) { + $io->comment('Cache is fresh.'); } - $fs->remove($warmupDir); + if (!$input->getOption('no-warmup') && !$input->getOption('no-optional-warmers')) { + if ($output->isVerbose()) { + $io->comment('Warming up optional cache...'); + } + $this->warmupOptionals($realCacheDir, $realBuildDir, $io); + } + } else { + $fs->mkdir($warmupDir); - if ($_SERVER['REQUEST_TIME'] <= filemtime($containerFile) && filemtime($containerFile) <= time()) { + if (!$input->getOption('no-warmup')) { if ($output->isVerbose()) { - $io->comment('Cache is fresh.'); + $io->comment('Warming up cache...'); } - if (!$input->getOption('no-warmup') && !$input->getOption('no-optional-warmers')) { + $this->warmup($warmupDir, $realBuildDir); + + if (!$input->getOption('no-optional-warmers')) { if ($output->isVerbose()) { $io->comment('Warming up optional cache...'); } - $this->warmupOptionals($realCacheDir, $realBuildDir, $io); + $this->warmupOptionals($useBuildDir ? $realCacheDir : $warmupDir, $warmupDir, $io); } - } else { - $fs->mkdir($warmupDir); - if (!$input->getOption('no-warmup')) { - if ($output->isVerbose()) { - $io->comment('Warming up cache...'); + // fix references to cached files with the real cache directory name + $search = [ + $warmupDir, + str_replace('/', '\\/', $warmupDir), + str_replace('\\', '\\\\', $warmupDir), + ]; + $replace = str_replace('\\', '/', $realBuildDir); + foreach (Finder::create()->files()->in($warmupDir) as $file) { + $content = str_replace($search, $replace, file_get_contents($file), $count); + if ($count) { + file_put_contents($file, $content); } - $this->warmup($warmupDir, $realBuildDir); - - if (!$input->getOption('no-optional-warmers')) { - if ($output->isVerbose()) { - $io->comment('Warming up optional cache...'); - } - $this->warmupOptionals($useBuildDir ? $realCacheDir : $warmupDir, $warmupDir, $io); - } - - // fix references to cached files with the real cache directory name - $search = [ - $warmupDir, - str_replace('/', '\\/', $warmupDir), - str_replace('\\', '\\\\', $warmupDir), - ]; - $replace = str_replace('\\', '/', $realBuildDir); - foreach (Finder::create()->files()->in($warmupDir) as $file) { - $content = str_replace($search, $replace, file_get_contents($file), $count); - if ($count) { - file_put_contents($file, $content); - } - } - } - - if (!$fs->exists($warmupDir . '/' . $containerDir)) { - $fs->rename($realBuildDir . '/' . $containerDir, $warmupDir . '/' . $containerDir); - touch($warmupDir . '/' . $containerDir . '.legacy'); } + } - if ($this->isNfs($realBuildDir)) { - $noteMessage = 'For better performance, you should move ' - . 'the cache and log directories to a non-shared folder of the VM.'; - $io->note($noteMessage); - $fs->remove($realBuildDir); - } else { - $fs->rename($realBuildDir, $oldBuildDir); - } + if (!$fs->exists($warmupDir . '/' . $containerDir)) { + $fs->rename($realBuildDir . '/' . $containerDir, $warmupDir . '/' . $containerDir); + touch($warmupDir . '/' . $containerDir . '.legacy'); + } - $fs->rename($warmupDir, $realBuildDir); + if ($this->isNfs($realBuildDir)) { + $noteMessage = 'For better performance, you should move ' + . 'the cache and log directories to a non-shared folder of the VM.'; + $io->note($noteMessage); + $fs->remove($realBuildDir); + } else { + $fs->rename($realBuildDir, $oldBuildDir); + } - if ($output->isVerbose()) { - $io->comment('Removing old build and cache directory...'); - } + $fs->rename($warmupDir, $realBuildDir); - if ($useBuildDir) { - try { - $fs->remove($oldBuildDir); - } catch (IOException $e) { - if ($output->isVerbose()) { - $io->warning($e->getMessage()); - } - } - } + if ($output->isVerbose()) { + $io->comment('Removing old build and cache directory...'); + } + if ($useBuildDir) { try { - $fs->remove($oldCacheDir); + $fs->remove($oldBuildDir); } catch (IOException $e) { if ($output->isVerbose()) { $io->warning($e->getMessage()); @@ -258,20 +213,24 @@ protected function execute(InputInterface $input, OutputInterface $output): int } } - if ($output->isVerbose()) { - $io->comment('Finished'); + try { + $fs->remove($oldCacheDir); + } catch (IOException $e) { + if ($output->isVerbose()) { + $io->warning($e->getMessage()); + } } + } - $io->comment( - sprintf('Cache for module: "%s" was successfully cleared.', $module), - ); - - - // Shutdown and restart - $kernel->shutdown(); + if ($output->isVerbose()) { + $io->comment('Finished'); } - $io->success('SimpleSAML and Modules cache clearing completed successfully!'); + $io->success(sprintf( + 'Cache for the "%s" environment (debug=%s) was successfully cleared.', + $kernel->getEnvironment(), + var_export($kernel->isDebug(), true), + )); return Command::SUCCESS; } @@ -315,8 +274,7 @@ private function isNfs(string $dir): bool */ private function warmup(string $warmupDir, string $realBuildDir): void { - // create a temporary kernel - $kernel = $this->temporaryKernel; + $kernel = $this->getFrameworkApplication()->getKernel(); if (!$kernel instanceof RebootableInterface) { $throwMessage = 'Calling "cache:clear" with a kernel that does not implement ' . '"Symfony\Component\HttpKernel\RebootableInterface" is not supported.'; @@ -333,7 +291,7 @@ private function warmup(string $warmupDir, string $realBuildDir): void */ private function warmupOptionals(string $cacheDir, string $warmupDir, SymfonyStyle $io): void { - $kernel = $this->temporaryKernel; + $kernel = $this->getFrameworkApplication()->getKernel(); $warmer = $kernel->getContainer()->get('cache_warmer'); // non optional warmers already ran during container compilation $warmer->enableOnlyOptionalWarmers(); @@ -347,4 +305,15 @@ private function warmupOptionals(string $cacheDir, string $warmupDir, SymfonySty Preloader::append($preloadFile, $preload); } } + + + private function getFrameworkApplication(): FrameworkApplication + { + $application = $this->getApplication(); + if (!$application instanceof FrameworkApplication) { + throw new LogicException('Framework application instance is not available.'); + } + + return $application; + } } diff --git a/src/SimpleSAML/Console/Application.php b/src/SimpleSAML/Console/Application.php index c5dd8af612..86f42876e7 100644 --- a/src/SimpleSAML/Console/Application.php +++ b/src/SimpleSAML/Console/Application.php @@ -6,7 +6,6 @@ use SimpleSAML\Kernel; use Symfony\Bundle\FrameworkBundle\Console\Application as BaseApplication; -use Symfony\Component\Console\Input\InputOption; class Application extends BaseApplication { @@ -16,10 +15,5 @@ class Application extends BaseApplication public function __construct(Kernel $kernel) { parent::__construct($kernel); - - $inputDefinition = $this->getDefinition(); - $inputDefinition->addOption( - new InputOption('--module', '-m', InputOption::VALUE_REQUIRED, 'The module name', $kernel->getModule()), - ); } } diff --git a/src/SimpleSAML/Controller/FrontpageController.php b/src/SimpleSAML/Controller/FrontpageController.php new file mode 100644 index 0000000000..7eef104bef --- /dev/null +++ b/src/SimpleSAML/Controller/FrontpageController.php @@ -0,0 +1,23 @@ +getOptionalString('frontpage.redirect', Module::getModuleURL('core/welcome')); + + return new RunnableResponse([$httpUtils, 'redirectTrustedURL'], [$redirect]); + } +} diff --git a/src/SimpleSAML/Controller/ObsoleteRouteController.php b/src/SimpleSAML/Controller/ObsoleteRouteController.php new file mode 100644 index 0000000000..54266ef002 --- /dev/null +++ b/src/SimpleSAML/Controller/ObsoleteRouteController.php @@ -0,0 +1,21 @@ + 'text/plain; charset=UTF-8'], + ); + } +} diff --git a/src/SimpleSAML/Error/Error.php b/src/SimpleSAML/Error/Error.php index 21a3b0eb66..d66c259401 100644 --- a/src/SimpleSAML/Error/Error.php +++ b/src/SimpleSAML/Error/Error.php @@ -4,7 +4,6 @@ namespace SimpleSAML\Error; -use SimpleSAML\Assert\Assert; use SimpleSAML\Configuration; use SimpleSAML\Logger; use SimpleSAML\Module; @@ -174,17 +173,6 @@ public function getDictDescr(): string } - /** - * Set the HTTP return code for this error. - * - * This should be overridden by subclasses who want a different return code than 500 Internal Server Error. - */ - protected function setHTTPCode(): void - { - http_response_code($this->httpCode); - } - - /** * Save an error report. * @@ -228,14 +216,15 @@ protected function saveError(): array /** - * Display this error. + * Render this error as a Template. * - * This method displays a standard SimpleSAMLphp error page and exits. + * This method builds a standard SimpleSAMLphp error page as a Template object. * * @param int $logLevel The log-level for this exception * @param bool $suppressReport Whether or not sending an error report is an option + * @return \SimpleSAML\XHTML\Template The template representing the error page. */ - public function show(int $logLevel = Logger::ERR, bool $suppressReport = false): void + public function render(int $logLevel = Logger::ERR, bool $suppressReport = false): Template { // log the error message $this->log($logLevel); @@ -277,28 +266,36 @@ public function show(int $logLevel = Logger::ERR, bool $suppressReport = false): } } - $show_function = $config->getOptionalArray('errors.show_function', null); - if (isset($show_function)) { - Assert::isCallable($show_function); - $this->setHTTPCode(); - call_user_func($show_function, $config, $data); - Assert::true(false); - } else { - $t = new Template($config, 'error.twig'); - - // Include translations for the module that holds the included template - if ($this->includeTemplate !== null) { - $module = explode(':', $this->includeTemplate, 2); - if (count($module) === 2 && Module::isModuleEnabled($module[0])) { - $t->getLocalization()->addModuleDomain($module[0]); - } - } + $t = new Template($config, 'error.twig'); - $t->setStatusCode($this->httpCode); - $t->data = array_merge($t->data, $data); - $t->send(); + // Include translations for the module that holds the included template + if ($this->includeTemplate !== null) { + $module = explode(':', $this->includeTemplate, 2); + if (count($module) === 2 && Module::isModuleEnabled($module[0])) { + $t->getLocalization()->addModuleDomain($module[0]); + } } + $t->setStatusCode($this->httpCode); + $t->data = array_merge($t->data, $data); + $t->setContent($t->getContents()); + + return $t; + } + + + /** + * Display this error. + * + * This method displays a standard SimpleSAMLphp error page and exits. + * + * @param int $logLevel The log-level for this exception + * @param bool $suppressReport Whether or not sending an error report is an option + */ + public function show(int $logLevel = Logger::ERR, bool $suppressReport = false): void + { + $response = $this->render($logLevel, $suppressReport); + $response->send(); exit; } } diff --git a/src/SimpleSAML/Error/ExceptionHandler.php b/src/SimpleSAML/Error/ExceptionHandler.php index 6720715631..437ec0f721 100644 --- a/src/SimpleSAML/Error/ExceptionHandler.php +++ b/src/SimpleSAML/Error/ExceptionHandler.php @@ -4,17 +4,15 @@ namespace SimpleSAML\Error; -use Error as BuiltinError; -use Exception as BuiltinException; use SimpleSAML\Event\Dispatcher\ModuleEventDispatcherFactory; use SimpleSAML\Event\ExceptionHandlerEvent; use SimpleSAML\Logger; use SimpleSAML\Module; +use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException; +use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Throwable; -use function class_exists; - /** * SimpleSAMLphp's custom exception handler. * @@ -22,11 +20,25 @@ */ class ExceptionHandler { - /** - * @param \Throwable $exception - * @return void - */ + /** + * @param \Throwable $exception + * @return void + */ public function customExceptionHandler(Throwable $exception): void + { + $response = $this->handleException($exception); + $response->send(); + exit; + } + + + /** + * Handle an exception and return a Response. + * + * @param \Throwable $exception + * @return \Symfony\Component\HttpFoundation\Response + */ + public function handleException(Throwable $exception): Response { $eventDispatcher = ModuleEventDispatcherFactory::getInstance(); /** @var \SimpleSAML\Event\ExceptionHandlerEvent $event */ @@ -37,15 +49,20 @@ public function customExceptionHandler(Throwable $exception): void if ($exception instanceof MethodNotAllowedHttpException) { $e = new MethodNotAllowed($exception); - $e->show(Logger::DEBUG, true); - } elseif ($exception instanceof Error) { - $exception->show(); - } elseif ($exception instanceof BuiltinException) { - $e = new Error(ErrorCodes::UNHANDLEDEXCEPTION, $exception); - $e->show(); - } elseif (class_exists('Error') && $exception instanceof BuiltinError) { - $e = new Error(ErrorCodes::UNHANDLEDEXCEPTION, $exception); - $e->show(); + return $e->render(Logger::DEBUG, true); } + + if ($exception instanceof NotFoundHttpException) { + $e = new NotFound(); + return $e->render(Logger::DEBUG, true); + } + + if ($exception instanceof Error) { + return $exception->render(); + } + + // Fallback for any other Throwable (Exception, Error, etc.) + $e = new Error(ErrorCodes::UNHANDLEDEXCEPTION, $exception); + return $e->render(); } } diff --git a/src/SimpleSAML/EventSubscriber/ExceptionSubscriber.php b/src/SimpleSAML/EventSubscriber/ExceptionSubscriber.php new file mode 100644 index 0000000000..86bcb0e0de --- /dev/null +++ b/src/SimpleSAML/EventSubscriber/ExceptionSubscriber.php @@ -0,0 +1,45 @@ +> + */ + public static function getSubscribedEvents(): array + { + return [ + // Use a high priority to handle exceptions before Symfony's ErrorListener + KernelEvents::EXCEPTION => ['onKernelException', 200], + ]; + } + + + public function onKernelException(ExceptionEvent $event): void + { + $exception = $event->getThrowable(); + + $handler = new ExceptionHandler(); + $response = $handler->handleException($exception); + + $event->setResponse($response); + } +} diff --git a/src/SimpleSAML/EventSubscriber/SecurityHeadersSubscriber.php b/src/SimpleSAML/EventSubscriber/SecurityHeadersSubscriber.php new file mode 100644 index 0000000000..9a86e1c920 --- /dev/null +++ b/src/SimpleSAML/EventSubscriber/SecurityHeadersSubscriber.php @@ -0,0 +1,52 @@ +> + */ + public static function getSubscribedEvents(): array + { + return [ + KernelEvents::RESPONSE => ['onKernelResponse', 0], + ]; + } + + + public function onKernelResponse(ResponseEvent $event): void + { + if (!$event->isMainRequest()) { + return; + } + + $response = $event->getResponse(); + + $headers = $this->config->getOptionalArray('headers.security', Configuration::DEFAULT_SECURITY_HEADERS); + foreach ($headers as $header => $value) { + // Some pages may have specific requirements that we must follow. Don't touch them. + if (!$response->headers->has($header)) { + $response->headers->set($header, $value); + } + } + } +} diff --git a/src/SimpleSAML/Kernel.php b/src/SimpleSAML/Kernel.php index 32e0b48b4a..83b0252301 100644 --- a/src/SimpleSAML/Kernel.php +++ b/src/SimpleSAML/Kernel.php @@ -32,17 +32,8 @@ class Kernel extends BaseKernel public const string CONFIG_EXTS = '.{php,xml,yaml,yml}'; - /** @var string */ - private string $module; - - - /** - * @param string $module - */ - public function __construct(string $module) + public function __construct() { - $this->module = $module; - $env = getenv('APP_ENV') ?: (getenv('SYMFONY_ENV') ?: 'prod'); parent::__construct($env, false); @@ -61,7 +52,7 @@ public function getCacheDir(): string $cacheDir = $cache ?? $temp; Assert::notNull($cacheDir, "Missing cachedir parameter in config.php"); - $cachePath = $cacheDir . DIRECTORY_SEPARATOR . $this->module; + $cachePath = $cacheDir . DIRECTORY_SEPARATOR . 'global'; $sysUtils = new System(); if ($sysUtils->isAbsolutePath($cachePath)) { @@ -101,17 +92,6 @@ public function registerBundles(): array } - /** - * Get the module loaded in this kernel. - * - * @return string - */ - public function getModule(): string - { - return $this->module; - } - - /** * Configures the container. * @@ -123,9 +103,11 @@ protected function configureContainer(ContainerBuilder $container, LoaderInterfa $configuration = Configuration::getInstance(); $baseDir = $configuration->getBaseDir(); $loader->load($baseDir . '/routing/services/*' . self::CONFIG_EXTS, 'glob'); - $confDir = Module::getModuleDir($this->module) . '/routing/services'; - if (is_dir($confDir)) { - $loader->load($confDir . '/**/*' . self::CONFIG_EXTS, 'glob'); + foreach ($this->getEnabledModules() as $module) { + $confDir = Module::getModuleDir($module) . '/routing/services'; + if (is_dir($confDir)) { + $loader->load($confDir . '/**/*' . self::CONFIG_EXTS, 'glob'); + } } $container->loadFromExtension('framework', [ @@ -146,9 +128,26 @@ protected function configureRoutes(RoutingConfigurator $routes): void $configuration = Configuration::getInstance(); $baseDir = $configuration->getBaseDir(); $routes->import($baseDir . '/routing/routes/*' . self::CONFIG_EXTS); - $confDir = Module::getModuleDir($this->module) . '/routing/routes'; - if (is_dir($confDir)) { - $routes->import($confDir . '/**/*' . self::CONFIG_EXTS)->prefix($this->module); + foreach ($this->getEnabledModules() as $module) { + $confDir = Module::getModuleDir($module) . '/routing/routes'; + if (is_dir($confDir)) { + $routes->import($confDir . '/**/*' . self::CONFIG_EXTS)->prefix('/module/' . $module, false); + + /** + * Transition compatibility: also serve every module route under the legacy + * "module.php" path prefix that peers may still hold in exchanged metadata + * (e.g. SSO, ACS, SLO, and metadata endpoints, including those published + * by modules such as oidc, casserver adfs, or any other custom module). + * + * @deprecated Scheduled for removal in a future major release; see the v3.0 upgrade + * notes. Implementers should republish metadata with the new URLs. + * + * @todo Remove legacy 'module.php' routes in a future major release. + */ + $routes->import($confDir . '/**/*' . self::CONFIG_EXTS) + ->prefix('/module.php/' . $module, false) + ->namePrefix('legacy-'); + } } } @@ -158,27 +157,45 @@ protected function configureRoutes(RoutingConfigurator $routes): void */ private function registerModuleControllers(ContainerBuilder $container): void { - try { - $definition = new Definition(); - $definition->setAutowired(true); - $definition->setPublic(true); + foreach ($this->getEnabledModules() as $module) { + try { + $definition = new Definition(); + $definition->setAutowired(true); + $definition->setPublic(true); + + $controllerDir = Module::getModuleDir($module) . '/src/Controller'; + + if (!is_dir($controllerDir)) { + continue; + } + + $loader = new DirectoryLoader( + $container, + new FileLocator($controllerDir . '/'), + ); + $loader->registerClasses( + $definition, + 'SimpleSAML\\Module\\' . $module . '\\Controller\\', + $controllerDir . '/*', + ); + } catch (FileLocatorFileNotFoundException $e) { + } + } + } - $controllerDir = Module::getModuleDir($this->module) . '/src/Controller'; - if (!is_dir($controllerDir)) { - return; + /** + * @return string[] + */ + private function getEnabledModules(): array + { + $modules = []; + foreach (Module::getModules() as $module) { + if (Module::isModuleEnabled($module)) { + $modules[] = $module; } - - $loader = new DirectoryLoader( - $container, - new FileLocator($controllerDir . '/'), - ); - $loader->registerClasses( - $definition, - 'SimpleSAML\\Module\\' . $this->module . '\\Controller\\', - $controllerDir . '/*', - ); - } catch (FileLocatorFileNotFoundException $e) { } + + return $modules; } } diff --git a/src/SimpleSAML/Metadata/MetaDataStorageHandler.php b/src/SimpleSAML/Metadata/MetaDataStorageHandler.php index ccd7627c87..4c0137e99c 100644 --- a/src/SimpleSAML/Metadata/MetaDataStorageHandler.php +++ b/src/SimpleSAML/Metadata/MetaDataStorageHandler.php @@ -116,13 +116,13 @@ public function getGenerated( } elseif ($set == 'saml20-idp-hosted') { switch ($property) { case 'SingleSignOnService': - return $baseurl . 'module.php/saml/idp/singleSignOnService'; + return $baseurl . 'module/saml/idp/singleSignOnService'; case 'SingleSignOnServiceBinding': return Constants::BINDING_HTTP_REDIRECT; case 'SingleLogoutService': - return $baseurl . 'module.php/saml/idp/singleLogout'; + return $baseurl . 'module/saml/idp/singleLogout'; case 'SingleLogoutServiceBinding': return Constants::BINDING_HTTP_REDIRECT; diff --git a/src/SimpleSAML/Module.php b/src/SimpleSAML/Module.php index e32b20381d..78c636dc57 100644 --- a/src/SimpleSAML/Module.php +++ b/src/SimpleSAML/Module.php @@ -6,43 +6,26 @@ use Exception; use SimpleSAML\Assert\Assert; -use SimpleSAML\Kernel; use SimpleSAML\Utils; -use Symfony\Component\Config\Exception\FileLocatorFileNotFoundException; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Filesystem\Path; use Symfony\Component\Finder\Finder; -use Symfony\Component\HttpFoundation\BinaryFileResponse; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpFoundation\ResponseHeaderBag; -use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; -use function array_filter; use function array_key_exists; use function class_exists; use function count; use function dirname; use function explode; -use function function_exists; use function in_array; use function is_bool; use function is_callable; use function is_dir; -use function is_file; -use function is_null; use function is_subclass_of; -use function mb_strtolower; -use function mime_content_type; -use function preg_match; use function rtrim; use function str_replace; -use function strlen; -use function strpos; -use function strtolower; use function strval; -use function substr; /** * Helper class for accessing information about modules. @@ -151,207 +134,41 @@ public static function isModuleEnabled(string $module): bool /** - * Handler for module requests. - * - * This controller receives requests for pages hosted by modules, and processes accordingly. Depending on the - * configuration and the actual request, it will run a PHP script and exit, or return a Response produced either - * by another controller or by a static file. + * Legacy handler for the removed module.php entry point. * * @param \Symfony\Component\HttpFoundation\Request|null $request * The request to process. Defaults to the current one. - * @return ( - * \Symfony\Component\HttpFoundation\Response| - * \Symfony\Component\HttpFoundation\BinaryFileResponse - * ) Returns a Response object that can be sent to the browser. - * - * @throws \SimpleSAML\Error\BadRequest In case the request URI is malformed. - * @throws \SimpleSAML\Error\NotFound - * In case the request URI is invalid or the resource it points to cannot be found. + * @return never + * + * @throws \SimpleSAML\Error\NotFound Always, because module.php is no longer supported. */ - public static function process(?Request $request = null): Response + public static function process(?Request $request = null): never { - if ($request === null) { - $request = Request::createFromGlobals(); - } - - if ($request->server->get('PATH_INFO') === '/' || $request->server->get('PATH_INFO') === null) { - throw new Error\NotFound('No PATH_INFO to module.php'); - } - - $url = $request->server->get('PATH_INFO'); - Assert::same(substr($url, 0, 1), '/'); - - /* clear the PATH_INFO option, so that a script can detect whether it is called with anything following the - *'.php'-ending. - */ - unset($_SERVER['PATH_INFO']); - - $modEnd = strpos($url, '/', 1); - if ($modEnd === false) { - $modEnd = strlen($url); - $module = substr($url, 1); - $url = ''; - } else { - $module = substr($url, 1, $modEnd - 1); - $url = substr($url, $modEnd + 1); - } - - if (!self::isModuleEnabled($module)) { - throw new Error\NotFound(sprintf("The module '%s' was either not found, or wasn't enabled.", $module)); - } - - /* Make sure that the request isn't suspicious (contains references to current directory or parent directory or - * anything like that. Searching for './' in the URL will detect both '../' and './'. Searching for '\' will - * detect attempts to use Windows-style paths. - */ - if (strpos($url, '\\') !== false) { - throw new Error\BadRequest('Requested URL contained a backslash.'); - } elseif (strpos($url, './') !== false) { - throw new Error\BadRequest('Requested URL contained \'./\'.'); - } - - $config = Configuration::getInstance(); - - // rebuild REQUEST_URI and SCRIPT_NAME just in case we need to. - // This is needed for server aliases and rewrites - $translated_uri = $config->getBasePath() . 'module.php/' . $module . '/' . $url; - $request->server->set('REQUEST_URI', $translated_uri); - $request->server->set('SCRIPT_NAME', $config->getBasePath() . 'module.php'); - // strip any NULL files (form file fields with nothing selected) - // because initialize() will throw an error on them - $request_files = array_filter( - $request->files->all(), - function ($val) { - return !is_null($val); - }, - ); - $request->initialize( - $request->query->all(), - $request->request->all(), - $request->attributes->all(), - $request->cookies->all(), - $request_files, - $request->server->all(), - $request->getContent(), - ); - - try { - $kernel = new Kernel($module); - $response = $kernel->handle($request); - $kernel->terminate($request, $response); - - return $response; - } catch (FileLocatorFileNotFoundException $e) { - // no routes configured for this module, fall back to the old system - } catch (NotFoundHttpException $e) { - // this module has been migrated, but the route wasn't found - } - - $moduleDir = self::getModuleDir($module) . '/public/'; - - // check for '.php/' in the path, the presence of which indicates that another php-script should handle the - // request - for ($phpPos = strpos($url, '.php/'); $phpPos !== false; $phpPos = strpos($url, '.php/', $phpPos + 1)) { - $newURL = substr($url, 0, $phpPos + 4); - $param = substr($url, $phpPos + 4); - - if (is_file($moduleDir . $newURL)) { - /* $newPath points to a normal file. Point execution to that file, and save the remainder of the path - * in PATH_INFO. - */ - $url = $newURL; - $request->server->set('PATH_INFO', $param); - $_SERVER['PATH_INFO'] = $param; - break; - } - } - - $path = $moduleDir . $url; - $fileSystem = new Filesystem(); - - if ($path[strlen($path) - 1] === '/') { - // path ends with a slash - directory reference. Attempt to find index file in directory - foreach (self::$indexFiles as $if) { - if ($fileSystem->exists($path . $if)) { - $path .= $if; - break; - } - } - } - - if (is_dir($path)) { - /* Path is a directory - maybe no index file was found in the previous step, or maybe the path didn't end - * with a slash. Either way, we don't do directory listings. - */ - throw new Error\NotFound('Directory listing not available.'); - } - - if (!$fileSystem->exists($path)) { - // file not found - Logger::info('Could not find file \'' . $path . '\'.'); - throw new Error\NotFound("The URL wasn't found in the module."); - } - - if (mb_strtolower(substr($path, -4), 'UTF-8') === '.php') { - // PHP file - attempt to run it - - /* In some environments, $_SERVER['SCRIPT_NAME'] is already set with $_SERVER['PATH_INFO']. Check for that - * case, and append script name only if necessary. - * - * Contributed by Travis Hegner. - */ - $script = "/$module/$url"; - if (strpos($request->getScriptName(), $script) === false) { - $request->server->set('SCRIPT_NAME', $request->getScriptName() . '/' . $module . '/' . $url); - } - - require($path); - exit(); - } + throw new Error\NotFound('The module.php entry point is no longer supported.'); + } - // some other file type - attempt to serve it - // find MIME type for file, based on extension - $contentType = null; - if (preg_match('#\.([^/\.]+)$#D', $path, $type)) { - $type = strtolower($type[1]); - if (array_key_exists($type, self::$mimeTypes)) { - $contentType = self::$mimeTypes[$type]; - } - } + /** + * Get absolute URL to a published module asset. + * + * @param string $module Module name. + * @param string $asset Asset path relative to the module assets directory. + * @param array $parameters Extra parameters which should be added to the URL. Optional. + * @return string + */ + public static function getModuleAssetUrl( + string $module, + string $asset, + array $parameters = [], + ): string { + $httpUtils = new Utils\HTTP(); + $url = $httpUtils->getBaseURL() . 'assets/' . $module . '/' . ltrim($asset, '/'); - if ($contentType === null) { - /* We were unable to determine the MIME type from the file extension. Fall back to mime_content_type (if it - * exists). - */ - if (function_exists('mime_content_type')) { - $contentType = mime_content_type($path); - } else { - // mime_content_type doesn't exist. Return a default MIME type - Logger::warning('Unable to determine mime content type of file: ' . $path); - $contentType = 'application/octet-stream'; - } + if (!empty($parameters)) { + $url = $httpUtils->addURLParameters($url, $parameters); } - - $assetConfig = $config->getOptionalConfigItem('assets', []); - $cacheConfig = $assetConfig->getOptionalConfigItem('caching', []); - $response = new BinaryFileResponse($path); - $response->setCache([ - // "public" allows response caching even if the request was authenticated, - // which is exactly what we want for static resources - 'public' => true, - 'max_age' => strval($cacheConfig->getOptionalInteger('max_age', 86400)), - ]); - $response->setAutoLastModified(); - if ($cacheConfig->getOptionalBoolean('etag', false)) { - $response->setAutoEtag(); - } - $response->isNotModified($request); - $response->headers->set('Content-Type', $contentType); - $response->setContentDisposition(ResponseHeaderBag::DISPOSITION_INLINE); - $response->prepare($request); - return $response; + return $url; } @@ -521,7 +338,7 @@ public static function getModuleURL(string $resource, array $parameters = []): s Assert::notSame($resource[0], '/'); $httpUtils = new Utils\HTTP(); - $url = $httpUtils->getBaseURL() . 'module.php/' . $resource; + $url = $httpUtils->getBaseURL() . 'module/' . $resource; if (!empty($parameters)) { $url = $httpUtils->addURLParameters($url, $parameters); } diff --git a/src/SimpleSAML/Utils/EMail.php b/src/SimpleSAML/Utils/EMail.php index 5ffd1837f0..ecb7ff99a9 100644 --- a/src/SimpleSAML/Utils/EMail.php +++ b/src/SimpleSAML/Utils/EMail.php @@ -86,7 +86,7 @@ public function getMailSenderAddress(): ?string { $config = Configuration::getInstance(); $options = $config->getOptionalArray('mail.transport.options', []); - return $options['sender'] ?: null; + return is_string($sender = $options['sender'] ?? null) ? $sender : null; } diff --git a/src/SimpleSAML/Utils/HTTP.php b/src/SimpleSAML/Utils/HTTP.php index 40626766bd..742759447d 100644 --- a/src/SimpleSAML/Utils/HTTP.php +++ b/src/SimpleSAML/Utils/HTTP.php @@ -18,8 +18,16 @@ use Symfony\Contracts\HttpClient\HttpClientInterface; use function array_merge; +use function basename; +use function dirname; +use function is_string; use function parse_url; +use function realpath; +use function rtrim; use function str_replace; +use function str_starts_with; +use function strlen; +use function substr; /** * HTTP-related utility methods. @@ -649,16 +657,24 @@ public function guessBasePath(): string if (!array_key_exists('REQUEST_URI', $_SERVER) || !array_key_exists('SCRIPT_FILENAME', $_SERVER)) { return '/'; } + + $requestPath = (string) parse_url((string) $_SERVER['REQUEST_URI'], PHP_URL_PATH); + $scriptName = (string) ($_SERVER['SCRIPT_NAME'] ?? ''); + if ($scriptName !== '' && basename($scriptName) === 'index.php') { + $basePath = str_replace(DIRECTORY_SEPARATOR, '/', dirname($scriptName)); + return rtrim($basePath, '/') . '/'; + } + // get the name of the current script - $path = explode(DIRECTORY_SEPARATOR, $_SERVER['SCRIPT_FILENAME']); + $path = explode(DIRECTORY_SEPARATOR, (string) $_SERVER['SCRIPT_FILENAME']); $script = array_pop($path); // get the portion of the URI up to the script, i.e.: /simplesaml/some/directory/script.php - if (!preg_match('#^/(?:[^/]+/)*' . $script . '#', $_SERVER['REQUEST_URI'], $matches)) { + if (!preg_match('#^/(?:[^/]+/)*' . $script . '#', $requestPath, $matches)) { return '/'; } $uri_s = explode('/', $matches[0]); - $file_s = explode(DIRECTORY_SEPARATOR, $_SERVER['SCRIPT_FILENAME']); + $file_s = explode(DIRECTORY_SEPARATOR, (string) $_SERVER['SCRIPT_FILENAME']); // compare both arrays from the end, popping elements matching out of them while ($uri_s[count($uri_s) - 1] === $file_s[count($file_s) - 1]) { @@ -801,9 +817,9 @@ public function getSelfHostWithPath(): string /** * Retrieve the current URL using the base URL in the configuration, if possible. * - * This method will try to see if the current script is part of SimpleSAMLphp. In that case, it will use the - * 'baseurlpath' configuration option to rebuild the current URL based on that. If the current script is NOT - * part of SimpleSAMLphp, it will just return the current URL. + * If the current request is being handled by SimpleSAMLphp's front controller, this method rebuilds the URL from + * the configured base path and the current request URI. If SimpleSAMLphp is being called from another + * application script, it returns that application's current request URL instead. * * Note that this method does NOT make use of the HTTP X-Forwarded-* set of headers. * @@ -812,64 +828,31 @@ public function getSelfHostWithPath(): string public function getSelfURL(): string { $cfg = Configuration::getInstance(); - $baseDir = $cfg->getBaseDir(); - $cur_path = realpath($_SERVER['SCRIPT_FILENAME']); - // make sure we got a string from realpath() - $cur_path = is_string($cur_path) ? $cur_path : ''; - - // find the path to the current script relative to the public/ directory of SimpleSAMLphp - $rel_path = str_replace($baseDir . 'public' . DIRECTORY_SEPARATOR, '', $cur_path); - - $url_path = str_replace(DIRECTORY_SEPARATOR, '/', $rel_path); $requestUri = (string)($_SERVER['REQUEST_URI'] ?? ''); $requestPath = (string)parse_url($requestUri, PHP_URL_PATH); $requestQuery = (string)parse_url($requestUri, PHP_URL_QUERY); $requestFragment = (string)parse_url($requestUri, PHP_URL_FRAGMENT); - // Match script-relative path only against the path part of the request - $uri_pos = (!empty($url_path)) ? strpos($requestPath, $url_path) : false; + if (!$this->isSimpleSamlFrontControllerRequest($cfg)) { + return $this->buildExternalApplicationURL($cfg, $requestUri); + } - if ($cur_path == $rel_path || $uri_pos === false) { - /* - * We were accessed from an external script. This can happen in the following cases: - * - * - $_SERVER['SCRIPT_FILENAME'] points to a script that doesn't exist. E.g. functional testing. In this - * case, realpath() returns false and str_replace an empty string, so we compare them loosely. - * - * - The script is not located under the public/ directory of SimpleSAMLphp. In that case, removing - * SimpleSAMLphp's base dir and public/ from the current path yields the same path, so $cur_path and - * $rel_path are equal. - * - * - The request path does not match the current script. Even if the current script is located in the - * public/ directory of SimpleSAMLphp, the request path (without query string) does not contain its - * relative path, and $uri_pos is false. - * - * It doesn't matter which one of those cases we have. We just know we can't apply our base URL to the - * current URI, so we need to build it back from the PHP environment, unless we have a base URL specified - * for this case in the configuration. First, check if that's the case. - */ - $appcfg = $cfg->getOptionalConfigItem('application', null); - $appurl = ($appcfg !== null) ? $appcfg->getOptionalString('baseURL', null) : null; - - if (!empty($appurl)) { - $protocol = (string)parse_url($appurl, PHP_URL_SCHEME); - $hostname = (string)parse_url($appurl, PHP_URL_HOST); - $portNum = parse_url($appurl, PHP_URL_PORT); - $port = !empty($portNum) ? ':' . $portNum : ''; - } else { - // no base URL specified for app, just use the current URL - $protocol = $this->getServerHTTPS() ? 'https' : 'http'; - $hostname = $this->getServerHost(); - $port = $this->getServerPort(); - } + $basePath = $cfg->getBasePath(); + $trimmedBasePath = rtrim($basePath, '/'); - return $protocol . '://' . $hostname . $port . $_SERVER['REQUEST_URI']; + if ($requestPath === $trimmedBasePath) { + $suffix = ''; + } elseif ($basePath === '/' || str_starts_with($requestPath, $basePath)) { + $suffix = ltrim(substr($requestPath, strlen($basePath)), '/'); + } else { + return $this->buildExternalApplicationURL($cfg, $requestUri); } - // Normal case: baseURL + script-relative path + remaining path, plus query if present - $suffix = substr($requestPath, $uri_pos + strlen($url_path)); - $url = $this->getBaseURL() . $url_path . $suffix; + $url = $this->getBaseURL(); + if ($suffix !== '') { + $url .= $suffix; + } if ($requestQuery !== '') { $url .= '?' . $requestQuery; @@ -883,6 +866,45 @@ public function getSelfURL(): string } + /** + * Check if the current request is being handled by SimpleSAMLphp's front controller. + */ + private function isSimpleSamlFrontControllerRequest(Configuration $cfg): bool + { + if (!array_key_exists('SCRIPT_FILENAME', $_SERVER)) { + return false; + } + + $currentScript = realpath((string) $_SERVER['SCRIPT_FILENAME']); + $frontController = realpath($cfg->getBaseDir() . 'public' . DIRECTORY_SEPARATOR . 'index.php'); + + return is_string($currentScript) && is_string($frontController) && $currentScript === $frontController; + } + + + /** + * Build a URL for requests handled by an embedding application instead of SimpleSAMLphp's front controller. + */ + private function buildExternalApplicationURL(Configuration $cfg, string $requestUri): string + { + $appcfg = $cfg->getOptionalConfigItem('application', null); + $appurl = ($appcfg !== null) ? $appcfg->getOptionalString('baseURL', null) : null; + + if (!empty($appurl)) { + $protocol = (string) parse_url($appurl, PHP_URL_SCHEME); + $hostname = (string) parse_url($appurl, PHP_URL_HOST); + $portNum = parse_url($appurl, PHP_URL_PORT); + $port = !empty($portNum) ? ':' . $portNum : ''; + } else { + $protocol = $this->getServerHTTPS() ? 'https' : 'http'; + $hostname = $this->getServerHost(); + $port = $this->getServerPort(); + } + + return $protocol . '://' . $hostname . $port . $requestUri; + } + + /** * Retrieve the current URL using the base URL in the configuration, containing the protocol, the host and * optionally, the port number. diff --git a/src/SimpleSAML/XHTML/Template.php b/src/SimpleSAML/XHTML/Template.php index 9bc6039a17..10ff03e1d7 100644 --- a/src/SimpleSAML/XHTML/Template.php +++ b/src/SimpleSAML/XHTML/Template.php @@ -186,12 +186,9 @@ public function asset(string $asset, ?string $module = null, bool $tag = true): if (is_null($module)) { $file = $baseDir . 'public/assets/base/' . $asset; $path = $basePath . 'assets/base/' . $asset; - } elseif (file_exists($baseDir . 'public/assets/' . $module)) { - $file = $baseDir . '/public/assets/' . $module . '/' . $asset; - $path = $basePath . 'assets/' . $module . '/' . $asset; } else { - $file = $baseDir . 'modules/' . $module . '/public/assets/' . $asset; - $path = Module::getModuleUrl($module . '/assets/' . $asset); + $file = $baseDir . '/public/assets/' . $module . '/' . $asset; + $path = Module::getModuleAssetUrl($module, $asset); } if (!$this->fileSystem->exists($file)) { diff --git a/tests/modules/cron/src/Controller/CronTest.php b/tests/modules/cron/src/Controller/CronTest.php index ef7b685ee3..55b7e9d4ac 100644 --- a/tests/modules/cron/src/Controller/CronTest.php +++ b/tests/modules/cron/src/Controller/CronTest.php @@ -84,7 +84,7 @@ public function requireAdmin(): void */ public function testInfo(): void { - $_SERVER['REQUEST_URI'] = '/module.php/cron/info'; + $_SERVER['REQUEST_URI'] = '/module/cron/info'; $c = new Controller\Cron($this->config, $this->session); $c->setAuthUtils($this->authUtils); @@ -92,8 +92,8 @@ public function testInfo(): void $this->assertTrue($response->isSuccessful()); $expect = [ - 'exec_href' => 'http://localhost/simplesaml/module.php/cron/run/daily/verysecret', - 'href' => 'http://localhost/simplesaml/module.php/cron/run/daily/verysecret/xhtml', + 'exec_href' => 'http://localhost/simplesaml/module/cron/run/daily/verysecret', + 'href' => 'http://localhost/simplesaml/module/cron/run/daily/verysecret/xhtml', 'tag' => 'daily', 'int' => '02 0 * * *', ]; @@ -106,7 +106,7 @@ public function testInfo(): void */ public function testRunCorrectKey(): void { - $_SERVER['REQUEST_URI'] = '/module.php/cron/run/daily/verysecret'; + $_SERVER['REQUEST_URI'] = '/module/cron/run/daily/verysecret'; $c = new Controller\Cron($this->config, $this->session); $response = $c->run('daily', 'verysecret'); @@ -128,7 +128,7 @@ public function testRunCorrectKey(): void */ public function testRunWrongKey(): void { - $_SERVER['REQUEST_URI'] = '/module.php/cron/run/daily/nodice'; + $_SERVER['REQUEST_URI'] = '/module/cron/run/daily/nodice'; $c = new Controller\Cron($this->config, $this->session); @@ -144,7 +144,7 @@ public function testRunWrongKey(): void #[DataProvider('provideDefaultSecret')] public function testRunDefaultSecret(string $secret): void { - $_SERVER['REQUEST_URI'] = '/module.php/cron/run/daily/' . $secret; + $_SERVER['REQUEST_URI'] = '/module/cron/run/daily/' . $secret; $c = new Controller\Cron($this->config, $this->session); @@ -174,7 +174,7 @@ public function testRunDefaultConfigSecret(string $configKey): void 'simplesaml', ); - $_SERVER['REQUEST_URI'] = '/module.php/cron/run/daily/verysecret'; + $_SERVER['REQUEST_URI'] = '/module/cron/run/daily/verysecret'; $c = new Controller\Cron($this->config, $this->session); diff --git a/tests/modules/saml/src/Auth/Source/SPTest.php b/tests/modules/saml/src/Auth/Source/SPTest.php index f5b17e807b..3dee5ca95a 100644 --- a/tests/modules/saml/src/Auth/Source/SPTest.php +++ b/tests/modules/saml/src/Auth/Source/SPTest.php @@ -456,7 +456,7 @@ public function testMetadataHostedBasicConfig(): void $this->assertIsArray($md['AssertionConsumerService']); foreach ($md['AssertionConsumerService'] as $acs) { $this->assertEquals( - 'http://localhost/simplesaml/module.php/saml/sp/saml2-acs.php/' . $spId, + 'http://localhost/simplesaml/module/saml/sp/saml2-acs.php/' . $spId, $acs['Location'], ); $this->assertStringStartsWith('urn:oasis:names:tc:SAML:2.0:bindings', $acs['Binding']); @@ -1386,7 +1386,7 @@ public function testMetadataHolderOfKeyViaProtocolBindingIsInMetadata(): void $this->assertIsArray($hok); $this->assertEquals('urn:oasis:names:tc:SAML:2.0:profiles:holder-of-key:SSO:browser', $hok['Binding']); $this->assertEquals( - 'http://localhost/simplesaml/module.php/saml/sp/saml2-acs.php/' . $spId, + 'http://localhost/simplesaml/module/saml/sp/saml2-acs.php/' . $spId, $hok['Location'], ); $this->assertEquals(2, $hok['index']); diff --git a/tests/modules/saml/src/IdP/SAML2Test.php b/tests/modules/saml/src/IdP/SAML2Test.php index adf4caf0bc..bfbb54f4bf 100644 --- a/tests/modules/saml/src/IdP/SAML2Test.php +++ b/tests/modules/saml/src/IdP/SAML2Test.php @@ -60,7 +60,7 @@ public function testIdPInitiatedLoginMinimumParams(): void $this->assertStringStartsWith( // phpcs:ignore Generic.Files.LineLength.TooLong - 'http://idp.examlple.com/module.php/saml/idp/singleSignOnService?spentityid=https%3A%2F%2Fsome-sp-entity-id&cookie', + 'http://idp.examlple.com/module/saml/idp/singleSignOnService?spentityid=https%3A%2F%2Fsome-sp-entity-id&cookie', $state['\SimpleSAML\Auth\State.restartURL'], ); unset($state['saml:AuthnRequestReceivedAt']); // timestamp can't be tested in equality assertion @@ -91,7 +91,7 @@ public function testIdPInitiatedLoginOptionalParams(): void //currently only spentityid and relay state are used in the restart url. $this->assertStringStartsWith( - 'http://idp.examlple.com/module.php/saml/idp/singleSignOnService?' + 'http://idp.examlple.com/module/saml/idp/singleSignOnService?' . 'spentityid=https%3A%2F%2Fsome-sp-entity-id&RelayState=http%3A%2F%2Frelay&cookieTime', $state['\SimpleSAML\Auth\State.restartURL'], ); @@ -121,7 +121,7 @@ public function testIdPInitShibCompatyMinimumParams(): void $this->assertStringStartsWith( // phpcs:ignore Generic.Files.LineLength.TooLong - 'http://idp.examlple.com/module.php/saml/idp/singleSignOnService?spentityid=https%3A%2F%2Fsome-sp-entity-id&cookie', + 'http://idp.examlple.com/module/saml/idp/singleSignOnService?spentityid=https%3A%2F%2Fsome-sp-entity-id&cookie', $state['\SimpleSAML\Auth\State.restartURL'], ); unset($state['saml:AuthnRequestReceivedAt']); // timestamp can't be tested in equality assertion @@ -150,7 +150,7 @@ public function testIdPInitShibCompatOptionalParams(): void //currently only spentityid and relay state are used in the restart url. $this->assertStringStartsWith( - 'http://idp.examlple.com/module.php/saml/idp/singleSignOnService?' + 'http://idp.examlple.com/module/saml/idp/singleSignOnService?' . 'spentityid=https%3A%2F%2Fsome-sp-entity-id&RelayState=http%3A%2F%2Frelay&cookieTime', $state['\SimpleSAML\Auth\State.restartURL'], ); @@ -209,7 +209,7 @@ private function idpInitiatedHelper(array $queryParams): array // won't line up perfectly $_REQUEST = $_REQUEST + $queryParams; $_SERVER['HTTP_HOST'] = 'idp.examlple.com'; - $_SERVER['REQUEST_URI'] = '/module.php/saml/idp/singleSignOnService?' . http_build_query($queryParams); + $_SERVER['REQUEST_URI'] = '/module/saml/idp/singleSignOnService?' . http_build_query($queryParams); $state = []; @@ -302,7 +302,7 @@ public function testIdPGetHostedMetadataMinimal(): void $this->assertEquals( [ 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect', - 'Location' => 'http://localhost/simplesaml/module.php/saml/idp/singleSignOnService', + 'Location' => 'http://localhost/simplesaml/module/saml/idp/singleSignOnService', ], $hostedMd['SingleSignOnService'][0], ); @@ -312,7 +312,7 @@ public function testIdPGetHostedMetadataMinimal(): void $this->assertEquals( [ 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect', - 'Location' => 'http://localhost/simplesaml/module.php/saml/idp/singleLogout', + 'Location' => 'http://localhost/simplesaml/module/saml/idp/singleLogout', ], $hostedMd['SingleLogoutService'][0], ); @@ -382,7 +382,7 @@ public function testIdPGetHostedMetadataArtifact(): void [ 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:SOAP', 'index' => 0, - 'Location' => 'http://localhost/simplesaml/module.php/saml/idp/artifactResolutionService', + 'Location' => 'http://localhost/simplesaml/module/saml/idp/artifactResolutionService', ], $hostedMd['ArtifactResolutionService'][0], ); @@ -400,7 +400,7 @@ public function testIdPGetHostedMetadataHolderOfKey(): void $this->assertEquals( [ 'Binding' => 'urn:oasis:names:tc:SAML:2.0:profiles:holder-of-key:SSO:browser', - 'Location' => 'http://localhost/simplesaml/module.php/saml/idp/singleSignOnService', + 'Location' => 'http://localhost/simplesaml/module/saml/idp/singleSignOnService', 'hoksso:ProtocolBinding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect', ], $hostedMd['SingleSignOnService'][0], @@ -408,7 +408,7 @@ public function testIdPGetHostedMetadataHolderOfKey(): void $this->assertEquals( [ 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect', - 'Location' => 'http://localhost/simplesaml/module.php/saml/idp/singleSignOnService', + 'Location' => 'http://localhost/simplesaml/module/saml/idp/singleSignOnService', ], $hostedMd['SingleSignOnService'][1], ); @@ -426,7 +426,7 @@ public function testIdPGetHostedMetadataECP(): void $this->assertEquals( [ 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect', - 'Location' => 'http://localhost/simplesaml/module.php/saml/idp/singleSignOnService', + 'Location' => 'http://localhost/simplesaml/module/saml/idp/singleSignOnService', ], $hostedMd['SingleSignOnService'][0], ); @@ -434,7 +434,7 @@ public function testIdPGetHostedMetadataECP(): void [ 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:SOAP', 'index' => 0, - 'Location' => 'http://localhost/simplesaml/module.php/saml/idp/singleSignOnService', + 'Location' => 'http://localhost/simplesaml/module/saml/idp/singleSignOnService', ], $hostedMd['SingleSignOnService'][1], ); diff --git a/tests/src/SimpleSAML/Asset/ModuleAssetPublisherTest.php b/tests/src/SimpleSAML/Asset/ModuleAssetPublisherTest.php new file mode 100644 index 0000000000..2a12409a40 --- /dev/null +++ b/tests/src/SimpleSAML/Asset/ModuleAssetPublisherTest.php @@ -0,0 +1,41 @@ +publish($baseDir); + + $this->assertEquals(['example'], $published); + $this->assertSame('body{}', file_get_contents($baseDir . '/public/assets/example/css/site.css')); + $this->assertFalse(is_dir($baseDir . '/public/assets/empty')); + $this->assertFileDoesNotExist($baseDir . '/public/assets/example/css/stale.css'); + } +} diff --git a/tests/src/SimpleSAML/Asset/ModuleGitignoreTest.php b/tests/src/SimpleSAML/Asset/ModuleGitignoreTest.php new file mode 100644 index 0000000000..2f863535cc --- /dev/null +++ b/tests/src/SimpleSAML/Asset/ModuleGitignoreTest.php @@ -0,0 +1,48 @@ +assertFileExists($gitignorePath, '.gitignore file should exist'); + $gitignore = file_get_contents($gitignorePath); + + $modules = scandir($modulesDir); + foreach ($modules as $module) { + if ($module === '.' || $module === '..') { + continue; + } + + if (is_dir($modulesDir . '/' . $module . '/public/assets')) { + $expectedLine1 = '!/public/assets/' . $module . '/'; + $expectedLine2 = '!/public/assets/' . $module . '/**'; + + $this->assertStringContainsString( + $expectedLine1, + $gitignore, + "Module '$module' has public assets, but '$expectedLine1' is missing in .gitignore", + ); + $this->assertStringContainsString( + $expectedLine2, + $gitignore, + "Module '$module' has public assets, but '$expectedLine2' is missing in .gitignore", + ); + } + } + } +} diff --git a/tests/src/SimpleSAML/Command/AssetsPublishCommandTest.php b/tests/src/SimpleSAML/Command/AssetsPublishCommandTest.php new file mode 100644 index 0000000000..ca42be5764 --- /dev/null +++ b/tests/src/SimpleSAML/Command/AssetsPublishCommandTest.php @@ -0,0 +1,94 @@ +baseDir = sys_get_temp_dir() . '/ssp-assets-publish-command-' . uniqid(); + mkdir($this->baseDir . '/modules', 0777, true); + mkdir($this->baseDir . '/public/assets', 0777, true); + + Configuration::clearInternalState(); + Configuration::loadFromArray([ + 'basedir' => $this->baseDir, + ], '[ARRAY]', 'simplesaml'); + + $command = new AssetsPublishCommand(new ModuleAssetPublisher()); + $this->commandTester = new CommandTester($command); + } + + + protected function tearDown(): void + { + (new Filesystem())->remove($this->baseDir); + Configuration::clearInternalState(); + } + + + public function testCanCreateInstanceWithDefaultConstructor(): void + { + $command = new AssetsPublishCommand(); + $this->assertInstanceOf(AssetsPublishCommand::class, $command); + } + + + public function testCommandMetadata(): void + { + $command = new AssetsPublishCommand(); + $this->assertSame('assets:publish', $command->getName()); + $this->assertSame('Publish module assets into public/assets.', $command->getDescription()); + } + + + public function testExecuteOutputsSuccessWhenNoAssetsNeededPublishing(): void + { + $this->commandTester->execute([]); + $this->commandTester->assertCommandIsSuccessful(); + + $output = $this->commandTester->getDisplay(); + $this->assertStringContainsString('No module assets needed publishing.', $output); + } + + + public function testExecuteOutputsSuccessWhenAssetsArePublished(): void + { + mkdir($this->baseDir . '/modules/example/public/assets/css', 0777, true); + mkdir($this->baseDir . '/modules/admin/public/assets/js', 0777, true); + file_put_contents($this->baseDir . '/modules/example/public/assets/css/style.css', 'body {}'); + file_put_contents($this->baseDir . '/modules/admin/public/assets/js/script.js', 'console.log();'); + + $this->commandTester->execute([]); + $this->commandTester->assertCommandIsSuccessful(); + + $output = $this->commandTester->getDisplay(); + $this->assertStringContainsString('Published module assets for:', $output); + $this->assertStringContainsString('admin', $output); + $this->assertStringContainsString('example', $output); + } +} diff --git a/tests/src/SimpleSAML/Controller/FrontpageControllerTest.php b/tests/src/SimpleSAML/Controller/FrontpageControllerTest.php new file mode 100644 index 0000000000..d2bf40b57f --- /dev/null +++ b/tests/src/SimpleSAML/Controller/FrontpageControllerTest.php @@ -0,0 +1,78 @@ + 'https://example.com/simplesaml/', + ], '[ARRAY]', 'simplesaml'); + + $controller = new FrontpageController(); + $response = $controller->redirect(); + + $this->assertInstanceOf(RunnableResponse::class, $response); + + $callable = $response->getCallable(); + $this->assertIsArray($callable); + $this->assertInstanceOf(HTTP::class, $callable[0]); + $this->assertSame('redirectTrustedURL', $callable[1]); + + $arguments = $response->getArguments(); + $this->assertCount(1, $arguments); + $this->assertSame('https://example.com/simplesaml/module/core/welcome', $arguments[0]); + } + + + public function testRedirectUsesConfiguredFrontpageRedirect(): void + { + Configuration::loadFromArray([ + 'baseurlpath' => 'https://example.com/simplesaml/', + 'frontpage.redirect' => 'https://custom.example.org/home', + ], '[ARRAY]', 'simplesaml'); + + $controller = new FrontpageController(); + $response = $controller->redirect(); + + $this->assertInstanceOf(RunnableResponse::class, $response); + + $callable = $response->getCallable(); + $this->assertIsArray($callable); + $this->assertInstanceOf(HTTP::class, $callable[0]); + $this->assertSame('redirectTrustedURL', $callable[1]); + + $arguments = $response->getArguments(); + $this->assertCount(1, $arguments); + $this->assertSame('https://custom.example.org/home', $arguments[0]); + } +} diff --git a/tests/src/SimpleSAML/Controller/ObsoleteRouteControllerTest.php b/tests/src/SimpleSAML/Controller/ObsoleteRouteControllerTest.php new file mode 100644 index 0000000000..49a5823fba --- /dev/null +++ b/tests/src/SimpleSAML/Controller/ObsoleteRouteControllerTest.php @@ -0,0 +1,37 @@ +assertInstanceOf(Response::class, $response); + $this->assertSame(410, $response->getStatusCode()); + $this->assertSame('This route is not used anymore.', $response->getContent()); + $this->assertSame('text/plain; charset=UTF-8', $response->headers->get('Content-Type')); + } + + + public function testInvokeWithCustomArguments(): void + { + $controller = new ObsoleteRouteController(); + $response = $controller('Custom gone message', 404); + + $this->assertInstanceOf(Response::class, $response); + $this->assertSame(404, $response->getStatusCode()); + $this->assertSame('Custom gone message', $response->getContent()); + $this->assertSame('text/plain; charset=UTF-8', $response->headers->get('Content-Type')); + } +} diff --git a/tests/src/SimpleSAML/EventSubscriber/ExceptionSubscriberTest.php b/tests/src/SimpleSAML/EventSubscriber/ExceptionSubscriberTest.php new file mode 100644 index 0000000000..5d194d9dd3 --- /dev/null +++ b/tests/src/SimpleSAML/EventSubscriber/ExceptionSubscriberTest.php @@ -0,0 +1,115 @@ + ArrayLogger::class, + 'errorreporting' => false, + 'module.enable' => ['core' => true], + ], + '[ARRAY]', + 'simplesaml', + ); + Configuration::setPreLoadedConfig($config, 'config.php'); + } + + + protected function tearDown(): void + { + Configuration::clearInternalState(); + } + + + public function testGetSubscribedEvents(): void + { + $events = ExceptionSubscriber::getSubscribedEvents(); + $this->assertArrayHasKey(KernelEvents::EXCEPTION, $events); + $this->assertSame(['onKernelException', 200], $events[KernelEvents::EXCEPTION]); + } + + + public function testOnKernelExceptionHandlesGeneralException(): void + { + $kernel = $this->createMock(HttpKernelInterface::class); + $request = new Request(); + $exception = new Exception('Unhandled test error'); + $event = new ExceptionEvent($kernel, $request, HttpKernelInterface::MAIN_REQUEST, $exception); + + $subscriber = new ExceptionSubscriber(); + $subscriber->onKernelException($event); + + $response = $event->getResponse(); + $this->assertInstanceOf(Template::class, $response); + $this->assertSame(500, $response->getStatusCode()); + } + + + public function testOnKernelExceptionHandlesNotFoundHttpException(): void + { + $kernel = $this->createMock(HttpKernelInterface::class); + $request = new Request(); + $exception = new NotFoundHttpException('Route not found'); + $event = new ExceptionEvent($kernel, $request, HttpKernelInterface::MAIN_REQUEST, $exception); + + $subscriber = new ExceptionSubscriber(); + $subscriber->onKernelException($event); + + $response = $event->getResponse(); + $this->assertInstanceOf(Template::class, $response); + $this->assertSame(404, $response->getStatusCode()); + } + + + public function testOnKernelExceptionHandlesMethodNotAllowedHttpException(): void + { + $kernel = $this->createMock(HttpKernelInterface::class); + $request = new Request(); + $exception = new MethodNotAllowedHttpException(['GET', 'POST'], 'Method not allowed'); + $event = new ExceptionEvent($kernel, $request, HttpKernelInterface::MAIN_REQUEST, $exception); + + $subscriber = new ExceptionSubscriber(); + $subscriber->onKernelException($event); + + $response = $event->getResponse(); + $this->assertInstanceOf(Template::class, $response); + $this->assertSame(405, $response->getStatusCode()); + } +} diff --git a/tests/src/SimpleSAML/EventSubscriber/SecurityHeadersSubscriberTest.php b/tests/src/SimpleSAML/EventSubscriber/SecurityHeadersSubscriberTest.php new file mode 100644 index 0000000000..dc6eea9135 --- /dev/null +++ b/tests/src/SimpleSAML/EventSubscriber/SecurityHeadersSubscriberTest.php @@ -0,0 +1,89 @@ +config = Configuration::loadFromArray([ + 'headers.security' => [ + 'X-Content-Type-Options' => 'nosniff', + 'X-Frame-Options' => 'SAMEORIGIN', + ], + ], '', 'simplesaml'); + + $this->subscriber = new SecurityHeadersSubscriber($this->config); + $this->kernel = $this->createMock(HttpKernelInterface::class); + } + + + public function testGetSubscribedEvents(): void + { + $events = SecurityHeadersSubscriber::getSubscribedEvents(); + $this->assertArrayHasKey(KernelEvents::RESPONSE, $events); + $this->assertEquals(['onKernelResponse', 0], $events[KernelEvents::RESPONSE]); + } + + + public function testOnKernelResponseMainRequestAppliesHeaders(): void + { + $request = new Request(); + $response = new Response(); + $event = new ResponseEvent($this->kernel, $request, HttpKernelInterface::MAIN_REQUEST, $response); + + $this->subscriber->onKernelResponse($event); + + $this->assertTrue($response->headers->has('X-Content-Type-Options')); + $this->assertEquals('nosniff', $response->headers->get('X-Content-Type-Options')); + $this->assertTrue($response->headers->has('X-Frame-Options')); + $this->assertEquals('SAMEORIGIN', $response->headers->get('X-Frame-Options')); + } + + + public function testOnKernelResponseSubRequestIgnoresHeaders(): void + { + $request = new Request(); + $response = new Response(); + $event = new ResponseEvent($this->kernel, $request, HttpKernelInterface::SUB_REQUEST, $response); + + $this->subscriber->onKernelResponse($event); + + $this->assertFalse($response->headers->has('X-Content-Type-Options')); + $this->assertFalse($response->headers->has('X-Frame-Options')); + } + + + public function testOnKernelResponsePreservesExistingHeaders(): void + { + $request = new Request(); + $response = new Response(); + $response->headers->set('X-Frame-Options', 'DENY'); + $event = new ResponseEvent($this->kernel, $request, HttpKernelInterface::MAIN_REQUEST, $response); + + $this->subscriber->onKernelResponse($event); + + $this->assertEquals('DENY', $response->headers->get('X-Frame-Options')); + $this->assertEquals('nosniff', $response->headers->get('X-Content-Type-Options')); + } +} diff --git a/tests/src/SimpleSAML/KernelTest.php b/tests/src/SimpleSAML/KernelTest.php new file mode 100644 index 0000000000..c95a09d86f --- /dev/null +++ b/tests/src/SimpleSAML/KernelTest.php @@ -0,0 +1,67 @@ + 'https://example.com/simplesaml/', + 'cachedir' => $cacheDir, + 'tempdir' => $cacheDir, + 'logging.handler' => 'errorlog', + 'secretsalt' => 'test-secret', + 'module.enable' => [ + 'admin' => true, + 'core' => true, + 'saml' => true, + ], + ], '', 'simplesaml'); + Configuration::setPreLoadedConfig($config); + + $kernel = new Kernel(); + $kernel->boot(); + + $routes = $kernel->getContainer()->get('router')->getRouteCollection(); + $adminMain = $routes->get('admin-main'); + $samlMetadata = $routes->get('saml-sp-metadata'); + + $this->assertInstanceOf(Route::class, $adminMain); + $this->assertEquals('/module/admin', $adminMain->getPath()); + + $this->assertInstanceOf(Route::class, $samlMetadata); + $this->assertEquals('/module/saml/sp/metadata/{sourceId}', $samlMetadata->getPath()); + + // Every module route is also served natively (no redirect) under the legacy + // "module.php" path prefix, so peers holding pre-3.0 SAML metadata keep working. + $legacyAdminMain = $routes->get('legacy-admin-main'); + $legacySamlMetadata = $routes->get('legacy-saml-sp-metadata'); + + $this->assertInstanceOf(Route::class, $legacyAdminMain); + $this->assertEquals('/module.php/admin', $legacyAdminMain->getPath()); + + $this->assertInstanceOf(Route::class, $legacySamlMetadata); + $this->assertEquals('/module.php/saml/sp/metadata/{sourceId}', $legacySamlMetadata->getPath()); + + $kernel->shutdown(); + } +} diff --git a/tests/src/SimpleSAML/ModuleTest.php b/tests/src/SimpleSAML/ModuleTest.php index 7942cb36f1..2cedbf517f 100644 --- a/tests/src/SimpleSAML/ModuleTest.php +++ b/tests/src/SimpleSAML/ModuleTest.php @@ -50,11 +50,11 @@ public function testGetModuleURL(): void 'baseurlpath' => 'https://example.com/simplesaml/', ], '', 'simplesaml'); $this->assertEquals( - 'https://example.com/simplesaml/module.php/module/script.php', + 'https://example.com/simplesaml/module/module/script.php', Module::getModuleURL('module/script.php'), ); $this->assertEquals( - 'https://example.com/simplesaml/module.php/module/script.php?param1=value1¶m2=value2', + 'https://example.com/simplesaml/module/module/script.php?param1=value1¶m2=value2', Module::getModuleURL('module/script.php', [ 'param1' => 'value1', 'param2' => 'value2', @@ -63,6 +63,21 @@ public function testGetModuleURL(): void } + /** + * Test for SimpleSAML\Module::getModuleAssetUrl(). + */ + public function testGetModuleAssetUrl(): void + { + Configuration::loadFromArray([ + 'baseurlpath' => 'https://example.com/simplesaml/', + ], '', 'simplesaml'); + $this->assertEquals( + 'https://example.com/simplesaml/assets/admin/css/admin.css', + Module::getModuleAssetUrl('admin', 'css/admin.css'), + ); + } + + /** * Test for SimpleSAML\Module::getModules(). */ @@ -100,6 +115,12 @@ public function testResolveClassNotSubclass(): void */ public function testResolveClass(): void { + Module::$module_info = []; + $config = Configuration::loadFromArray([ + 'module.enable' => ['cron' => true], + ], '', 'simplesaml'); + Configuration::setPreLoadedConfig($config); + // most basic test $this->assertEquals('SimpleSAML\Module\cron\Cron', Module::resolveClass('cron:Cron', '')); diff --git a/tests/src/SimpleSAML/Utils/HTTPTest.php b/tests/src/SimpleSAML/Utils/HTTPTest.php index 1520ace66a..b32fe26d80 100644 --- a/tests/src/SimpleSAML/Utils/HTTPTest.php +++ b/tests/src/SimpleSAML/Utils/HTTPTest.php @@ -108,31 +108,38 @@ public function testGuessBasePath(): void $original = $_SERVER; $httpUtils = new Utils\HTTP(); - $_SERVER['REQUEST_URI'] = '/simplesaml/module.php'; - $_SERVER['SCRIPT_FILENAME'] = self::makeNativePath('/some/path/simplesamlphp/public/module.php'); + $_SERVER['REQUEST_URI'] = '/simplesaml/index.php'; + $_SERVER['SCRIPT_NAME'] = '/simplesaml/index.php'; + $_SERVER['SCRIPT_FILENAME'] = self::makeNativePath('/some/path/simplesamlphp/public/index.php'); $this->assertEquals('/simplesaml/', $httpUtils->guessBasePath()); - $_SERVER['REQUEST_URI'] = '/simplesaml/module.php/some/path/to/other/script.php'; - $_SERVER['SCRIPT_FILENAME'] = self::makeNativePath('/some/path/simplesamlphp/public/module.php'); + $_SERVER['REQUEST_URI'] = '/simplesaml/module/admin'; + $_SERVER['SCRIPT_NAME'] = '/simplesaml/index.php'; + $_SERVER['SCRIPT_FILENAME'] = self::makeNativePath('/some/path/simplesamlphp/public/index.php'); $this->assertEquals('/simplesaml/', $httpUtils->guessBasePath()); - $_SERVER['REQUEST_URI'] = '/module.php'; - $_SERVER['SCRIPT_FILENAME'] = self::makeNativePath('/some/path/simplesamlphp/public/module.php'); + $_SERVER['REQUEST_URI'] = '/index.php'; + $_SERVER['SCRIPT_NAME'] = '/index.php'; + $_SERVER['SCRIPT_FILENAME'] = self::makeNativePath('/some/path/simplesamlphp/public/index.php'); $this->assertEquals('/', $httpUtils->guessBasePath()); - $_SERVER['REQUEST_URI'] = '/module.php/some/path/to/other/script.php'; - $_SERVER['SCRIPT_FILENAME'] = self::makeNativePath('/some/path/simplesamlphp/public/module.php'); + $_SERVER['REQUEST_URI'] = '/module/admin'; + $_SERVER['SCRIPT_NAME'] = '/index.php'; + $_SERVER['SCRIPT_FILENAME'] = self::makeNativePath('/some/path/simplesamlphp/public/index.php'); $this->assertEquals('/', $httpUtils->guessBasePath()); - $_SERVER['REQUEST_URI'] = '/some/path/module.php'; - $_SERVER['SCRIPT_FILENAME'] = self::makeNativePath('/some/path/simplesamlphp/public/module.php'); + $_SERVER['REQUEST_URI'] = '/some/path/index.php'; + $_SERVER['SCRIPT_NAME'] = '/some/path/index.php'; + $_SERVER['SCRIPT_FILENAME'] = self::makeNativePath('/some/path/simplesamlphp/public/index.php'); $this->assertEquals('/some/path/', $httpUtils->guessBasePath()); - $_SERVER['REQUEST_URI'] = '/some/path/module.php/some/path/to/other/script.php'; - $_SERVER['SCRIPT_FILENAME'] = self::makeNativePath('/some/path/simplesamlphp/public/module.php'); + $_SERVER['REQUEST_URI'] = '/some/path/module/admin'; + $_SERVER['SCRIPT_NAME'] = '/some/path/index.php'; + $_SERVER['SCRIPT_FILENAME'] = self::makeNativePath('/some/path/simplesamlphp/public/index.php'); $this->assertEquals('/some/path/', $httpUtils->guessBasePath()); $_SERVER['REQUEST_URI'] = '/some/dir/in/www/script.php'; + unset($_SERVER['SCRIPT_NAME']); $_SERVER['SCRIPT_FILENAME'] = self::makeNativePath('/some/path/simplesamlphp/www/some/dir/in/www/script.php'); $this->assertEquals('/', $httpUtils->guessBasePath()); @@ -217,12 +224,13 @@ public function testGetSelfURLMethods(): void $this->assertTrue($httpUtils->isHTTPS()); $this->assertEquals('https://' . $httpUtils->getSelfHostWithNonStandardPort(), $httpUtils->getSelfURLHost()); - // test a request URI that doesn't match the current script + // test a request URI that doesn't match the configured SimpleSAMLphp base path $cfg = Configuration::loadFromArray([ 'baseurlpath' => 'https://example.org/simplesaml/', ], '[ARRAY]', 'simplesaml'); $baseDir = $cfg->getBaseDir(); - $_SERVER['SCRIPT_FILENAME'] = $baseDir . 'public/module.php'; + $_SERVER['SCRIPT_FILENAME'] = $baseDir . 'public/index.php'; + $_SERVER['SCRIPT_NAME'] = '/simplesaml/index.php'; $this->setupEnvFromURL('http://www.example.com/protected/resource.asp?foo=bar'); $this->assertEquals('http://www.example.com/protected/resource.asp?foo=bar', $httpUtils->getSelfURL()); $this->assertEquals('http://www.example.com', $httpUtils->getSelfURLHost()); @@ -235,14 +243,16 @@ public function testGetSelfURLMethods(): void Configuration::loadFromArray([ 'baseurlpath' => 'https://example.com/simplesaml/', ], '[ARRAY]', 'simplesaml'); - $this->setupEnvFromURL('http://www.example.org/module.php/module/file.php?foo=bar'); + $_SERVER['SCRIPT_FILENAME'] = $baseDir . 'public/index.php'; + $_SERVER['SCRIPT_NAME'] = '/simplesaml/index.php'; + $this->setupEnvFromURL('http://www.example.org/simplesaml/module/module/file.php?foo=bar'); $this->assertEquals( - 'https://example.com/simplesaml/module.php/module/file.php?foo=bar', + 'https://example.com/simplesaml/module/module/file.php?foo=bar', $httpUtils->getSelfURL(), ); $this->assertEquals('https://example.com', $httpUtils->getSelfURLHost()); $this->assertEquals( - 'https://example.com/simplesaml/module.php/module/file.php', + 'https://example.com/simplesaml/module/module/file.php', $httpUtils->getSelfURLNoQuery(), ); $this->assertTrue($httpUtils->isHTTPS()); @@ -253,12 +263,12 @@ public function testGetSelfURLMethods(): void 'baseurlpath' => 'https://example.com/simplesaml', ], '[ARRAY]', 'simplesaml'); $this->assertEquals( - 'https://example.com/simplesaml/module.php/module/file.php?foo=bar', + 'https://example.com/simplesaml/module/module/file.php?foo=bar', $httpUtils->getSelfURL(), ); $this->assertEquals('https://example.com', $httpUtils->getSelfURLHost()); $this->assertEquals( - 'https://example.com/simplesaml/module.php/module/file.php', + 'https://example.com/simplesaml/module/module/file.php', $httpUtils->getSelfURLNoQuery(), ); $this->assertTrue($httpUtils->isHTTPS()); @@ -268,12 +278,14 @@ public function testGetSelfURLMethods(): void Configuration::loadFromArray([ 'baseurlpath' => 'https://example.com', ], '[ARRAY]', 'simplesaml'); + $_SERVER['SCRIPT_NAME'] = '/index.php'; + $this->setupEnvFromURL('http://www.example.org/module/module/file.php?foo=bar'); $this->assertEquals( - 'https://example.com/module.php/module/file.php?foo=bar', + 'https://example.com/module/module/file.php?foo=bar', $httpUtils->getSelfURL(), ); $this->assertEquals('https://example.com', $httpUtils->getSelfURLHost()); - $this->assertEquals('https://example.com/module.php/module/file.php', $httpUtils->getSelfURLNoQuery()); + $this->assertEquals('https://example.com/module/module/file.php', $httpUtils->getSelfURLNoQuery()); $this->assertTrue($httpUtils->isHTTPS()); $this->assertEquals('https://' . $httpUtils->getSelfHostWithNonStandardPort(), $httpUtils->getSelfURLHost()); @@ -281,14 +293,15 @@ public function testGetSelfURLMethods(): void Configuration::loadFromArray([ 'baseurlpath' => '/simplesaml/', ], '[ARRAY]', 'simplesaml'); - $this->setupEnvFromURL('http://www.example.org/simplesaml/module.php/module/file.php?foo=bar'); + $_SERVER['SCRIPT_NAME'] = '/simplesaml/index.php'; + $this->setupEnvFromURL('http://www.example.org/simplesaml/module/module/file.php?foo=bar'); $this->assertEquals( - 'http://www.example.org/simplesaml/module.php/module/file.php?foo=bar', + 'http://www.example.org/simplesaml/module/module/file.php?foo=bar', $httpUtils->getSelfURL(), ); $this->assertEquals('http://www.example.org', $httpUtils->getSelfURLHost()); $this->assertEquals( - 'http://www.example.org/simplesaml/module.php/module/file.php', + 'http://www.example.org/simplesaml/module/module/file.php', $httpUtils->getSelfURLNoQuery(), ); $this->assertFalse($httpUtils->isHTTPS()); @@ -298,14 +311,15 @@ public function testGetSelfURLMethods(): void Configuration::loadFromArray([ 'baseurlpath' => '/simplesaml/', ], '[ARRAY]', 'simplesaml'); - $this->setupEnvFromURL('http://example.org:8080/simplesaml/module.php/module/file.php?foo=bar'); + $_SERVER['SCRIPT_NAME'] = '/simplesaml/index.php'; + $this->setupEnvFromURL('http://example.org:8080/simplesaml/module/module/file.php?foo=bar'); $this->assertEquals( - 'http://example.org:8080/simplesaml/module.php/module/file.php?foo=bar', + 'http://example.org:8080/simplesaml/module/module/file.php?foo=bar', $httpUtils->getSelfURL(), ); $this->assertEquals('http://example.org:8080', $httpUtils->getSelfURLHost()); $this->assertEquals( - 'http://example.org:8080/simplesaml/module.php/module/file.php', + 'http://example.org:8080/simplesaml/module/module/file.php', $httpUtils->getSelfURLNoQuery(), ); $this->assertFalse($httpUtils->isHTTPS()); @@ -315,14 +329,15 @@ public function testGetSelfURLMethods(): void Configuration::loadFromArray([ 'baseurlpath' => '/simplesaml/', ], '[ARRAY]', 'simplesaml'); - $this->setupEnvFromURL('https://example.org:8080/simplesaml/module.php/module/file.php?foo=bar'); + $_SERVER['SCRIPT_NAME'] = '/simplesaml/index.php'; + $this->setupEnvFromURL('https://example.org:8080/simplesaml/module/module/file.php?foo=bar'); $this->assertEquals( - 'https://example.org:8080/simplesaml/module.php/module/file.php?foo=bar', + 'https://example.org:8080/simplesaml/module/module/file.php?foo=bar', $httpUtils->getSelfURL(), ); $this->assertEquals('https://example.org:8080', $httpUtils->getSelfURLHost()); $this->assertEquals( - 'https://example.org:8080/simplesaml/module.php/module/file.php', + 'https://example.org:8080/simplesaml/module/module/file.php', $httpUtils->getSelfURLNoQuery(), ); $this->assertTrue($httpUtils->isHTTPS()); @@ -344,7 +359,7 @@ public function testCheckURLAllowedWithoutRegex(): void 'trusted.url.regex' => false, ], '[ARRAY]', 'simplesaml'); - $_SERVER['REQUEST_URI'] = '/module.php'; + $_SERVER['REQUEST_URI'] = '/index.php'; $allowed = [ 'https://sp.example.com/', @@ -377,7 +392,7 @@ public function testCheckURLAllowedWithRegex(): void 'trusted.url.regex' => true, ], '[ARRAY]', 'simplesaml'); - $_SERVER['REQUEST_URI'] = '/module.php'; + $_SERVER['REQUEST_URI'] = '/index.php'; $allowed = [ 'https://sp.example.com/', @@ -460,7 +475,7 @@ public function testCheckURLAllowedWithRegexWithoutDelimiters(): void 'trusted.url.regex' => true, ], '[ARRAY]', 'simplesaml'); - $_SERVER['REQUEST_URI'] = '/module.php'; + $_SERVER['REQUEST_URI'] = '/index.php'; $this->expectException(Error\Exception::class); $httpUtils->checkURLAllowed('https://app.example.com.evil.com'); @@ -676,7 +691,7 @@ public function testSubmitPOSTDataRedirectsFromHttpsToHttp(): void ], '[ARRAY]', 'simplesaml'); // Simulate the current request being HTTPS - $this->setupEnvFromURL('https://idp.example.org/simplesaml/module.php/core/someaction?x=1'); + $this->setupEnvFromURL('https://idp.example.org/simplesaml/module/core/someaction?x=1'); // Destination is explicitly http:// $destination = 'http://sp.example.com/acs'; @@ -761,14 +776,14 @@ public static function slowPostDelayProvider(): array /** * Ensure getSelfURL() returns the externally visible URL when SimpleSAMLphp - * is reached via a rewritten path (e.g. /cas/login -> /simplesaml/module.php/...), - * and the internal script name (module.php) appears only in the query string. + * is reached via a rewritten path (e.g. /cas/login -> /simplesaml/index.php), + * and the front controller path is not part of the externally visible URL. * * This simulates an Apache mod_rewrite rule like: - * RewriteRule ^/cas/login(.*) /${SSP_APACHE_ALIAS}module.php/casserver/login.php$1 [PT] + * RewriteRule ^/cas/login(.*) /${SSP_APACHE_ALIAS}index.php [PT] * * In this scenario the public URL is /cas/login?... while the actual script is - * public/module.php. + * public/index.php. */ public function testGetSelfURLWithRewrittenCasLogin(): void { @@ -787,21 +802,21 @@ public function testGetSelfURLWithRewrittenCasLogin(): void 'SERVER_NAME' => 'tr-monitor-okta2.qa.athena-institute.net', 'SERVER_PORT' => 443, 'SCRIPT_URI' => 'https://tr-monitor-okta2.qa.athena-institute.net/cas/login', - 'SCRIPT_NAME' => '/module.php', - 'SCRIPT_FILENAME' => $baseDir . 'public' . DIRECTORY_SEPARATOR . 'module.php', - 'PATH_TRANSLATED' => $baseDir . 'public' . DIRECTORY_SEPARATOR . 'casserver/login.php', - 'PHP_SELF' => '/module.php/casserver/login.php', + 'SCRIPT_NAME' => '/simplesaml/index.php', + 'SCRIPT_FILENAME' => $baseDir . 'public' . DIRECTORY_SEPARATOR . 'index.php', + 'PATH_TRANSLATED' => $baseDir . 'public' . DIRECTORY_SEPARATOR . 'index.php', + 'PHP_SELF' => '/simplesaml/index.php', 'QUERY_STRING' => 'service=' - . 'https%3A%2F%2Fcas-test-bridge.bridge.qa.cirrusidentity.com%2Fmodule.php%2Fcas%2Flinkback.php' + . 'https%3A%2F%2Fcas-test-bridge.bridge.qa.cirrusidentity.com%2Fmodule%2Fcas%2Flinkback' . '%3FstateId%3D_somestate', 'REQUEST_URI' => '/cas/login?service=' - . 'https%3A%2F%2Fcas-test-bridge.bridge.qa.cirrusidentity.com%2Fmodule.php%2Fcas%2Flinkback.php' + . 'https%3A%2F%2Fcas-test-bridge.bridge.qa.cirrusidentity.com%2Fmodule%2Fcas%2Flinkback' . '%3FstateId%3D_somestate', ]; $expected = 'https://tr-monitor-okta2.qa.athena-institute.net' . '/cas/login' - . '?service=https%3A%2F%2Fcas-test-bridge.bridge.qa.cirrusidentity.com%2Fmodule.php%2Fcas%2Flinkback.php' + . '?service=https%3A%2F%2Fcas-test-bridge.bridge.qa.cirrusidentity.com%2Fmodule%2Fcas%2Flinkback' . '%3FstateId%3D_somestate'; $this->assertSame($expected, $httpUtils->getSelfURL()); diff --git a/tests/src/SimpleSAML/XHTML/TemplateTest.php b/tests/src/SimpleSAML/XHTML/TemplateTest.php index 2bfebec83c..5b425fe332 100644 --- a/tests/src/SimpleSAML/XHTML/TemplateTest.php +++ b/tests/src/SimpleSAML/XHTML/TemplateTest.php @@ -182,7 +182,7 @@ public function testAssetWillReturnPathOnTagIsFalse(): void $tagModule = $moduleTemplate->asset('css/admin.css', 'admin', false); $this->assertStringNotContainsString('?tag=', $tagModule); $this->assertEquals( - 'http://localhost/simplesaml/module.php/admin/assets/css/admin.css', + 'http://localhost/simplesaml/assets/admin/css/admin.css', $tagModule, ); } diff --git a/tests/www/IndexTest.php b/tests/www/IndexTest.php index 7f0a443a54..123e3f04d4 100644 --- a/tests/www/IndexTest.php +++ b/tests/www/IndexTest.php @@ -71,39 +71,51 @@ public function testRedirection(): void // test most basic redirection $this->updateConfig([ 'baseurlpath' => 'http://example.org/simplesaml/', + 'cachedir' => sys_get_temp_dir(), + 'tempdir' => sys_get_temp_dir(), + 'logging.handler' => 'errorlog', + 'secretsalt' => 'test-secret', ]); $resp = self::$server->get('/index.php', [], [ CURLOPT_FOLLOWLOCATION => 0, ]); $this->assertEquals('303', $resp['code']); $this->assertEquals( - 'http://example.org/simplesaml/module.php/core/welcome', + 'http://example.org/simplesaml/module/core/welcome', $resp['headers']['Location'], ); // test non-default path and https $this->updateConfig([ 'baseurlpath' => 'https://example.org/', + 'cachedir' => sys_get_temp_dir(), + 'tempdir' => sys_get_temp_dir(), + 'logging.handler' => 'errorlog', + 'secretsalt' => 'test-secret', ]); $resp = self::$server->get('/index.php', [], [ CURLOPT_FOLLOWLOCATION => 0, ]); $this->assertEquals('303', $resp['code']); $this->assertEquals( - 'https://example.org/module.php/core/welcome', + 'https://example.org/module/core/welcome', $resp['headers']['Location'], ); // test URL guessing $this->updateConfig([ 'baseurlpath' => '/simplesaml/', + 'cachedir' => sys_get_temp_dir(), + 'tempdir' => sys_get_temp_dir(), + 'logging.handler' => 'errorlog', + 'secretsalt' => 'test-secret', ]); $resp = self::$server->get('/index.php', [], [ CURLOPT_FOLLOWLOCATION => 0, ]); $this->assertEquals('303', $resp['code']); $this->assertEquals( - 'http://' . self::$server_addr . '/simplesaml/module.php/core/welcome', + 'http://' . self::$server_addr . '/simplesaml/module/core/welcome', $resp['headers']['Location'], ); } @@ -116,10 +128,15 @@ public function testRedirectionFrontpageRedirectOption(): void { $this->updateConfig([ 'frontpage.redirect' => 'https://www.example.edu/', + 'cachedir' => sys_get_temp_dir(), + 'tempdir' => sys_get_temp_dir(), + 'logging.handler' => 'errorlog', + 'secretsalt' => 'test-secret', ]); $resp = self::$server->get('/index.php', [], [ CURLOPT_FOLLOWLOCATION => 0, ]); + $this->assertEquals('303', $resp['code']); $this->assertEquals( 'https://www.example.edu/', @@ -128,6 +145,27 @@ public function testRedirectionFrontpageRedirectOption(): void } + /** + * Test that module URLs are handled by the front controller branch instead of being redirected. + */ + public function testModulePathIsHandledByFrontController(): void + { + $this->updateConfig([ + 'baseurlpath' => 'http://example.org/simplesaml/', + 'cachedir' => sys_get_temp_dir(), + 'tempdir' => sys_get_temp_dir(), + 'logging.handler' => 'errorlog', + 'secretsalt' => 'test-secret', + ]); + $resp = self::$server->get('/index.php/module/doesnotexist', [], [ + CURLOPT_FOLLOWLOCATION => 0, + ]); + + $this->assertEquals('404', $resp['code']); + $this->assertArrayNotHasKey('Location', $resp['headers']); + } + + /** * The tear down method that is executed after all tests in this class. */ From 7bc7eed77df392d4864a68a247eb448653527ed9 Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Sun, 28 Jun 2026 00:27:05 +0200 Subject: [PATCH 11/39] Use constants from new lib --- modules/admin/src/Controller/Federation.php | 2 +- modules/core/src/Auth/Process/TargetedID.php | 4 +- modules/core/src/Auth/UserPassBase.php | 4 +- modules/core/src/Controller/Logout.php | 4 +- .../saml/src/Auth/Process/NameIDAttribute.php | 4 +- .../src/Auth/Process/PersistentNameID.php | 4 +- .../Process/PersistentNameID2TargetedID.php | 6 +- .../src/Auth/Process/SQLPersistentNameID.php | 2 +- .../saml/src/Auth/Process/TransientNameID.php | 4 +- modules/saml/src/Controller/Proxy.php | 4 +- .../saml/src/Controller/ServiceProvider.php | 6 +- modules/saml/src/Error/NoAuthnContext.php | 8 +-- modules/saml/src/Error/NoAvailableIDP.php | 8 +-- modules/saml/src/Error/NoPassive.php | 8 +-- modules/saml/src/Error/NoSupportedIDP.php | 8 +-- modules/saml/src/Error/ProxyCountExceeded.php | 8 +-- modules/saml/src/IdP/SAML2.php | 60 +++++++++---------- src/SimpleSAML/Configuration.php | 8 +-- src/SimpleSAML/IdP.php | 4 +- .../Metadata/MetaDataStorageHandler.php | 8 +-- src/SimpleSAML/Metadata/SAMLBuilder.php | 24 ++++---- src/SimpleSAML/Utils/Config/Metadata.php | 8 +-- .../core/src/Auth/Process/TargetedIDTest.php | 4 +- .../core/src/Auth/UserPassBaseTest.php | 10 ++-- .../src/Auth/Process/NameIDAttributeTest.php | 12 ++-- tests/src/SimpleSAML/ConfigurationTest.php | 44 +++++++------- .../SimpleSAML/Metadata/SAMLParserTest.php | 4 +- .../SimpleSAML/Utils/Config/MetadataTest.php | 6 +- 28 files changed, 138 insertions(+), 138 deletions(-) diff --git a/modules/admin/src/Controller/Federation.php b/modules/admin/src/Controller/Federation.php index f6486e2b32..8b2c629a46 100644 --- a/modules/admin/src/Controller/Federation.php +++ b/modules/admin/src/Controller/Federation.php @@ -5,7 +5,6 @@ namespace SimpleSAML\Module\admin\Controller; use Exception; -use SAML2\Constants as C; use SimpleSAML\Assert\Assert; use SimpleSAML\Auth; use SimpleSAML\Configuration; @@ -20,6 +19,7 @@ use SimpleSAML\Module\adfs\IdP\ADFS as ADFS_IdP; use SimpleSAML\Module\admin\Event\FederationPageEvent; use SimpleSAML\Module\saml\IdP\SAML2 as SAML2_IdP; +use SimpleSAML\SAML2\Constants as C; use SimpleSAML\Utils; use SimpleSAML\XHTML\Template; use Symfony\Component\HttpFoundation\Request; diff --git a/modules/core/src/Auth/Process/TargetedID.php b/modules/core/src/Auth/Process/TargetedID.php index 1bfb81c96d..19059f6915 100644 --- a/modules/core/src/Auth/Process/TargetedID.php +++ b/modules/core/src/Auth/Process/TargetedID.php @@ -5,11 +5,11 @@ namespace SimpleSAML\Module\core\Auth\Process; use Exception; -use SAML2\Constants; use SAML2\XML\saml\NameID; use SimpleSAML\Assert\Assert; use SimpleSAML\Auth; use SimpleSAML\Logger; +use SimpleSAML\SAML2\Constants as C; use SimpleSAML\Utils; /** @@ -140,7 +140,7 @@ public function process(array &$state): void // Convert the targeted ID to a SAML 2.0 name identifier element $nameId = new NameID(); $nameId->setValue($uid); - $nameId->setFormat(Constants::NAMEID_PERSISTENT); + $nameId->setFormat(C::NAMEID_PERSISTENT); if (isset($state['Source']['entityid'])) { $nameId->setNameQualifier($state['Source']['entityid']); diff --git a/modules/core/src/Auth/UserPassBase.php b/modules/core/src/Auth/UserPassBase.php index f96bb22e65..e34f6f7c5a 100644 --- a/modules/core/src/Auth/UserPassBase.php +++ b/modules/core/src/Auth/UserPassBase.php @@ -4,13 +4,13 @@ namespace SimpleSAML\Module\core\Auth; -use SAML2\Constants; use SimpleSAML\Assert\Assert; use SimpleSAML\Auth; use SimpleSAML\Configuration; use SimpleSAML\Error; use SimpleSAML\Logger; use SimpleSAML\Module; +use SimpleSAML\SAML2\Constants as C; use SimpleSAML\Utils; /** @@ -219,7 +219,7 @@ public function authenticate(array &$state): void // doesn't define how the credentials are transferred, but Office 365 // uses the Authorization header, so we will just use that in lieu of // other use cases. - if (isset($state['saml:Binding']) && $state['saml:Binding'] === Constants::BINDING_PAOS) { + if (isset($state['saml:Binding']) && $state['saml:Binding'] === C::BINDING_PAOS) { if (!isset($_SERVER['PHP_AUTH_USER']) || !isset($_SERVER['PHP_AUTH_PW'])) { Logger::error("ECP AuthnRequest did not contain Basic Authentication header"); // TODO Return a SOAP fault instead of using the current binding? diff --git a/modules/core/src/Controller/Logout.php b/modules/core/src/Controller/Logout.php index aef2fa3645..ee26e6fc38 100644 --- a/modules/core/src/Controller/Logout.php +++ b/modules/core/src/Controller/Logout.php @@ -6,7 +6,6 @@ use Exception as BuiltinException; use SAML2\Binding; -use SAML2\Constants; use SimpleSAML\Auth; use SimpleSAML\Configuration; use SimpleSAML\Error; @@ -15,6 +14,7 @@ use SimpleSAML\Logger; use SimpleSAML\Metadata\MetaDataStorageHandler; use SimpleSAML\Module\saml\Message; +use SimpleSAML\SAML2\Constants as C; use SimpleSAML\Stats; use SimpleSAML\Utils; use SimpleSAML\XHTML\Template; @@ -233,7 +233,7 @@ public function logoutIframePost(Request $request): RunnableResponse 'idpEntityID' => $idpMetadata->getString('entityid'), ]); - $bindings = [Constants::BINDING_HTTP_POST]; + $bindings = [C::BINDING_HTTP_POST]; $dst = $spMetadata->getDefaultEndpoint('SingleLogoutService', $bindings); $binding = Binding::getBinding($dst['Binding']); diff --git a/modules/saml/src/Auth/Process/NameIDAttribute.php b/modules/saml/src/Auth/Process/NameIDAttribute.php index 735313beea..ee6f824245 100644 --- a/modules/saml/src/Auth/Process/NameIDAttribute.php +++ b/modules/saml/src/Auth/Process/NameIDAttribute.php @@ -4,7 +4,7 @@ namespace SimpleSAML\Module\saml\Auth\Process; -use SAML2\Constants; +use SimpleSAML\SAML2\Constants as C; use SimpleSAML\Assert\Assert; use SimpleSAML\Auth\ProcessingFilter; use SimpleSAML\Error; @@ -120,7 +120,7 @@ public function process(array &$state): void Assert::notNull($rep->getValue()); if ($rep->getFormat() === null) { - $rep->setFormat(Constants::NAMEID_UNSPECIFIED); + $rep->setFormat(C::NAMEID_UNSPECIFIED); } if ($rep->getSPNameQualifier() === null) { diff --git a/modules/saml/src/Auth/Process/PersistentNameID.php b/modules/saml/src/Auth/Process/PersistentNameID.php index e6f6158d78..99cf9278cc 100644 --- a/modules/saml/src/Auth/Process/PersistentNameID.php +++ b/modules/saml/src/Auth/Process/PersistentNameID.php @@ -4,10 +4,10 @@ namespace SimpleSAML\Module\saml\Auth\Process; -use SAML2\Constants; use SimpleSAML\Error; use SimpleSAML\Logger; use SimpleSAML\Module\saml\BaseNameIDGenerator; +use SimpleSAML\SAML2\Constants as C; use SimpleSAML\Utils; /** @@ -38,7 +38,7 @@ public function __construct(array $config, $reserved) { parent::__construct($config, $reserved); - $this->format = Constants::NAMEID_PERSISTENT; + $this->format = C::NAMEID_PERSISTENT; if (!isset($config['identifyingAttribute'])) { throw new Error\Exception("PersistentNameID: Missing required option 'identifyingAttribute'."); diff --git a/modules/saml/src/Auth/Process/PersistentNameID2TargetedID.php b/modules/saml/src/Auth/Process/PersistentNameID2TargetedID.php index ad1fe9f27f..5de6e4d30f 100644 --- a/modules/saml/src/Auth/Process/PersistentNameID2TargetedID.php +++ b/modules/saml/src/Auth/Process/PersistentNameID2TargetedID.php @@ -4,7 +4,7 @@ namespace SimpleSAML\Module\saml\Auth\Process; -use SAML2\Constants; +use SimpleSAML\SAML2\Constants as C; use SimpleSAML\Auth\ProcessingFilter; use SimpleSAML\Logger; @@ -62,14 +62,14 @@ public function __construct(array $config, $reserved) */ public function process(array &$state): void { - if (!isset($state['saml:NameID'][Constants::NAMEID_PERSISTENT])) { + if (!isset($state['saml:NameID'][C::NAMEID_PERSISTENT])) { Logger::warning( 'Unable to generate eduPersonTargetedID because no persistent NameID was available.', ); return; } /** @var \SAML2\XML\saml\NameID $nameID */ - $nameID = $state['saml:NameID'][Constants::NAMEID_PERSISTENT]; + $nameID = $state['saml:NameID'][C::NAMEID_PERSISTENT]; $state['Attributes'][$this->attribute] = [(!$this->nameId) ? $nameID->getValue() : $nameID]; } diff --git a/modules/saml/src/Auth/Process/SQLPersistentNameID.php b/modules/saml/src/Auth/Process/SQLPersistentNameID.php index 497bd5bdce..7d6feb5559 100644 --- a/modules/saml/src/Auth/Process/SQLPersistentNameID.php +++ b/modules/saml/src/Auth/Process/SQLPersistentNameID.php @@ -4,12 +4,12 @@ namespace SimpleSAML\Module\saml\Auth\Process; -use SAML2\Constants as C; use SimpleSAML\Error; use SimpleSAML\Logger; use SimpleSAML\Module\saml\BaseNameIDGenerator; use SimpleSAML\Module\saml\Error as SAMLError; use SimpleSAML\Module\saml\IdP\SQLNameID; +use SimpleSAML\SAML2\Constants as C; /** * Authentication processing filter to generate a persistent NameID. diff --git a/modules/saml/src/Auth/Process/TransientNameID.php b/modules/saml/src/Auth/Process/TransientNameID.php index 4b28ca897e..029759a503 100644 --- a/modules/saml/src/Auth/Process/TransientNameID.php +++ b/modules/saml/src/Auth/Process/TransientNameID.php @@ -4,8 +4,8 @@ namespace SimpleSAML\Module\saml\Auth\Process; -use SAML2\Constants; use SimpleSAML\Module\saml\BaseNameIDGenerator; +use SimpleSAML\SAML2\Constants as C; use SimpleSAML\Utils; /** @@ -26,7 +26,7 @@ public function __construct(array $config, $reserved) { parent::__construct($config, $reserved); - $this->format = Constants::NAMEID_TRANSIENT; + $this->format = C::NAMEID_TRANSIENT; } diff --git a/modules/saml/src/Controller/Proxy.php b/modules/saml/src/Controller/Proxy.php index 73ff5c5903..a483467b10 100644 --- a/modules/saml/src/Controller/Proxy.php +++ b/modules/saml/src/Controller/Proxy.php @@ -5,7 +5,7 @@ namespace SimpleSAML\Module\saml\Controller; use Exception; -use SAML2\Constants; +use SimpleSAML\SAML2\Constants as C; use SimpleSAML\Auth; use SimpleSAML\Configuration; use SimpleSAML\Error; @@ -94,7 +94,7 @@ public function invalidSession(Request $request): Response $this->authState::throwException( $state, new NoAvailableIDP( - Constants::STATUS_RESPONDER, + C::STATUS_RESPONDER, 'User refused to reauthenticate with any of the IdPs requested.', ), ); diff --git a/modules/saml/src/Controller/ServiceProvider.php b/modules/saml/src/Controller/ServiceProvider.php index a565061d8c..8a5c1a13c8 100644 --- a/modules/saml/src/Controller/ServiceProvider.php +++ b/modules/saml/src/Controller/ServiceProvider.php @@ -7,7 +7,6 @@ use Exception; use SAML2\Assertion; use SAML2\Binding; -use SAML2\Constants; use SAML2\Exception\Protocol\UnsupportedBindingException; use SAML2\HTTPArtifact; use SAML2\HTTPPost; @@ -26,6 +25,7 @@ use SimpleSAML\Metadata; use SimpleSAML\Module; use SimpleSAML\Module\saml\Auth\Source\SP; +use SimpleSAML\SAML2\Constants as C; use SimpleSAML\Session; use SimpleSAML\Store\StoreFactory; use SimpleSAML\Utils; @@ -671,8 +671,8 @@ public function singleLogoutService(string $sourceId): RunnableResponse $dst = $idpMetadata->getEndpointPrioritizedByBinding( 'SingleLogoutService', [ - Constants::BINDING_HTTP_REDIRECT, - Constants::BINDING_HTTP_POST, + C::BINDING_HTTP_REDIRECT, + C::BINDING_HTTP_POST, ], ); diff --git a/modules/saml/src/Error/NoAuthnContext.php b/modules/saml/src/Error/NoAuthnContext.php index 7b1a5fee04..aa33a397ff 100644 --- a/modules/saml/src/Error/NoAuthnContext.php +++ b/modules/saml/src/Error/NoAuthnContext.php @@ -4,7 +4,7 @@ namespace SimpleSAML\Module\saml\Error; -use SAML2\Constants; +use SimpleSAML\SAML2\Constants as C; use Throwable; /** @@ -18,13 +18,13 @@ class NoAuthnContext extends \SimpleSAML\Module\saml\Error * NoAuthnContext error constructor. * * @param string $responsible A string telling who is responsible for this error. Can be one of the following: - * - \SAML2\Constants::STATUS_RESPONDER: in case the error is caused by this SAML responder. - * - \SAML2\Constants::STATUS_REQUESTER: in case the error is caused by the SAML requester. + * - \SimpleSAML\SAML2\Constants::STATUS_RESPONDER: in case the error is caused by this SAML responder. + * - \SimpleSAML\SAML2\Constants::STATUS_REQUESTER: in case the error is caused by the SAML requester. * @param string|null $message A short message explaining why this error happened. * @param \Throwable|null $cause An exception that caused this error. */ public function __construct(string $responsible, ?string $message = null, ?Throwable $cause = null) { - parent::__construct($responsible, Constants::STATUS_NO_AUTHN_CONTEXT, $message, $cause); + parent::__construct($responsible, C::STATUS_NO_AUTHN_CONTEXT, $message, $cause); } } diff --git a/modules/saml/src/Error/NoAvailableIDP.php b/modules/saml/src/Error/NoAvailableIDP.php index e515cb1f70..b0103d9207 100644 --- a/modules/saml/src/Error/NoAvailableIDP.php +++ b/modules/saml/src/Error/NoAvailableIDP.php @@ -4,7 +4,7 @@ namespace SimpleSAML\Module\saml\Error; -use SAML2\Constants; +use SimpleSAML\SAML2\Constants as C; use Throwable; /** @@ -18,13 +18,13 @@ class NoAvailableIDP extends \SimpleSAML\Module\saml\Error * NoAvailableIDP error constructor. * * @param string $responsible A string telling who is responsible for this error. Can be one of the following: - * - \SAML2\Constants::STATUS_RESPONDER: in case the error is caused by this SAML responder. - * - \SAML2\Constants::STATUS_REQUESTER: in case the error is caused by the SAML requester. + * - \SimpleSAML\SAML2\Constants::STATUS_RESPONDER: in case the error is caused by this SAML responder. + * - \SimpleSAML\SAML2\Constants::STATUS_REQUESTER: in case the error is caused by the SAML requester. * @param string|null $message A short message explaining why this error happened. * @param \Throwable|null $cause An exception that caused this error. */ public function __construct(string $responsible, ?string $message = null, ?Throwable $cause = null) { - parent::__construct($responsible, Constants::STATUS_NO_AVAILABLE_IDP, $message, $cause); + parent::__construct($responsible, C::STATUS_NO_AVAILABLE_IDP, $message, $cause); } } diff --git a/modules/saml/src/Error/NoPassive.php b/modules/saml/src/Error/NoPassive.php index bba588f1b6..3ce8cd5e49 100644 --- a/modules/saml/src/Error/NoPassive.php +++ b/modules/saml/src/Error/NoPassive.php @@ -4,7 +4,7 @@ namespace SimpleSAML\Module\saml\Error; -use SAML2\Constants; +use SimpleSAML\SAML2\Constants as C; use Throwable; /** @@ -18,13 +18,13 @@ class NoPassive extends \SimpleSAML\Module\saml\Error * NoPassive error constructor. * * @param string $responsible A string telling who is responsible for this error. Can be one of the following: - * - \SAML2\Constants::STATUS_RESPONDER: in case the error is caused by this SAML responder. - * - \SAML2\Constants::STATUS_REQUESTER: in case the error is caused by the SAML requester. + * - \SimpleSAML\SAML2\Constants::STATUS_RESPONDER: in case the error is caused by this SAML responder. + * - \SimpleSAML\SAML2\Constants::STATUS_REQUESTER: in case the error is caused by the SAML requester. * @param string|null $message A short message explaining why this error happened. * @param \Throwable|null $cause An exception that caused this error. */ public function __construct(string $responsible, ?string $message = null, ?Throwable $cause = null) { - parent::__construct($responsible, Constants::STATUS_NO_PASSIVE, $message, $cause); + parent::__construct($responsible, C::STATUS_NO_PASSIVE, $message, $cause); } } diff --git a/modules/saml/src/Error/NoSupportedIDP.php b/modules/saml/src/Error/NoSupportedIDP.php index 41cd41ae92..3cbb75a425 100644 --- a/modules/saml/src/Error/NoSupportedIDP.php +++ b/modules/saml/src/Error/NoSupportedIDP.php @@ -4,7 +4,7 @@ namespace SimpleSAML\Module\saml\Error; -use SAML2\Constants; +use SimpleSAML\SAML2\Constants as C; use Throwable; /** @@ -18,13 +18,13 @@ class NoSupportedIDP extends \SimpleSAML\Module\saml\Error * NoSupportedIDP error constructor. * * @param string $responsible A string telling who is responsible for this error. Can be one of the following: - * - \SAML2\Constants::STATUS_RESPONDER: in case the error is caused by this SAML responder. - * - \SAML2\Constants::STATUS_REQUESTER: in case the error is caused by the SAML requester. + * - \SimpleSAML\SAML2\Constants::STATUS_RESPONDER: in case the error is caused by this SAML responder. + * - \SimpleSAML\SAML2\Constants::STATUS_REQUESTER: in case the error is caused by the SAML requester. * @param string|null $message A short message explaining why this error happened. * @param \Throwable|null $cause An exception that caused this error. */ public function __construct(string $responsible, ?string $message = null, ?Throwable $cause = null) { - parent::__construct($responsible, Constants::STATUS_NO_SUPPORTED_IDP, $message, $cause); + parent::__construct($responsible, C::STATUS_NO_SUPPORTED_IDP, $message, $cause); } } diff --git a/modules/saml/src/Error/ProxyCountExceeded.php b/modules/saml/src/Error/ProxyCountExceeded.php index 984df91f9d..6aabbe73b3 100644 --- a/modules/saml/src/Error/ProxyCountExceeded.php +++ b/modules/saml/src/Error/ProxyCountExceeded.php @@ -4,7 +4,7 @@ namespace SimpleSAML\Module\saml\Error; -use SAML2\Constants; +use SimpleSAML\SAML2\Constants as C; use Throwable; /** @@ -18,13 +18,13 @@ class ProxyCountExceeded extends \SimpleSAML\Module\saml\Error * ProxyCountExceeded error constructor. * * @param string $responsible A string telling who is responsible for this error. Can be one of the following: - * - \SAML2\Constants::STATUS_RESPONDER: in case the error is caused by this SAML responder. - * - \SAML2\Constants::STATUS_REQUESTER: in case the error is caused by the SAML requester. + * - \SimpleSAML\SAML2\Constants::STATUS_RESPONDER: in case the error is caused by this SAML responder. + * - \SimpleSAML\SAML2\Constants::STATUS_REQUESTER: in case the error is caused by the SAML requester. * @param string|null $message A short message explaining why this error happened. * @param \Throwable|null $cause An exception that caused this error. */ public function __construct(string $responsible, ?string $message = null, ?Throwable $cause = null) { - parent::__construct($responsible, Constants::STATUS_PROXY_COUNT_EXCEEDED, $message, $cause); + parent::__construct($responsible, C::STATUS_PROXY_COUNT_EXCEEDED, $message, $cause); } } diff --git a/modules/saml/src/IdP/SAML2.php b/modules/saml/src/IdP/SAML2.php index dbab0a355e..2ce81b2f29 100644 --- a/modules/saml/src/IdP/SAML2.php +++ b/modules/saml/src/IdP/SAML2.php @@ -10,7 +10,6 @@ use SAML2\Assertion; use SAML2\AuthnRequest; use SAML2\Binding; -use SAML2\Constants; use SAML2\EncryptedAssertion; use SAML2\Exception\Protocol\UnsupportedBindingException; use SAML2\HTTPRedirect; @@ -34,6 +33,7 @@ use SimpleSAML\Metadata\MetaDataStorageHandler; use SimpleSAML\Module; use SimpleSAML\Module\saml\Message; +use SimpleSAML\SAML2\Constants as C; use SimpleSAML\Stats; use SimpleSAML\Utils; use SimpleSAML\XML\DOMDocumentFactory; @@ -308,15 +308,15 @@ public static function receiveAuthnRequest(IdP $idp): void $idpMetadata = $idp->getConfig(); $httpUtils = new Utils\HTTP(); - $supportedBindings = [Constants::BINDING_HTTP_POST]; + $supportedBindings = [C::BINDING_HTTP_POST]; if ($idpMetadata->getOptionalBoolean('saml20.sendartifact', false)) { - $supportedBindings[] = Constants::BINDING_HTTP_ARTIFACT; + $supportedBindings[] = C::BINDING_HTTP_ARTIFACT; } if ($idpMetadata->getOptionalBoolean('saml20.hok.assertion', false)) { - $supportedBindings[] = Constants::BINDING_HOK_SSO; + $supportedBindings[] = C::BINDING_HOK_SSO; } if ($idpMetadata->getOptionalBoolean('saml20.ecp', false)) { - $supportedBindings[] = Constants::BINDING_PAOS; + $supportedBindings[] = C::BINDING_PAOS; } $authnRequestSigned = false; @@ -556,8 +556,8 @@ public static function sendLogoutRequest(IdP $idp, array $association, ?string $ $dst = $spMetadata->getEndpointPrioritizedByBinding( 'SingleLogoutService', [ - Constants::BINDING_HTTP_REDIRECT, - Constants::BINDING_HTTP_POST, + C::BINDING_HTTP_REDIRECT, + C::BINDING_HTTP_POST, ], ); $binding = Binding::getBinding($dst['Binding']); @@ -593,8 +593,8 @@ public static function sendLogoutResponse(IdP $idp, array $state): void if (isset($state['core:Failed']) && $state['core:Failed']) { $partial = true; $lr->setStatus([ - 'Code' => Constants::STATUS_SUCCESS, - 'SubCode' => Constants::STATUS_PARTIAL_LOGOUT, + 'Code' => C::STATUS_SUCCESS, + 'SubCode' => C::STATUS_PARTIAL_LOGOUT, ]); Logger::info('Sending logout response for partial logout to SP ' . var_export($spEntityId, true)); } else { @@ -612,8 +612,8 @@ public static function sendLogoutResponse(IdP $idp, array $state): void $dst = $spMetadata->getEndpointPrioritizedByBinding( 'SingleLogoutService', [ - Constants::BINDING_HTTP_REDIRECT, - Constants::BINDING_HTTP_POST, + C::BINDING_HTTP_REDIRECT, + C::BINDING_HTTP_POST, ], ); $binding = Binding::getBinding($dst['Binding']); @@ -719,14 +719,14 @@ public static function getLogoutURL(IdP $idp, array $association, ?string $relay $spMetadata = $metadata->getMetaDataConfig($association['saml:entityID'], 'saml20-sp-remote'); $bindings = [ - Constants::BINDING_HTTP_REDIRECT, - Constants::BINDING_HTTP_POST, + C::BINDING_HTTP_REDIRECT, + C::BINDING_HTTP_POST, ]; /** @var array $dst */ $dst = $spMetadata->getEndpointPrioritizedByBinding('SingleLogoutService', $bindings); - if ($dst['Binding'] === Constants::BINDING_HTTP_POST) { + if ($dst['Binding'] === C::BINDING_HTTP_POST) { $params = ['association' => $association['id'], 'idp' => $idp->getId()]; if ($relayState !== null) { $params['RelayState'] = $relayState; @@ -825,7 +825,7 @@ public static function getHostedMetadata(string $entityid, ?MetaDataStorageHandl 'entityid' => $entityid, 'SingleSignOnService' => $sso, 'SingleLogoutService' => $slo, - 'NameIDFormat' => $config->getOptionalArrayizeString('NameIDFormat', [Constants::NAMEID_TRANSIENT]), + 'NameIDFormat' => $config->getOptionalArrayizeString('NameIDFormat', [C::NAMEID_TRANSIENT]), ]; // metadata signing @@ -894,7 +894,7 @@ public static function getHostedMetadata(string $entityid, ?MetaDataStorageHandl if ($config->getOptionalBoolean('saml20.sendartifact', false)) { $metadata['ArtifactResolutionService'][] = [ 'index' => 0, - 'Binding' => Constants::BINDING_SOAP, + 'Binding' => C::BINDING_SOAP, 'Location' => Module::getModuleURL('saml/idp/artifactResolutionService'), ]; } @@ -904,8 +904,8 @@ public static function getHostedMetadata(string $entityid, ?MetaDataStorageHandl array_unshift( $metadata['SingleSignOnService'], [ - 'hoksso:ProtocolBinding' => Constants::BINDING_HTTP_REDIRECT, - 'Binding' => Constants::BINDING_HOK_SSO, + 'hoksso:ProtocolBinding' => C::BINDING_HTTP_REDIRECT, + 'Binding' => C::BINDING_HOK_SSO, 'Location' => Module::getModuleURL('saml/idp/singleSignOnService'), ], ); @@ -915,7 +915,7 @@ public static function getHostedMetadata(string $entityid, ?MetaDataStorageHandl if ($config->getOptionalBoolean('saml20.ecp', false)) { $metadata['SingleSignOnService'][] = [ 'index' => 0, - 'Binding' => Constants::BINDING_SOAP, + 'Binding' => C::BINDING_SOAP, 'Location' => Module::getModuleURL('saml/idp/singleSignOnService'), ]; } @@ -1110,7 +1110,7 @@ private static function getAttributeNameFormat( } // default - return Constants::NAMEFORMAT_URI; + return C::NAMEFORMAT_URI; } @@ -1150,7 +1150,7 @@ private static function buildAssertion( $issuer = new Issuer(); $issuer->setValue($state['IdPMetadata']['entityid']); - $issuer->setFormat(Constants::NAMEID_ENTITY); + $issuer->setFormat(C::NAMEID_ENTITY); $a->setIssuer($issuer); $audience = array_merge([$spMetadata->getString('entityid')], $spMetadata->getOptionalArray('audience', [])); @@ -1171,9 +1171,9 @@ private static function buildAssertion( // AuthnContext has been set by the upper IdP in front of the proxy, pass it back to the SP behind the proxy $a->setAuthnContextClassRef($state['saml:sp:AuthnContext']); } elseif ($httpUtils->isHTTPS()) { - $a->setAuthnContextClassRef(Constants::AC_PASSWORD_PROTECTED_TRANSPORT); + $a->setAuthnContextClassRef(C::AC_PASSWORD_PROTECTED_TRANSPORT); } else { - $a->setAuthnContextClassRef(Constants::AC_PASSWORD); + $a->setAuthnContextClassRef(C::AC_PASSWORD); } $sessionStart = $now; @@ -1197,7 +1197,7 @@ private static function buildAssertion( // ProtcolBinding of SP's overwrites IdP hosted metadata configuration $hokAssertion = null; - if ($state['saml:Binding'] === Constants::BINDING_HOK_SSO) { + if ($state['saml:Binding'] === C::BINDING_HOK_SSO) { $hokAssertion = true; } if ($hokAssertion === null) { @@ -1206,7 +1206,7 @@ private static function buildAssertion( if ($hokAssertion) { // Holder-of-Key - $sc->setMethod(Constants::CM_HOK); + $sc->setMethod(C::CM_HOK); if ($httpUtils->isHTTPS()) { if (isset($_SERVER['SSL_CLIENT_CERT']) && !empty($_SERVER['SSL_CLIENT_CERT'])) { @@ -1243,7 +1243,7 @@ private static function buildAssertion( } } else { // Bearer - $sc->setMethod(Constants::CM_BEARER); + $sc->setMethod(C::CM_BEARER); } $sc->setSubjectConfirmationData($scd); $a->setSubjectConfirmation([$sc]); @@ -1292,7 +1292,7 @@ private static function generateNameId( $nameIdFormat = current($spMetadata->getOptionalArrayizeString('NameIDFormat', [])); if ($nameIdFormat === false) { $nameIdFormat = current( - $idpMetadata->getOptionalArrayizeString('NameIDFormat', [Constants::NAMEID_TRANSIENT]), + $idpMetadata->getOptionalArrayizeString('NameIDFormat', [C::NAMEID_TRANSIENT]), ); } } @@ -1303,12 +1303,12 @@ private static function generateNameId( } // We have nothing else to work with, so default to transient - if ($nameIdFormat !== Constants::NAMEID_TRANSIENT) { + if ($nameIdFormat !== C::NAMEID_TRANSIENT) { Logger::notice(sprintf( 'Requested NameID of format %s, but can only provide transient', var_export($nameIdFormat, true), )); - $nameIdFormat = Constants::NAMEID_TRANSIENT; + $nameIdFormat = C::NAMEID_TRANSIENT; } $randomUtils = new Utils\Random(); @@ -1468,7 +1468,7 @@ private static function buildResponse( $r = new Response(); $issuer = new Issuer(); $issuer->setValue($idpMetadata->getString('entityid')); - $issuer->setFormat(Constants::NAMEID_ENTITY); + $issuer->setFormat(C::NAMEID_ENTITY); $r->setIssuer($issuer); $r->setDestination($consumerURL); diff --git a/src/SimpleSAML/Configuration.php b/src/SimpleSAML/Configuration.php index 834a5b29ec..eba82dfcfe 100644 --- a/src/SimpleSAML/Configuration.php +++ b/src/SimpleSAML/Configuration.php @@ -7,10 +7,10 @@ use Exception; use ParseError; use SAML2\Binding; -use SAML2\Constants; use SAML2\Exception\Protocol\UnsupportedBindingException; use SimpleSAML\Assert\Assert; use SimpleSAML\Error; +use SimpleSAML\SAML2\Constants as C; use SimpleSAML\Utils; use Symfony\Component\Filesystem\Filesystem; @@ -1178,12 +1178,12 @@ private function getDefaultBinding(string $endpointType): string case 'saml20-idp-remote:SingleSignOnService': case 'saml20-idp-remote:SingleLogoutService': case 'saml20-sp-remote:SingleLogoutService': - return Constants::BINDING_HTTP_REDIRECT; + return C::BINDING_HTTP_REDIRECT; case 'saml20-sp-remote:AssertionConsumerService': - return Constants::BINDING_HTTP_POST; + return C::BINDING_HTTP_POST; case 'saml20-idp-remote:ArtifactResolutionService': case 'attributeauthority-remote:AttributeService': - return Constants::BINDING_SOAP; + return C::BINDING_SOAP; default: throw new Exception('Missing default binding for ' . $endpointType . ' in ' . $set); } diff --git a/src/SimpleSAML/IdP.php b/src/SimpleSAML/IdP.php index 97da6a5ed3..0c8f8d1340 100644 --- a/src/SimpleSAML/IdP.php +++ b/src/SimpleSAML/IdP.php @@ -4,7 +4,7 @@ namespace SimpleSAML; -use SAML2\Constants; +use SimpleSAML\SAML2\Constants as C; use SAML2\Exception\Protocol\NoPassiveException; use SimpleSAML\Assert\Assert; use SimpleSAML\Auth; @@ -341,7 +341,7 @@ public static function postAuth(array $state): void private function authenticate(array &$state): void { if (isset($state['isPassive']) && (bool) $state['isPassive']) { - throw new NoPassiveException(Constants::STATUS_RESPONDER . ': Passive authentication not supported.'); + throw new NoPassiveException(C::STATUS_RESPONDER . ': Passive authentication not supported.'); } $this->authSource->login($state); diff --git a/src/SimpleSAML/Metadata/MetaDataStorageHandler.php b/src/SimpleSAML/Metadata/MetaDataStorageHandler.php index 4c0137e99c..aade24beb3 100644 --- a/src/SimpleSAML/Metadata/MetaDataStorageHandler.php +++ b/src/SimpleSAML/Metadata/MetaDataStorageHandler.php @@ -4,7 +4,7 @@ namespace SimpleSAML\Metadata; -use SAML2\Constants; +use SimpleSAML\SAML2\Constants as C; use SimpleSAML\Assert\Assert; use SimpleSAML\Configuration; use SimpleSAML\Error; @@ -111,7 +111,7 @@ public function getGenerated( if ($set == 'saml20-sp-hosted') { if ($property === 'SingleLogoutServiceBinding') { - return Constants::BINDING_HTTP_REDIRECT; + return C::BINDING_HTTP_REDIRECT; } } elseif ($set == 'saml20-idp-hosted') { switch ($property) { @@ -119,13 +119,13 @@ public function getGenerated( return $baseurl . 'module/saml/idp/singleSignOnService'; case 'SingleSignOnServiceBinding': - return Constants::BINDING_HTTP_REDIRECT; + return C::BINDING_HTTP_REDIRECT; case 'SingleLogoutService': return $baseurl . 'module/saml/idp/singleLogout'; case 'SingleLogoutServiceBinding': - return Constants::BINDING_HTTP_REDIRECT; + return C::BINDING_HTTP_REDIRECT; } } diff --git a/src/SimpleSAML/Metadata/SAMLBuilder.php b/src/SimpleSAML/Metadata/SAMLBuilder.php index f5db175835..10192702d5 100644 --- a/src/SimpleSAML/Metadata/SAMLBuilder.php +++ b/src/SimpleSAML/Metadata/SAMLBuilder.php @@ -5,7 +5,6 @@ namespace SimpleSAML\Metadata; use DOMElement; -use SAML2\Constants; use SAML2\XML\idpdisc\DiscoveryResponse; use SAML2\XML\md\AttributeAuthorityDescriptor; use SAML2\XML\md\AttributeConsumingService; @@ -31,6 +30,7 @@ use SimpleSAML\Configuration; use SimpleSAML\Logger; use SimpleSAML\Module; +use SimpleSAML\SAML2\Constants as C; use SimpleSAML\Utils; /** @@ -162,7 +162,7 @@ private function addExtensions(Configuration $metadata, RoleDescriptor $e): void foreach ($metadata->getArray('EntityAttributes') as $attributeName => $attributeValues) { $a = new Attribute(); $a->setName($attributeName); - $a->setNameFormat(Constants::NAMEFORMAT_URI); + $a->setNameFormat(C::NAMEFORMAT_URI); // Attribute names that is not URI is prefixed as this: '{nameformat}name' if (preg_match('/^\{(.*?)\}(.*)$/', $attributeName, $matches)) { @@ -335,7 +335,7 @@ private static function createEndpoints(array $endpoints, bool $indexed): array foreach ($endpoints as &$ep) { if ($indexed) { - if ($ep['Binding'] === Constants::NS_IDPDISC) { + if ($ep['Binding'] === C::NS_IDPDISC) { $t = new DiscoveryResponse(); } else { $t = new IndexedEndpointType(); @@ -373,9 +373,9 @@ private static function createEndpoints(array $endpoints, bool $indexed): array } if (isset($ep['hoksso:ProtocolBinding'])) { $t->setAttributeNS( - Constants::NS_HOK, + C::NS_HOK, 'hoksso:ProtocolBinding', - Constants::BINDING_HTTP_REDIRECT, + C::BINDING_HTTP_REDIRECT, ); } @@ -420,14 +420,14 @@ private function addAttributeConsumingService( $attributeconsumer->setServiceName($name); $attributeconsumer->setServiceDescription($metadata->getOptionalLocalizedString('description', [])); - $nameFormat = $metadata->getOptionalString('attributes.NameFormat', Constants::NAMEFORMAT_URI); + $nameFormat = $metadata->getOptionalString('attributes.NameFormat', C::NAMEFORMAT_URI); foreach ($attributes as $friendlyName => $attribute) { $t = new RequestedAttribute(); $t->setName($attribute); if (!is_int($friendlyName)) { $t->setFriendlyName($friendlyName); } - if ($nameFormat !== Constants::NAMEFORMAT_UNSPECIFIED) { + if ($nameFormat !== C::NAMEFORMAT_UNSPECIFIED) { $t->setNameFormat($nameFormat); } if (in_array($attribute, $attributesrequired, true)) { @@ -470,9 +470,9 @@ public function addMetadata(string $set, array $metadata): void * Add SAML 2.0 SP metadata. * * @param array $metadata The metadata. - * @param string[] $protocols The protocols supported. Defaults to \SAML2\Constants::NS_SAMLP. + * @param string[] $protocols The protocols supported. Defaults to \SimpleSAML\SAML2\Constants::NS_SAMLP. */ - public function addMetadataSP20(array $metadata, array $protocols = [Constants::NS_SAMLP]): void + public function addMetadataSP20(array $metadata, array $protocols = [C::NS_SAMLP]): void { Assert::notNull($metadata['entityid']); Assert::notNull($metadata['metadata-set']); @@ -503,7 +503,7 @@ public function addMetadataSP20(array $metadata, array $protocols = [Constants:: $endpoints = $metadata->getEndpoints('AssertionConsumerService'); foreach ($metadata->getOptionalArrayizeString('AssertionConsumerService.artifact', []) as $acs) { $endpoints[] = [ - 'Binding' => Constants::BINDING_HTTP_ARTIFACT, + 'Binding' => C::BINDING_HTTP_ARTIFACT, 'Location' => $acs, ]; } @@ -534,7 +534,7 @@ public function addMetadataIdP20(array $metadata): void $metadata = Configuration::loadFromArray($metadata, $metadata['entityid']); $e = new IDPSSODescriptor(); - $e->setProtocolSupportEnumeration(array_merge($e->getProtocolSupportEnumeration(), [Constants::NS_SAMLP])); + $e->setProtocolSupportEnumeration(array_merge($e->getProtocolSupportEnumeration(), [C::NS_SAMLP])); if ($metadata->hasValue('sign.authnrequest')) { $e->setWantAuthnRequestsSigned($metadata->getBoolean('sign.authnrequest')); @@ -591,7 +591,7 @@ public function addAttributeAuthority(array $metadata): void $metadata = Configuration::loadFromArray($metadata, $metadata['entityid']); $e = new AttributeAuthorityDescriptor(); - $e->setProtocolSupportEnumeration($metadata->getOptionalArray('protocols', [Constants::NS_SAMLP])); + $e->setProtocolSupportEnumeration($metadata->getOptionalArray('protocols', [C::NS_SAMLP])); $this->addExtensions($metadata, $e); $this->addCertificate($e, $metadata); diff --git a/src/SimpleSAML/Utils/Config/Metadata.php b/src/SimpleSAML/Utils/Config/Metadata.php index 021ad5b60e..99d086fc8f 100644 --- a/src/SimpleSAML/Utils/Config/Metadata.php +++ b/src/SimpleSAML/Utils/Config/Metadata.php @@ -4,7 +4,7 @@ namespace SimpleSAML\Utils\Config; -use SAML2\Constants; +use SimpleSAML\SAML2\Constants as C; use SAML2\XML\md\ContactPerson; use SimpleSAML\Configuration; @@ -248,7 +248,7 @@ public static function parseNameIdPolicy(?array $nameIdPolicy = null): array { if ($nameIdPolicy === null) { // when NameIDPolicy is unset or set to null, default to transient - return ['Format' => Constants::NAMEID_TRANSIENT, 'AllowCreate' => false]; + return ['Format' => C::NAMEID_TRANSIENT, 'AllowCreate' => false]; } if ($nameIdPolicy === []) { @@ -258,10 +258,10 @@ public static function parseNameIdPolicy(?array $nameIdPolicy = null): array // handle configurations specifying an array in the NameIDPolicy config option $nameIdPolicy_cf = Configuration::loadFromArray($nameIdPolicy); - $format = $nameIdPolicy_cf->getOptionalString('Format', Constants::NAMEID_TRANSIENT); + $format = $nameIdPolicy_cf->getOptionalString('Format', C::NAMEID_TRANSIENT); $allowCreate = $nameIdPolicy_cf->getOptionalBoolean('AllowCreate', true); // SAML Version 2.0 Errata 05 lines 252-255 (pg 12) - if ($format === Constants::NAMEID_TRANSIENT) { + if ($format === C::NAMEID_TRANSIENT) { if ($allowCreate) { $allowCreate = false; } diff --git a/tests/modules/core/src/Auth/Process/TargetedIDTest.php b/tests/modules/core/src/Auth/Process/TargetedIDTest.php index 9d895a1255..b24c693af2 100644 --- a/tests/modules/core/src/Auth/Process/TargetedIDTest.php +++ b/tests/modules/core/src/Auth/Process/TargetedIDTest.php @@ -7,10 +7,10 @@ use Exception; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; -use SAML2\Constants; use SAML2\XML\saml\NameID; use SimpleSAML\Configuration; use SimpleSAML\Module\core\Auth\Process\TargetedID; +use SimpleSAML\SAML2\Constants as C; use SimpleSAML\Utils; /** @@ -111,7 +111,7 @@ public function testWithSrcDst(): void public function testNameIdGeneration(): void { $nameid = new NameID(); - $nameid->setFormat(Constants::NAMEID_PERSISTENT); + $nameid->setFormat(C::NAMEID_PERSISTENT); $nameid->setNameQualifier('urn:example:src:id'); $nameid->setSPNameQualifier('joe'); $nameid->setValue('joe'); diff --git a/tests/modules/core/src/Auth/UserPassBaseTest.php b/tests/modules/core/src/Auth/UserPassBaseTest.php index 2ab4b6197d..2a148cdd66 100644 --- a/tests/modules/core/src/Auth/UserPassBaseTest.php +++ b/tests/modules/core/src/Auth/UserPassBaseTest.php @@ -6,10 +6,10 @@ use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; -use SAML2\Constants; use SimpleSAML\Error\Error as SspError; use SimpleSAML\Error\ErrorCodes; use SimpleSAML\Module\core\Auth\UserPassBase; +use SimpleSAML\SAML2\Constants as C; /** */ @@ -21,7 +21,7 @@ class UserPassBaseTest extends TestCase public function testAuthenticateECPCallsLoginAndSetsAttributes(): void { $state = [ - 'saml:Binding' => Constants::BINDING_PAOS, + 'saml:Binding' => C::BINDING_PAOS, ]; $attributes = ['attrib' => 'val']; @@ -53,7 +53,7 @@ public function testAuthenticateECPMissingUsername(): void $this->expectExceptionMessage(ErrorCodes::WRONGUSERPASS); $state = [ - 'saml:Binding' => Constants::BINDING_PAOS, + 'saml:Binding' => C::BINDING_PAOS, ]; unset($_SERVER['PHP_AUTH_USER']); @@ -77,7 +77,7 @@ public function testAuthenticateECPMissingPassword(): void $this->expectExceptionMessage(ErrorCodes::WRONGUSERPASS); $state = [ - 'saml:Binding' => Constants::BINDING_PAOS, + 'saml:Binding' => C::BINDING_PAOS, ]; $_SERVER['PHP_AUTH_USER'] = 'username'; @@ -98,7 +98,7 @@ public function testAuthenticateECPMissingPassword(): void public function testAuthenticateECPCallsLoginWithForcedUsername(): void { $state = [ - 'saml:Binding' => Constants::BINDING_PAOS, + 'saml:Binding' => C::BINDING_PAOS, ]; $attributes = []; diff --git a/tests/modules/saml/src/Auth/Process/NameIDAttributeTest.php b/tests/modules/saml/src/Auth/Process/NameIDAttributeTest.php index 090a82a9d5..427aadd108 100644 --- a/tests/modules/saml/src/Auth/Process/NameIDAttributeTest.php +++ b/tests/modules/saml/src/Auth/Process/NameIDAttributeTest.php @@ -6,7 +6,7 @@ use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; -use SAML2\Constants; +use SimpleSAML\SAML2\Constants as C; use SAML2\XML\saml\NameID; use SimpleSAML\Error; use SimpleSAML\Module\saml\Auth\Process\NameIDAttribute; @@ -46,7 +46,7 @@ public function testMinimalConfig(): void $nameId = new NameID(); $nameId->setValue('eugene@oombaas'); - $nameId->setFormat(Constants::NAMEID_PERSISTENT); + $nameId->setFormat(C::NAMEID_PERSISTENT); $nameId->setNameQualifier($idpId); $nameId->setSPNameQualifier($spId); @@ -76,7 +76,7 @@ public function testCustomAttributeName(): void $nameId = new NameID(); $nameId->setValue('eugene@oombaas'); - $nameId->setFormat(Constants::NAMEID_PERSISTENT); + $nameId->setFormat(C::NAMEID_PERSISTENT); $nameId->setNameQualifier($idpId); $nameId->setSPNameQualifier($spId); @@ -106,7 +106,7 @@ public function testFormat(): void $nameId = new NameID(); $nameId->setValue('eugene@oombaas'); - $nameId->setFormat(Constants::NAMEID_PERSISTENT); + $nameId->setFormat(C::NAMEID_PERSISTENT); $nameId->setNameQualifier($idpId); $nameId->setSPNameQualifier($spId); @@ -189,7 +189,7 @@ public function testCustomAttributeNameAndFormat(): void $nameId = new NameID(); $nameId->setValue('eugene@oombaas'); - $nameId->setFormat(Constants::NAMEID_PERSISTENT); + $nameId->setFormat(C::NAMEID_PERSISTENT); $nameId->setNameQualifier($idpId); $nameId->setSPNameQualifier($spId); @@ -229,7 +229,7 @@ public function testOverrideNameID(): void 'saml:sp:NameID' => $nameId, ]; $this->processFilter([], $request); - $this->assertEquals("{$nameId->getFormat()}", Constants::NAMEID_UNSPECIFIED); + $this->assertEquals("{$nameId->getFormat()}", C::NAMEID_UNSPECIFIED); $this->assertEquals("{$nameId->getNameQualifier()}", $idpId); $this->assertEquals("{$nameId->getSPNameQualifier()}", $spId); } diff --git a/tests/src/SimpleSAML/ConfigurationTest.php b/tests/src/SimpleSAML/ConfigurationTest.php index ad01cf7e81..6457efbdc4 100644 --- a/tests/src/SimpleSAML/ConfigurationTest.php +++ b/tests/src/SimpleSAML/ConfigurationTest.php @@ -6,7 +6,7 @@ use Exception; use PHPUnit\Framework\Attributes\CoversClass; -use SAML2\Constants; +use SimpleSAML\SAML2\Constants as C; use SimpleSAML\Assert\AssertionFailedException; use SimpleSAML\Configuration; use SimpleSAML\Error; @@ -731,14 +731,14 @@ public function testGetDefaultEndpoint(): void [ [ 'Location' => 'https://example.com/endpoint.php', - 'Binding' => Constants::BINDING_HTTP_POST, + 'Binding' => C::BINDING_HTTP_POST, ], ], // 1. define the ResponseLocation too [ [ 'Location' => 'https://example.com/endpoint.php', - 'Binding' => Constants::BINDING_HTTP_POST, + 'Binding' => C::BINDING_HTTP_POST, 'ResponseLocation' => 'https://example.com/endpoint.php', ], ], @@ -747,12 +747,12 @@ public function testGetDefaultEndpoint(): void [ 'index' => 1, 'Location' => 'https://www1.example.com/endpoint.php', - 'Binding' => Constants::BINDING_HTTP_REDIRECT, + 'Binding' => C::BINDING_HTTP_REDIRECT, ], [ 'index' => 2, 'Location' => 'https://www2.example.com/endpoint.php', - 'Binding' => Constants::BINDING_HTTP_POST, + 'Binding' => C::BINDING_HTTP_POST, ], ], // 3. make sure isDefault has priority over indexes @@ -760,13 +760,13 @@ public function testGetDefaultEndpoint(): void [ 'index' => 1, 'Location' => 'https://www2.example.com/endpoint.php', - 'Binding' => Constants::BINDING_HTTP_POST, + 'Binding' => C::BINDING_HTTP_POST, ], [ 'index' => 2, 'isDefault' => true, 'Location' => 'https://www1.example.com/endpoint.php', - 'Binding' => Constants::BINDING_HTTP_REDIRECT, + 'Binding' => C::BINDING_HTTP_REDIRECT, ], ], // 4. make sure endpoints with invalid bindings are ignored and those marked as NOT default are still used @@ -780,7 +780,7 @@ public function testGetDefaultEndpoint(): void 'index' => 2, 'isDefault' => false, 'Location' => 'https://www2.example.com/endpoint.php', - 'Binding' => Constants::BINDING_HTTP_POST, + 'Binding' => C::BINDING_HTTP_POST, ], ], ]; @@ -788,24 +788,24 @@ public function testGetDefaultEndpoint(): void // if we specify the binding, we should get it back [ 'Location' => 'https://example.com/endpoint.php', - 'Binding' => Constants::BINDING_HTTP_POST, + 'Binding' => C::BINDING_HTTP_POST, ], // if we specify ResponseLocation, we should get it back too [ 'Location' => 'https://example.com/endpoint.php', - 'Binding' => Constants::BINDING_HTTP_POST, + 'Binding' => C::BINDING_HTTP_POST, 'ResponseLocation' => 'https://example.com/endpoint.php', ], // indexes must NOT be taken into account, order is the only thing that matters here [ 'Location' => 'https://www1.example.com/endpoint.php', - 'Binding' => Constants::BINDING_HTTP_REDIRECT, + 'Binding' => C::BINDING_HTTP_REDIRECT, 'index' => 1, ], // isDefault must have higher priority than indexes [ 'Location' => 'https://www1.example.com/endpoint.php', - 'Binding' => Constants::BINDING_HTTP_REDIRECT, + 'Binding' => C::BINDING_HTTP_REDIRECT, 'isDefault' => true, 'index' => 2, ], @@ -814,16 +814,16 @@ public function testGetDefaultEndpoint(): void 'index' => 2, 'isDefault' => false, 'Location' => 'https://www2.example.com/endpoint.php', - 'Binding' => Constants::BINDING_HTTP_POST, + 'Binding' => C::BINDING_HTTP_POST, ], ]; $valid_bindings = [ - Constants::BINDING_HTTP_POST, - Constants::BINDING_HTTP_REDIRECT, - Constants::BINDING_HOK_SSO, - Constants::BINDING_HTTP_ARTIFACT, - Constants::BINDING_SOAP, + C::BINDING_HTTP_POST, + C::BINDING_HTTP_REDIRECT, + C::BINDING_HOK_SSO, + C::BINDING_HTTP_ARTIFACT, + C::BINDING_SOAP, ]; $a = [ @@ -863,14 +863,14 @@ public function testGetDefaultEndpoint(): void $this->assertEquals( [ 'Location' => 'https://example.com/ars', - 'Binding' => Constants::BINDING_SOAP, + 'Binding' => C::BINDING_SOAP, ], $c->getDefaultEndpoint('ArtifactResolutionService'), ); $this->assertEquals( [ 'Location' => 'https://example.com/slo', - 'Binding' => Constants::BINDING_HTTP_REDIRECT, + 'Binding' => C::BINDING_HTTP_REDIRECT, ], $c->getDefaultEndpoint('SingleLogoutService'), ); @@ -954,7 +954,7 @@ public function testGetEndpoints(): void [ [ 'Location' => 'https://example.com/endpoint.php', - 'Binding' => Constants::BINDING_HTTP_REDIRECT, + 'Binding' => C::BINDING_HTTP_REDIRECT, 'ResponseLocation' => 1234, ], ], @@ -962,7 +962,7 @@ public function testGetEndpoints(): void [ [ 'Location' => 'https://example.com/endpoint.php', - 'Binding' => Constants::BINDING_HTTP_REDIRECT, + 'Binding' => C::BINDING_HTTP_REDIRECT, 'index' => 'string', ], ], diff --git a/tests/src/SimpleSAML/Metadata/SAMLParserTest.php b/tests/src/SimpleSAML/Metadata/SAMLParserTest.php index 58d1c38730..9f280418e5 100644 --- a/tests/src/SimpleSAML/Metadata/SAMLParserTest.php +++ b/tests/src/SimpleSAML/Metadata/SAMLParserTest.php @@ -6,8 +6,8 @@ use DOMDocument; use PHPUnit\Framework\Attributes\CoversClass; -use SAML2\Constants; use SimpleSAML\Metadata\SAMLParser; +use SimpleSAML\SAML2\Constants as C; use SimpleSAML\Test\SigningTestCase; use SimpleSAML\XML\DOMDocumentFactory; use SimpleSAML\XML\Signer; @@ -26,7 +26,7 @@ public function testDiscoveryResponse(): void $expected = [ 0 => [ 'index' => 43, - 'Binding' => Constants::NS_IDPDISC, + 'Binding' => C::NS_IDPDISC, 'Location' => 'https://simplesamlphp.org/some/endpoint', 'isDefault' => false, ], diff --git a/tests/src/SimpleSAML/Utils/Config/MetadataTest.php b/tests/src/SimpleSAML/Utils/Config/MetadataTest.php index f9084a81ae..a69952f8ca 100644 --- a/tests/src/SimpleSAML/Utils/Config/MetadataTest.php +++ b/tests/src/SimpleSAML/Utils/Config/MetadataTest.php @@ -7,8 +7,8 @@ use InvalidArgumentException; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; -use SAML2\Constants; use SAML2\XML\md\ContactPerson; +use SimpleSAML\SAML2\Constants as C; use SimpleSAML\Utils\Config\Metadata; use TypeError; @@ -256,7 +256,7 @@ public function testParseNameIdPolicyDefaults(): void // Test null or unset $nameIdPolicy = null; $this->assertEquals([ - 'Format' => Constants::NAMEID_TRANSIENT, + 'Format' => C::NAMEID_TRANSIENT, 'AllowCreate' => false, ], Metadata::parseNameIdPolicy($nameIdPolicy)); @@ -272,7 +272,7 @@ public function testParseNameIdPolicyDefaults(): void 'AllowCreate' => false, ]; $this->assertEquals([ - 'Format' => Constants::NAMEID_TRANSIENT, + 'Format' => C::NAMEID_TRANSIENT, 'AllowCreate' => false, ], Metadata::parseNameIdPolicy($nameIdPolicy)); } From 4f5d8452ed7fe0373dd68eef873a3d16020198e3 Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Sun, 28 Jun 2026 00:29:12 +0200 Subject: [PATCH 12/39] Bump dependencies --- composer.lock | 370 +++++++++++++++++++++++++------------------------- 1 file changed, 185 insertions(+), 185 deletions(-) diff --git a/composer.lock b/composer.lock index 2a541b83c1..95211281f1 100644 --- a/composer.lock +++ b/composer.lock @@ -216,16 +216,16 @@ }, { "name": "gettext/translator", - "version": "v1.2.1", + "version": "v1.2.3", "source": { "type": "git", "url": "https://github.com/php-gettext/Translator.git", - "reference": "8ae0ac79053bcb732a6c584cd86f7a82ef183161" + "reference": "e6d96e03d8c1afb3ef497799921ad0adfc9f4f96" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-gettext/Translator/zipball/8ae0ac79053bcb732a6c584cd86f7a82ef183161", - "reference": "8ae0ac79053bcb732a6c584cd86f7a82ef183161", + "url": "https://api.github.com/repos/php-gettext/Translator/zipball/e6d96e03d8c1afb3ef497799921ad0adfc9f4f96", + "reference": "e6d96e03d8c1afb3ef497799921ad0adfc9f4f96", "shasum": "" }, "require": { @@ -270,7 +270,7 @@ "support": { "email": "oom@oscarotero.com", "issues": "https://github.com/php-gettext/Translator/issues", - "source": "https://github.com/php-gettext/Translator/tree/v1.2.1" + "source": "https://github.com/php-gettext/Translator/tree/v1.2.3" }, "funding": [ { @@ -286,20 +286,20 @@ "type": "patreon" } ], - "time": "2025-01-09T09:20:22+00:00" + "time": "2026-06-18T22:49:04+00:00" }, { "name": "guzzlehttp/psr7", - "version": "2.11.0", + "version": "2.12.3", "source": { "type": "git", "url": "https://github.com/guzzle/psr7.git", - "reference": "bbb5e61349fa5cb822b3e87842b951088b76b81f" + "reference": "7ec62dc3f44aa218487dbed81a9bf9bc647be55d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/bbb5e61349fa5cb822b3e87842b951088b76b81f", - "reference": "bbb5e61349fa5cb822b3e87842b951088b76b81f", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/7ec62dc3f44aa218487dbed81a9bf9bc647be55d", + "reference": "7ec62dc3f44aa218487dbed81a9bf9bc647be55d", "shasum": "" }, "require": { @@ -308,7 +308,7 @@ "psr/http-message": "^1.1 || ^2.0", "ralouphie/getallheaders": "^3.0", "symfony/deprecation-contracts": "^2.5 || ^3.0", - "symfony/polyfill-php80": "^1.24" + "symfony/polyfill-php80": "^1.25" }, "provide": { "psr/http-factory-implementation": "1.0", @@ -389,7 +389,7 @@ ], "support": { "issues": "https://github.com/guzzle/psr7/issues", - "source": "https://github.com/guzzle/psr7/tree/2.11.0" + "source": "https://github.com/guzzle/psr7/tree/2.12.3" }, "funding": [ { @@ -405,7 +405,7 @@ "type": "tidelift" } ], - "time": "2026-06-02T12:30:48+00:00" + "time": "2026-06-23T15:21:08+00:00" }, { "name": "nikic/php-parser", @@ -1584,16 +1584,16 @@ }, { "name": "symfony/cache", - "version": "v7.4.13", + "version": "v7.4.14", "source": { "type": "git", "url": "https://github.com/symfony/cache.git", - "reference": "4c09e18a92cce126cc0d1155825279fca8cd0673" + "reference": "9adfcb2a7fc3924473b09f5a0b058dcc2cc7be9a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/cache/zipball/4c09e18a92cce126cc0d1155825279fca8cd0673", - "reference": "4c09e18a92cce126cc0d1155825279fca8cd0673", + "url": "https://api.github.com/repos/symfony/cache/zipball/9adfcb2a7fc3924473b09f5a0b058dcc2cc7be9a", + "reference": "9adfcb2a7fc3924473b09f5a0b058dcc2cc7be9a", "shasum": "" }, "require": { @@ -1664,7 +1664,7 @@ "psr6" ], "support": { - "source": "https://github.com/symfony/cache/tree/v7.4.13" + "source": "https://github.com/symfony/cache/tree/v7.4.14" }, "funding": [ { @@ -1684,20 +1684,20 @@ "type": "tidelift" } ], - "time": "2026-05-24T08:43:14+00:00" + "time": "2026-06-17T14:44:48+00:00" }, { "name": "symfony/cache-contracts", - "version": "v3.7.0", + "version": "v3.7.1", "source": { "type": "git", "url": "https://github.com/symfony/cache-contracts.git", - "reference": "225e8a254166bd3442e370c6f50145465db63831" + "reference": "9789738bc19af1106dc54d6afba9a0b467516cf2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/cache-contracts/zipball/225e8a254166bd3442e370c6f50145465db63831", - "reference": "225e8a254166bd3442e370c6f50145465db63831", + "url": "https://api.github.com/repos/symfony/cache-contracts/zipball/9789738bc19af1106dc54d6afba9a0b467516cf2", + "reference": "9789738bc19af1106dc54d6afba9a0b467516cf2", "shasum": "" }, "require": { @@ -1744,7 +1744,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/cache-contracts/tree/v3.7.0" + "source": "https://github.com/symfony/cache-contracts/tree/v3.7.1" }, "funding": [ { @@ -1764,20 +1764,20 @@ "type": "tidelift" } ], - "time": "2026-05-05T15:33:14+00:00" + "time": "2026-06-05T06:23:12+00:00" }, { "name": "symfony/config", - "version": "v7.4.10", + "version": "v7.4.14", "source": { "type": "git", "url": "https://github.com/symfony/config.git", - "reference": "d91b6c7cd2a8c9a9c2b8d26c8f5ed48edf99ef57" + "reference": "7b665e443381ea7c4db03eb03b4bf79ea2b020eb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/config/zipball/d91b6c7cd2a8c9a9c2b8d26c8f5ed48edf99ef57", - "reference": "d91b6c7cd2a8c9a9c2b8d26c8f5ed48edf99ef57", + "url": "https://api.github.com/repos/symfony/config/zipball/7b665e443381ea7c4db03eb03b4bf79ea2b020eb", + "reference": "7b665e443381ea7c4db03eb03b4bf79ea2b020eb", "shasum": "" }, "require": { @@ -1823,7 +1823,7 @@ "description": "Helps you find, load, combine, autofill and validate configuration values of any kind", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/config/tree/v7.4.10" + "source": "https://github.com/symfony/config/tree/v7.4.14" }, "funding": [ { @@ -1843,20 +1843,20 @@ "type": "tidelift" } ], - "time": "2026-05-03T14:20:49+00:00" + "time": "2026-06-09T07:51:57+00:00" }, { "name": "symfony/console", - "version": "v7.4.13", + "version": "v7.4.14", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "85095d2573eaefaf35e40b9513a9bf09f72cd217" + "reference": "92f58bc4bf97a92ed1b9f367f0cd44f20bde0e87" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/85095d2573eaefaf35e40b9513a9bf09f72cd217", - "reference": "85095d2573eaefaf35e40b9513a9bf09f72cd217", + "url": "https://api.github.com/repos/symfony/console/zipball/92f58bc4bf97a92ed1b9f367f0cd44f20bde0e87", + "reference": "92f58bc4bf97a92ed1b9f367f0cd44f20bde0e87", "shasum": "" }, "require": { @@ -1921,7 +1921,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v7.4.13" + "source": "https://github.com/symfony/console/tree/v7.4.14" }, "funding": [ { @@ -1941,20 +1941,20 @@ "type": "tidelift" } ], - "time": "2026-05-24T08:56:14+00:00" + "time": "2026-06-16T11:50:14+00:00" }, { "name": "symfony/dependency-injection", - "version": "v7.4.13", + "version": "v7.4.14", "source": { "type": "git", "url": "https://github.com/symfony/dependency-injection.git", - "reference": "f299e20ce983be6c0744952533c6dfeaaa1448e2" + "reference": "2c8c64a33e2e6911579e1ff79a8e06c27d48d402" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/f299e20ce983be6c0744952533c6dfeaaa1448e2", - "reference": "f299e20ce983be6c0744952533c6dfeaaa1448e2", + "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/2c8c64a33e2e6911579e1ff79a8e06c27d48d402", + "reference": "2c8c64a33e2e6911579e1ff79a8e06c27d48d402", "shasum": "" }, "require": { @@ -2005,7 +2005,7 @@ "description": "Allows you to standardize and centralize the way objects are constructed in your application", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/dependency-injection/tree/v7.4.13" + "source": "https://github.com/symfony/dependency-injection/tree/v7.4.14" }, "funding": [ { @@ -2025,20 +2025,20 @@ "type": "tidelift" } ], - "time": "2026-05-20T14:07:29+00:00" + "time": "2026-06-24T07:41:05+00:00" }, { "name": "symfony/deprecation-contracts", - "version": "v3.7.0", + "version": "v3.7.1", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "50f59d1f3ca46d41ac911f97a78626b6756af35b" + "reference": "f3202fa1b5097b0af062dc978b32ecf63404e31d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/50f59d1f3ca46d41ac911f97a78626b6756af35b", - "reference": "50f59d1f3ca46d41ac911f97a78626b6756af35b", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/f3202fa1b5097b0af062dc978b32ecf63404e31d", + "reference": "f3202fa1b5097b0af062dc978b32ecf63404e31d", "shasum": "" }, "require": { @@ -2076,7 +2076,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v3.7.0" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.7.1" }, "funding": [ { @@ -2096,20 +2096,20 @@ "type": "tidelift" } ], - "time": "2026-04-13T15:52:40+00:00" + "time": "2026-06-05T06:23:12+00:00" }, { "name": "symfony/error-handler", - "version": "v7.4.8", + "version": "v7.4.14", "source": { "type": "git", "url": "https://github.com/symfony/error-handler.git", - "reference": "8dd79d8af777ee6cba2fd4d98da6ffb839f3c0fa" + "reference": "4e1a093b481f323e6e326451f9760c3868430673" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/error-handler/zipball/8dd79d8af777ee6cba2fd4d98da6ffb839f3c0fa", - "reference": "8dd79d8af777ee6cba2fd4d98da6ffb839f3c0fa", + "url": "https://api.github.com/repos/symfony/error-handler/zipball/4e1a093b481f323e6e326451f9760c3868430673", + "reference": "4e1a093b481f323e6e326451f9760c3868430673", "shasum": "" }, "require": { @@ -2158,7 +2158,7 @@ "description": "Provides tools to manage errors and ease debugging PHP code", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/error-handler/tree/v7.4.8" + "source": "https://github.com/symfony/error-handler/tree/v7.4.14" }, "funding": [ { @@ -2178,20 +2178,20 @@ "type": "tidelift" } ], - "time": "2026-03-24T13:12:05+00:00" + "time": "2026-06-05T06:22:21+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v7.4.9", + "version": "v7.4.14", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "e4a2e29753c7801f7a8340e066cfa788f3bc8101" + "reference": "51fe3d170227be8d1772214b82ae506e15ed78ff" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/e4a2e29753c7801f7a8340e066cfa788f3bc8101", - "reference": "e4a2e29753c7801f7a8340e066cfa788f3bc8101", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/51fe3d170227be8d1772214b82ae506e15ed78ff", + "reference": "51fe3d170227be8d1772214b82ae506e15ed78ff", "shasum": "" }, "require": { @@ -2243,7 +2243,7 @@ "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/event-dispatcher/tree/v7.4.9" + "source": "https://github.com/symfony/event-dispatcher/tree/v7.4.14" }, "funding": [ { @@ -2263,20 +2263,20 @@ "type": "tidelift" } ], - "time": "2026-04-18T13:18:21+00:00" + "time": "2026-06-06T11:10:32+00:00" }, { "name": "symfony/event-dispatcher-contracts", - "version": "v3.7.0", + "version": "v3.7.1", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher-contracts.git", - "reference": "ccba7060602b7fed0b03c85bf025257f76d9ef32" + "reference": "c7de7a00ffb67842132da02ea92988a39ccd9f4e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/ccba7060602b7fed0b03c85bf025257f76d9ef32", - "reference": "ccba7060602b7fed0b03c85bf025257f76d9ef32", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/c7de7a00ffb67842132da02ea92988a39ccd9f4e", + "reference": "c7de7a00ffb67842132da02ea92988a39ccd9f4e", "shasum": "" }, "require": { @@ -2323,7 +2323,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.7.0" + "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.7.1" }, "funding": [ { @@ -2343,20 +2343,20 @@ "type": "tidelift" } ], - "time": "2026-01-05T13:30:16+00:00" + "time": "2026-06-05T06:23:12+00:00" }, { "name": "symfony/expression-language", - "version": "v7.4.8", + "version": "v7.4.14", "source": { "type": "git", "url": "https://github.com/symfony/expression-language.git", - "reference": "87ff95687748f4af65e4d5a6e917d448ec52aa83" + "reference": "bd5763f92959201816ecc31defdf352d2ea473be" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/expression-language/zipball/87ff95687748f4af65e4d5a6e917d448ec52aa83", - "reference": "87ff95687748f4af65e4d5a6e917d448ec52aa83", + "url": "https://api.github.com/repos/symfony/expression-language/zipball/bd5763f92959201816ecc31defdf352d2ea473be", + "reference": "bd5763f92959201816ecc31defdf352d2ea473be", "shasum": "" }, "require": { @@ -2391,7 +2391,7 @@ "description": "Provides an engine that can compile and evaluate expressions", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/expression-language/tree/v7.4.8" + "source": "https://github.com/symfony/expression-language/tree/v7.4.14" }, "funding": [ { @@ -2411,7 +2411,7 @@ "type": "tidelift" } ], - "time": "2026-03-24T13:12:05+00:00" + "time": "2026-06-08T20:24:16+00:00" }, { "name": "symfony/filesystem", @@ -2485,16 +2485,16 @@ }, { "name": "symfony/finder", - "version": "v7.4.8", + "version": "v7.4.14", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "e0be088d22278583a82da281886e8c3592fbf149" + "reference": "13b38720174286f55d1761152b575a8d1436fc25" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/e0be088d22278583a82da281886e8c3592fbf149", - "reference": "e0be088d22278583a82da281886e8c3592fbf149", + "url": "https://api.github.com/repos/symfony/finder/zipball/13b38720174286f55d1761152b575a8d1436fc25", + "reference": "13b38720174286f55d1761152b575a8d1436fc25", "shasum": "" }, "require": { @@ -2529,7 +2529,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v7.4.8" + "source": "https://github.com/symfony/finder/tree/v7.4.14" }, "funding": [ { @@ -2549,20 +2549,20 @@ "type": "tidelift" } ], - "time": "2026-03-24T13:12:05+00:00" + "time": "2026-06-27T08:31:18+00:00" }, { "name": "symfony/framework-bundle", - "version": "v7.4.13", + "version": "v7.4.14", "source": { "type": "git", "url": "https://github.com/symfony/framework-bundle.git", - "reference": "8be39c7bf9e6f58fe49c07927572a9df7c961c95" + "reference": "4d11fd50d0a3d2c43b400154ad7ec35b84ea3e5b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/8be39c7bf9e6f58fe49c07927572a9df7c961c95", - "reference": "8be39c7bf9e6f58fe49c07927572a9df7c961c95", + "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/4d11fd50d0a3d2c43b400154ad7ec35b84ea3e5b", + "reference": "4d11fd50d0a3d2c43b400154ad7ec35b84ea3e5b", "shasum": "" }, "require": { @@ -2612,7 +2612,7 @@ "symfony/twig-bundle": "<6.4", "symfony/validator": "<6.4", "symfony/web-profiler-bundle": "<6.4", - "symfony/webhook": "<7.2", + "symfony/webhook": "<7.4", "symfony/workflow": "<7.4" }, "require-dev": { @@ -2656,7 +2656,7 @@ "symfony/uid": "^6.4|^7.0|^8.0", "symfony/validator": "^7.4|^8.0", "symfony/web-link": "^6.4|^7.0|^8.0", - "symfony/webhook": "^7.2|^8.0", + "symfony/webhook": "^7.4|^8.0", "symfony/workflow": "^7.4|^8.0", "symfony/yaml": "^7.3|^8.0", "twig/twig": "^3.12" @@ -2687,7 +2687,7 @@ "description": "Provides a tight integration between Symfony components and the Symfony full-stack framework", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/framework-bundle/tree/v7.4.13" + "source": "https://github.com/symfony/framework-bundle/tree/v7.4.14" }, "funding": [ { @@ -2707,20 +2707,20 @@ "type": "tidelift" } ], - "time": "2026-05-23T18:04:28+00:00" + "time": "2026-06-27T08:31:38+00:00" }, { "name": "symfony/http-client", - "version": "v7.4.13", + "version": "v7.4.14", "source": { "type": "git", "url": "https://github.com/symfony/http-client.git", - "reference": "e8a112b8415707265a7e614278136a9d92989a6a" + "reference": "f6bc6b5a54ff5afac4725cacec9bf2f52eb15920" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-client/zipball/e8a112b8415707265a7e614278136a9d92989a6a", - "reference": "e8a112b8415707265a7e614278136a9d92989a6a", + "url": "https://api.github.com/repos/symfony/http-client/zipball/f6bc6b5a54ff5afac4725cacec9bf2f52eb15920", + "reference": "f6bc6b5a54ff5afac4725cacec9bf2f52eb15920", "shasum": "" }, "require": { @@ -2788,7 +2788,7 @@ "http" ], "support": { - "source": "https://github.com/symfony/http-client/tree/v7.4.13" + "source": "https://github.com/symfony/http-client/tree/v7.4.14" }, "funding": [ { @@ -2808,20 +2808,20 @@ "type": "tidelift" } ], - "time": "2026-05-24T09:57:54+00:00" + "time": "2026-06-16T11:50:14+00:00" }, { "name": "symfony/http-client-contracts", - "version": "v3.7.0", + "version": "v3.7.1", "source": { "type": "git", "url": "https://github.com/symfony/http-client-contracts.git", - "reference": "4a2d00c37651c0bdc2b9e1c773487a8bf4edb12d" + "reference": "41fc42d276aeff21192465331ebbab7d83a743c0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-client-contracts/zipball/4a2d00c37651c0bdc2b9e1c773487a8bf4edb12d", - "reference": "4a2d00c37651c0bdc2b9e1c773487a8bf4edb12d", + "url": "https://api.github.com/repos/symfony/http-client-contracts/zipball/41fc42d276aeff21192465331ebbab7d83a743c0", + "reference": "41fc42d276aeff21192465331ebbab7d83a743c0", "shasum": "" }, "require": { @@ -2870,7 +2870,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/http-client-contracts/tree/v3.7.0" + "source": "https://github.com/symfony/http-client-contracts/tree/v3.7.1" }, "funding": [ { @@ -2890,20 +2890,20 @@ "type": "tidelift" } ], - "time": "2026-03-06T13:17:50+00:00" + "time": "2026-06-05T06:23:12+00:00" }, { "name": "symfony/http-foundation", - "version": "v7.4.13", + "version": "v7.4.14", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "bc354f47c62301e990b7874fa662326368508e2c" + "reference": "06db5ae1552177bf8572f8908839f12e3c06aed3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/bc354f47c62301e990b7874fa662326368508e2c", - "reference": "bc354f47c62301e990b7874fa662326368508e2c", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/06db5ae1552177bf8572f8908839f12e3c06aed3", + "reference": "06db5ae1552177bf8572f8908839f12e3c06aed3", "shasum": "" }, "require": { @@ -2952,7 +2952,7 @@ "description": "Defines an object-oriented layer for the HTTP specification", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-foundation/tree/v7.4.13" + "source": "https://github.com/symfony/http-foundation/tree/v7.4.14" }, "funding": [ { @@ -2972,20 +2972,20 @@ "type": "tidelift" } ], - "time": "2026-05-24T11:20:33+00:00" + "time": "2026-06-11T07:31:44+00:00" }, { "name": "symfony/http-kernel", - "version": "v7.4.13", + "version": "v7.4.14", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "9df847980c436451f4f51d1284491bb4356dd989" + "reference": "e99af79b1e776646eda0e1c23b7b45c184ff99be" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/9df847980c436451f4f51d1284491bb4356dd989", - "reference": "9df847980c436451f4f51d1284491bb4356dd989", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/e99af79b1e776646eda0e1c23b7b45c184ff99be", + "reference": "e99af79b1e776646eda0e1c23b7b45c184ff99be", "shasum": "" }, "require": { @@ -3071,7 +3071,7 @@ "description": "Provides a structured process for converting a Request into a Response", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-kernel/tree/v7.4.13" + "source": "https://github.com/symfony/http-kernel/tree/v7.4.14" }, "funding": [ { @@ -3091,20 +3091,20 @@ "type": "tidelift" } ], - "time": "2026-05-27T08:31:43+00:00" + "time": "2026-06-27T09:14:35+00:00" }, { "name": "symfony/intl", - "version": "v7.4.8", + "version": "v7.4.14", "source": { "type": "git", "url": "https://github.com/symfony/intl.git", - "reference": "7cfb7792d580dea833647420afd5f2f98df8457b" + "reference": "02d77a81a198788444a8371658ef98e2e20c8c2b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/intl/zipball/7cfb7792d580dea833647420afd5f2f98df8457b", - "reference": "7cfb7792d580dea833647420afd5f2f98df8457b", + "url": "https://api.github.com/repos/symfony/intl/zipball/02d77a81a198788444a8371658ef98e2e20c8c2b", + "reference": "02d77a81a198788444a8371658ef98e2e20c8c2b", "shasum": "" }, "require": { @@ -3161,7 +3161,7 @@ "localization" ], "support": { - "source": "https://github.com/symfony/intl/tree/v7.4.8" + "source": "https://github.com/symfony/intl/tree/v7.4.14" }, "funding": [ { @@ -3181,7 +3181,7 @@ "type": "tidelift" } ], - "time": "2026-03-30T12:55:43+00:00" + "time": "2026-06-05T06:22:21+00:00" }, { "name": "symfony/password-hasher", @@ -4013,16 +4013,16 @@ }, { "name": "symfony/service-contracts", - "version": "v3.7.0", + "version": "v3.7.1", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "d25d82433a80eba6aa0e6c24b61d7370d99e444a" + "reference": "c0a284bab1ed8aa0417e3d69250ab437739563a0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/d25d82433a80eba6aa0e6c24b61d7370d99e444a", - "reference": "d25d82433a80eba6aa0e6c24b61d7370d99e444a", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/c0a284bab1ed8aa0417e3d69250ab437739563a0", + "reference": "c0a284bab1ed8aa0417e3d69250ab437739563a0", "shasum": "" }, "require": { @@ -4076,7 +4076,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v3.7.0" + "source": "https://github.com/symfony/service-contracts/tree/v3.7.1" }, "funding": [ { @@ -4096,7 +4096,7 @@ "type": "tidelift" } ], - "time": "2026-03-28T09:44:51+00:00" + "time": "2026-06-16T09:55:08+00:00" }, { "name": "symfony/string", @@ -4191,16 +4191,16 @@ }, { "name": "symfony/translation", - "version": "v7.4.10", + "version": "v7.4.14", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", - "reference": "ada7578c30dd5feaa8259cff3e885069ea81ddde" + "reference": "a1af4dacb24eb7ef4f1ca71b94da8ddbce572281" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/ada7578c30dd5feaa8259cff3e885069ea81ddde", - "reference": "ada7578c30dd5feaa8259cff3e885069ea81ddde", + "url": "https://api.github.com/repos/symfony/translation/zipball/a1af4dacb24eb7ef4f1ca71b94da8ddbce572281", + "reference": "a1af4dacb24eb7ef4f1ca71b94da8ddbce572281", "shasum": "" }, "require": { @@ -4267,7 +4267,7 @@ "description": "Provides tools to internationalize your application", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/translation/tree/v7.4.10" + "source": "https://github.com/symfony/translation/tree/v7.4.14" }, "funding": [ { @@ -4287,20 +4287,20 @@ "type": "tidelift" } ], - "time": "2026-05-06T11:19:24+00:00" + "time": "2026-06-06T09:33:19+00:00" }, { "name": "symfony/translation-contracts", - "version": "v3.7.0", + "version": "v3.7.1", "source": { "type": "git", "url": "https://github.com/symfony/translation-contracts.git", - "reference": "0ab302977a952b42fd51475c4ebac81f8da0a95d" + "reference": "ccb206b98faccc511ebae8e5fad50f2dc0b30621" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/0ab302977a952b42fd51475c4ebac81f8da0a95d", - "reference": "0ab302977a952b42fd51475c4ebac81f8da0a95d", + "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/ccb206b98faccc511ebae8e5fad50f2dc0b30621", + "reference": "ccb206b98faccc511ebae8e5fad50f2dc0b30621", "shasum": "" }, "require": { @@ -4349,7 +4349,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/translation-contracts/tree/v3.7.0" + "source": "https://github.com/symfony/translation-contracts/tree/v3.7.1" }, "funding": [ { @@ -4369,20 +4369,20 @@ "type": "tidelift" } ], - "time": "2026-01-05T13:30:16+00:00" + "time": "2026-06-05T06:23:12+00:00" }, { "name": "symfony/twig-bridge", - "version": "v7.4.12", + "version": "v7.4.14", "source": { "type": "git", "url": "https://github.com/symfony/twig-bridge.git", - "reference": "81663873d946531129c76c65e80b681ce99c0e89" + "reference": "e4574ab4d5411a7c495d4189b15a8ecfbc720332" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/twig-bridge/zipball/81663873d946531129c76c65e80b681ce99c0e89", - "reference": "81663873d946531129c76c65e80b681ce99c0e89", + "url": "https://api.github.com/repos/symfony/twig-bridge/zipball/e4574ab4d5411a7c495d4189b15a8ecfbc720332", + "reference": "e4574ab4d5411a7c495d4189b15a8ecfbc720332", "shasum": "" }, "require": { @@ -4464,7 +4464,7 @@ "description": "Provides integration for Twig with various Symfony components", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/twig-bridge/tree/v7.4.12" + "source": "https://github.com/symfony/twig-bridge/tree/v7.4.14" }, "funding": [ { @@ -4484,20 +4484,20 @@ "type": "tidelift" } ], - "time": "2026-04-29T17:13:54+00:00" + "time": "2026-06-17T13:16:29+00:00" }, { "name": "symfony/var-dumper", - "version": "v7.4.8", + "version": "v7.4.14", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "9510c3966f749a1d1ff0059e1eabef6cc621e7fd" + "reference": "9a3a56a4a1e65a5cb4f8d13801fe8ab0a170e358" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/9510c3966f749a1d1ff0059e1eabef6cc621e7fd", - "reference": "9510c3966f749a1d1ff0059e1eabef6cc621e7fd", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/9a3a56a4a1e65a5cb4f8d13801fe8ab0a170e358", + "reference": "9a3a56a4a1e65a5cb4f8d13801fe8ab0a170e358", "shasum": "" }, "require": { @@ -4551,7 +4551,7 @@ "dump" ], "support": { - "source": "https://github.com/symfony/var-dumper/tree/v7.4.8" + "source": "https://github.com/symfony/var-dumper/tree/v7.4.14" }, "funding": [ { @@ -4571,20 +4571,20 @@ "type": "tidelift" } ], - "time": "2026-03-30T13:44:50+00:00" + "time": "2026-06-08T20:24:16+00:00" }, { "name": "symfony/var-exporter", - "version": "v7.4.9", + "version": "v7.4.14", "source": { "type": "git", "url": "https://github.com/symfony/var-exporter.git", - "reference": "22e03a49c95ef054a43601cd159b222bfab1c701" + "reference": "0118811b1d59f323bf131250b3fb919febfece28" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-exporter/zipball/22e03a49c95ef054a43601cd159b222bfab1c701", - "reference": "22e03a49c95ef054a43601cd159b222bfab1c701", + "url": "https://api.github.com/repos/symfony/var-exporter/zipball/0118811b1d59f323bf131250b3fb919febfece28", + "reference": "0118811b1d59f323bf131250b3fb919febfece28", "shasum": "" }, "require": { @@ -4632,7 +4632,7 @@ "serialize" ], "support": { - "source": "https://github.com/symfony/var-exporter/tree/v7.4.9" + "source": "https://github.com/symfony/var-exporter/tree/v7.4.14" }, "funding": [ { @@ -4652,20 +4652,20 @@ "type": "tidelift" } ], - "time": "2026-04-18T13:18:21+00:00" + "time": "2026-06-27T08:41:53+00:00" }, { "name": "symfony/yaml", - "version": "v7.4.13", + "version": "v7.4.14", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "a7ec3b1156faf8815db7683ec7c1e7338e6f977c" + "reference": "f8f328665ace2370d1e10645b807ba1646dc7dcc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/a7ec3b1156faf8815db7683ec7c1e7338e6f977c", - "reference": "a7ec3b1156faf8815db7683ec7c1e7338e6f977c", + "url": "https://api.github.com/repos/symfony/yaml/zipball/f8f328665ace2370d1e10645b807ba1646dc7dcc", + "reference": "f8f328665ace2370d1e10645b807ba1646dc7dcc", "shasum": "" }, "require": { @@ -4708,7 +4708,7 @@ "description": "Loads and dumps YAML files", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/yaml/tree/v7.4.13" + "source": "https://github.com/symfony/yaml/tree/v7.4.14" }, "funding": [ { @@ -4728,7 +4728,7 @@ "type": "tidelift" } ], - "time": "2026-05-25T06:06:12+00:00" + "time": "2026-06-08T20:24:16+00:00" }, { "name": "twig/intl-extra", @@ -4876,16 +4876,16 @@ }, { "name": "webmozart/assert", - "version": "2.4.0", + "version": "2.4.1", "source": { "type": "git", "url": "https://github.com/webmozarts/assert.git", - "reference": "9007ea6f45ecf352a9422b36644e4bfc039b9155" + "reference": "2ccb7c2e821038c03a3e6e1700c570c158c55f70" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webmozarts/assert/zipball/9007ea6f45ecf352a9422b36644e4bfc039b9155", - "reference": "9007ea6f45ecf352a9422b36644e4bfc039b9155", + "url": "https://api.github.com/repos/webmozarts/assert/zipball/2ccb7c2e821038c03a3e6e1700c570c158c55f70", + "reference": "2ccb7c2e821038c03a3e6e1700c570c158c55f70", "shasum": "" }, "require": { @@ -4936,9 +4936,9 @@ ], "support": { "issues": "https://github.com/webmozarts/assert/issues", - "source": "https://github.com/webmozarts/assert/tree/2.4.0" + "source": "https://github.com/webmozarts/assert/tree/2.4.1" }, - "time": "2026-05-20T13:07:01+00:00" + "time": "2026-06-15T15:31:57+00:00" } ], "packages-dev": [ @@ -7438,16 +7438,16 @@ }, { "name": "slevomat/coding-standard", - "version": "8.29.0", + "version": "8.30.1", "source": { "type": "git", "url": "https://github.com/slevomat/coding-standard.git", - "reference": "81fce13c4ef4b53a03e5cfa6ce36afc191c1598e" + "reference": "70a3b2150600122f87c59cae1c1b5902ba73798b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/81fce13c4ef4b53a03e5cfa6ce36afc191c1598e", - "reference": "81fce13c4ef4b53a03e5cfa6ce36afc191c1598e", + "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/70a3b2150600122f87c59cae1c1b5902ba73798b", + "reference": "70a3b2150600122f87c59cae1c1b5902ba73798b", "shasum": "" }, "require": { @@ -7459,11 +7459,11 @@ "require-dev": { "phing/phing": "3.0.1|3.1.2", "php-parallel-lint/php-parallel-lint": "1.4.0", - "phpstan/phpstan": "2.1.54", + "phpstan/phpstan": "2.2.2", "phpstan/phpstan-deprecation-rules": "2.0.4", "phpstan/phpstan-phpunit": "2.0.16", "phpstan/phpstan-strict-rules": "2.0.11", - "phpunit/phpunit": "9.6.34|10.5.63|11.4.4|11.5.55|12.5.24" + "phpunit/phpunit": "9.6.34|10.5.63|11.4.4|11.5.55|12.5.30" }, "type": "phpcodesniffer-standard", "extra": { @@ -7487,7 +7487,7 @@ ], "support": { "issues": "https://github.com/slevomat/coding-standard/issues", - "source": "https://github.com/slevomat/coding-standard/tree/8.29.0" + "source": "https://github.com/slevomat/coding-standard/tree/8.30.1" }, "funding": [ { @@ -7499,7 +7499,7 @@ "type": "tidelift" } ], - "time": "2026-05-07T05:48:08+00:00" + "time": "2026-06-27T11:26:35+00:00" }, { "name": "squizlabs/php_codesniffer", @@ -7634,16 +7634,16 @@ }, { "name": "symfony/phpunit-bridge", - "version": "v8.1.0", + "version": "v8.1.1", "source": { "type": "git", "url": "https://github.com/symfony/phpunit-bridge.git", - "reference": "1fed488f8033f2dece371e60a1c66f2add274916" + "reference": "3e1c9a9167e07474ec115555b632f0ffadb0f94d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/phpunit-bridge/zipball/1fed488f8033f2dece371e60a1c66f2add274916", - "reference": "1fed488f8033f2dece371e60a1c66f2add274916", + "url": "https://api.github.com/repos/symfony/phpunit-bridge/zipball/3e1c9a9167e07474ec115555b632f0ffadb0f94d", + "reference": "3e1c9a9167e07474ec115555b632f0ffadb0f94d", "shasum": "" }, "require": { @@ -7695,7 +7695,7 @@ "testing" ], "support": { - "source": "https://github.com/symfony/phpunit-bridge/tree/v8.1.0" + "source": "https://github.com/symfony/phpunit-bridge/tree/v8.1.1" }, "funding": [ { @@ -7715,7 +7715,7 @@ "type": "tidelift" } ], - "time": "2026-05-29T05:06:50+00:00" + "time": "2026-06-09T10:54:51+00:00" }, { "name": "symfony/polyfill-php84", @@ -7970,16 +7970,16 @@ }, { "name": "symfony/serializer", - "version": "v7.4.10", + "version": "v7.4.14", "source": { "type": "git", "url": "https://github.com/symfony/serializer.git", - "reference": "268c5aa6c4bd675eddd89348e7ecac292a843ddd" + "reference": "55acb01b9c8a5211dfbaf68c314d90d0ed2cc3d1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/serializer/zipball/268c5aa6c4bd675eddd89348e7ecac292a843ddd", - "reference": "268c5aa6c4bd675eddd89348e7ecac292a843ddd", + "url": "https://api.github.com/repos/symfony/serializer/zipball/55acb01b9c8a5211dfbaf68c314d90d0ed2cc3d1", + "reference": "55acb01b9c8a5211dfbaf68c314d90d0ed2cc3d1", "shasum": "" }, "require": { @@ -8050,7 +8050,7 @@ "description": "Handles serializing and deserializing data structures, including object graphs, into array structures or other formats like XML and JSON.", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/serializer/tree/v7.4.10" + "source": "https://github.com/symfony/serializer/tree/v7.4.14" }, "funding": [ { @@ -8070,7 +8070,7 @@ "type": "tidelift" } ], - "time": "2026-05-03T13:03:28+00:00" + "time": "2026-06-27T08:31:18+00:00" }, { "name": "symfony/type-info", From 6e5baca4402a319dd532f04d87cac09af64f7d5b Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Mon, 6 Jul 2026 16:53:51 +0200 Subject: [PATCH 13/39] Fix timestamp --- docs/simplesamlphp-changelog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/simplesamlphp-changelog.md b/docs/simplesamlphp-changelog.md index d360c37f1c..18b468929f 100644 --- a/docs/simplesamlphp-changelog.md +++ b/docs/simplesamlphp-changelog.md @@ -368,7 +368,7 @@ to an incorrect error message. ## Version 2.2.1 -Released 2014-03-17 +Released 2024-03-17 * Fix regression in bin/initMDSPdo.php (was #1892) * Fix regression in translations, causing a fallback to English (#2009 + #2010) From 9ddf092cb29e02e5a56e28f651139154afd6c15f Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Mon, 6 Jul 2026 16:53:51 +0200 Subject: [PATCH 14/39] Fix timestamp --- docs/simplesamlphp-changelog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/simplesamlphp-changelog.md b/docs/simplesamlphp-changelog.md index d360c37f1c..18b468929f 100644 --- a/docs/simplesamlphp-changelog.md +++ b/docs/simplesamlphp-changelog.md @@ -368,7 +368,7 @@ to an incorrect error message. ## Version 2.2.1 -Released 2014-03-17 +Released 2024-03-17 * Fix regression in bin/initMDSPdo.php (was #1892) * Fix regression in translations, causing a fallback to English (#2009 + #2010) From 3bc8930862724d49a28c355892dc5d943ec0c3bd Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Tue, 14 Jul 2026 10:47:37 +0200 Subject: [PATCH 15/39] Bump minimum required PHP-version to 8.5 --- .github/workflows/php.yml | 12 ++++++------ composer.json | 16 ++++++++-------- docs/simplesamlphp-install.md | 2 +- docs/simplesamlphp-upgrade-notes-3.0.md | 4 ++++ modules/admin/src/Controller/Config.php | 4 ++-- 5 files changed, 21 insertions(+), 17 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 4ddd3dba57..c28aa94f82 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -18,9 +18,9 @@ jobs: strategy: fail-fast: false matrix: - php-version: ['8.3', '8.4', '8.5'] + php-version: ['8.5', '8.6'] - uses: simplesamlphp/simplesamlphp-test-framework/.github/workflows/reusable_phplinter.yml@v1 + uses: simplesamlphp/simplesamlphp-test-framework/.github/workflows/reusable_phplinter.yml@release-2.x secrets: inherit with: php-version: ${{ matrix.php-version }} @@ -30,7 +30,7 @@ jobs: strategy: fail-fast: false - uses: simplesamlphp/simplesamlphp-test-framework/.github/workflows/reusable_linter.yml@v1 + uses: simplesamlphp/simplesamlphp-test-framework/.github/workflows/reusable_linter.yml@release-2.x secrets: inherit with: enable_eslinter: true @@ -46,7 +46,7 @@ jobs: fail-fast: false matrix: operating-system: [ubuntu-latest] - php-versions: ['8.3', '8.4', '8.5'] + php-versions: ['8.5', '8.6'] steps: - name: Setup PHP, with composer and extensions @@ -123,7 +123,7 @@ jobs: fail-fast: true matrix: operating-system: [windows-latest] - php-versions: ['8.3', '8.4', '8.5'] + php-versions: ['8.5', '8.6'] steps: - name: Setup PHP, with composer and extensions @@ -261,7 +261,7 @@ jobs: # https://github.com/shivammathur/setup-php uses: shivammathur/setup-php@v2 with: - php-version: '8.3' + php-version: '8.5' extensions: mbstring, soap, xml tools: composer:v2 coverage: none diff --git a/composer.json b/composer.json index 793b0e75cc..c896209294 100644 --- a/composer.json +++ b/composer.json @@ -46,7 +46,7 @@ "files": ["tests/_autoload_modules.php"] }, "require": { - "php": "^8.3", + "php": "^8.5", "ext-date": "*", "ext-dom": "*", "ext-filter": "*", @@ -69,13 +69,13 @@ "psr/event-dispatcher": "~1.0", "psr/log": "~3.0", "robrichards/xmlseclibs": "^3.1.5", - "simplesamlphp/assert": "~2.0", - "simplesamlphp/composer-module-installer": "~1.7", - "simplesamlphp/saml2": "~6.1", + "simplesamlphp/assert": "~3.0", + "simplesamlphp/composer-module-installer": "~2.0", + "simplesamlphp/saml2": "~7.0@dev", "simplesamlphp/saml2-legacy": "~4.20", - "simplesamlphp/simplesamlphp-assets-base": "~2.6.0", - "simplesamlphp/xml-common": "~2.7", - "simplesamlphp/xml-security": "~2.3", + "simplesamlphp/simplesamlphp-assets-base": "~3.0.0", + "simplesamlphp/xml-common": "~3.0", + "simplesamlphp/xml-security": "~3.0", "symfony/cache": "~7.4", "symfony/config": "~7.4", "symfony/console": "~7.4", @@ -107,7 +107,7 @@ "mikey179/vfsstream": "~1.6", "predis/predis": "~3.3", - "simplesamlphp/simplesamlphp-test-framework": "~1.11.6 || dev-master" + "simplesamlphp/simplesamlphp-test-framework": "~2.0" }, "suggest": { "predis/predis": "Needed if a Redis server is used to store session information", diff --git a/docs/simplesamlphp-install.md b/docs/simplesamlphp-install.md index ad332aa496..ab808608d5 100644 --- a/docs/simplesamlphp-install.md +++ b/docs/simplesamlphp-install.md @@ -14,7 +14,7 @@ repository](simplesamlphp-install-repo). ## Prerequisites * A web server capable of executing PHP scripts. -* PHP version >= 8.3.0. +* PHP version >= 8.5.0. * Support for the following PHP extensions: * Always required: `date`, `dom`, `fileinfo`, `filter`, `hash`, `json`, `libxml`, `mbstring`, `openssl`, `pcre`, `session`, `simplexml`, `sodium`, `SPL` and `zlib` diff --git a/docs/simplesamlphp-upgrade-notes-3.0.md b/docs/simplesamlphp-upgrade-notes-3.0.md index b704a307a5..d2340285a3 100644 --- a/docs/simplesamlphp-upgrade-notes-3.0.md +++ b/docs/simplesamlphp-upgrade-notes-3.0.md @@ -5,6 +5,10 @@ global Symfony kernel and a front controller in `public/index.php`. The following changes are relevant for installers, operators, and module developers. +## Software requirements + +- The minimum PHP version required is now PHP 8.5. + ## Web entrypoints and routing SimpleSAMLphp now handles supported web requests through diff --git a/modules/admin/src/Controller/Config.php b/modules/admin/src/Controller/Config.php index 09b26c031b..1ea2145cf4 100644 --- a/modules/admin/src/Controller/Config.php +++ b/modules/admin/src/Controller/Config.php @@ -210,11 +210,11 @@ protected function getPrerequisiteChecks(): array 'descr' => [ Translate::noop('PHP %minimum% or newer is needed. You are running: %current%'), [ - '%minimum%' => '8.3', + '%minimum%' => '8.5', '%current%' => explode('-', phpversion())[0], ], ], - 'enabled' => version_compare(phpversion(), '8.3', '>='), + 'enabled' => version_compare(phpversion(), '8.5', '>='), ], ]; $store = $this->config->getOptionalString('store.type', null); From 7542531be79bbc6bf110eb2d4b72c09a0c38f43e Mon Sep 17 00:00:00 2001 From: Vlad Mencl Date: Fri, 17 Jul 2026 19:25:46 +1200 Subject: [PATCH 16/39] fix: header.twig: fix typo in LI HTML tag (#2654) Use a *closing* `` tag. Avoid rendering an extra empty item on the list. --- templates/_header.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/_header.twig b/templates/_header.twig index 762fbe46f7..97afcfd24c 100644 --- a/templates/_header.twig +++ b/templates/_header.twig @@ -25,7 +25,7 @@