diff --git a/.circleci/config.yml b/.circleci/config.yml index 4cd1ec9..1b1e3a1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -20,7 +20,7 @@ jobs: lint: working_directory: ~/pantheon-systems/wp-saml-auth docker: - - image: quay.io/pantheon-public/build-tools-ci:6.x + - image: quay.io/pantheon-public/build-tools-ci:7.x-php7.4 steps: - checkout - restore_cache: @@ -39,7 +39,7 @@ jobs: working_directory: ~/pantheon-systems/wp-saml-auth parallelism: 1 docker: - - image: quay.io/pantheon-public/build-tools-ci:6.x + - image: quay.io/pantheon-public/build-tools-ci:7.x-php7.4 steps: - checkout - restore_cache: diff --git a/README.md b/README.md index 6969f64..e88b4c2 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,8 @@ **Tags:** authentication, SAML **Requires at least:** 4.4 **Tested up to:** 5.8 -**Stable tag:** 1.2.7 +**Requires PHP:** 7.3 +**Stable tag:** 2.0.0 **License:** GPLv2 or later **License URI:** http://www.gnu.org/licenses/gpl-2.0.html @@ -275,8 +276,16 @@ Note: the declaration does need to be at the top of `_include.php`, to ensure Wo There is no third step. Because SimpleSAMLphp loads WordPress, which has WP Native PHP Sessions active, SimpleSAMLphp and WP SAML Auth will be able to communicate to one another on a multi web node environment. +## Upgrade Notice ## + +### 2.0.0 ### +Minimum supported PHP version is 7.3. + ## Changelog ## +### 2.0.0 (January 6, 2022) ### +* **BREAKING**: Updates `onelogin/php-saml` to `v4.0.0`, which requires PHP 7.3 or higher [[#275](https://github.com/pantheon-systems/wp-saml-auth/pull/275)]. + ### 1.2.7 (December 9, 2021) ### * Adds a `wp_saml_auth_pre_logout` action that fires before logout [[#274](https://github.com/pantheon-systems/wp-saml-auth/pull/274)]. diff --git a/composer.json b/composer.json index b9dbf8e..b5332b8 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,8 @@ "minimum-stability": "dev", "prefer-stable": true, "require": { - "onelogin/php-saml": "^3.6" + "onelogin/php-saml": "^4.0", + "php": "^7.3 || ^8.0" }, "require-dev": { "pantheon-systems/pantheon-wordpress-upstream-tests": "dev-master", diff --git a/composer.lock b/composer.lock index 05d77d4..95986c0 100644 --- a/composer.lock +++ b/composer.lock @@ -4,38 +4,39 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "ae9773c8cb26c9eff8c83b77a4751e56", + "content-hash": "bde2a8661d7aa1a7f0e0680520124bae", "packages": [ { "name": "onelogin/php-saml", - "version": "3.6.1", + "version": "4.0.0", "source": { "type": "git", "url": "https://github.com/onelogin/php-saml.git", - "reference": "a7328b11887660ad248ea10952dd67a5aa73ba3b" + "reference": "f30f5062f3653c4d2082892d207f4dc3e577d979" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/onelogin/php-saml/zipball/a7328b11887660ad248ea10952dd67a5aa73ba3b", - "reference": "a7328b11887660ad248ea10952dd67a5aa73ba3b", + "url": "https://api.github.com/repos/onelogin/php-saml/zipball/f30f5062f3653c4d2082892d207f4dc3e577d979", + "reference": "f30f5062f3653c4d2082892d207f4dc3e577d979", "shasum": "" }, "require": { - "php": ">=5.4", + "php": ">=7.3", "robrichards/xmlseclibs": ">=3.1.1" }, "require-dev": { - "pdepend/pdepend": "^2.5.0", - "php-coveralls/php-coveralls": "^1.0.2 || ^2.0", - "phploc/phploc": "^2.1 || ^3.0 || ^4.0", - "phpunit/phpunit": "<7.5.18", - "sebastian/phpcpd": "^2.0 || ^3.0 || ^4.0", - "squizlabs/php_codesniffer": "^3.1.1" + "pdepend/pdepend": "^2.8.0", + "php-coveralls/php-coveralls": "^2.0", + "phploc/phploc": "^4.0 || ^5.0 || ^6.0 || ^7.0", + "phpunit/phpunit": "^9.5", + "sebastian/phpcpd": "^4.0 || ^5.0 || ^6.0 ", + "squizlabs/php_codesniffer": "^3.5.8" }, "suggest": { "ext-curl": "Install curl lib to be able to use the IdPMetadataParser for parsing remote XMLs", - "ext-gettext": "Install gettext and php5-gettext libs to handle translations", - "ext-openssl": "Install openssl lib in order to handle with x509 certs (require to support sign and encryption)" + "ext-dom": "Install xml lib", + "ext-openssl": "Install openssl lib in order to handle with x509 certs (require to support sign and encryption)", + "ext-zlib": "Install zlib" }, "type": "library", "autoload": { @@ -59,7 +60,7 @@ "issues": "https://github.com/onelogin/php-saml/issues", "source": "https://github.com/onelogin/php-saml/" }, - "time": "2021-03-02T10:13:07+00:00" + "time": "2021-03-02T10:19:19+00:00" }, { "name": "robrichards/xmlseclibs", @@ -4781,7 +4782,9 @@ }, "prefer-stable": true, "prefer-lowest": false, - "platform": [], + "platform": { + "php": "^7.4 || ^8.0" + }, "platform-dev": [], "plugin-api-version": "2.1.0" } diff --git a/readme.txt b/readme.txt index 1ee4904..38038b6 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,8 @@ Contributors: getpantheon, danielbachhuber, Outlandish Josh Tags: authentication, SAML Requires at least: 4.4 Tested up to: 5.8 -Stable tag: 1.2.7 +Requires PHP: 7.3 +Stable tag: 2.0.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -275,8 +276,16 @@ Note: the declaration does need to be at the top of `_include.php`, to ensure Wo There is no third step. Because SimpleSAMLphp loads WordPress, which has WP Native PHP Sessions active, SimpleSAMLphp and WP SAML Auth will be able to communicate to one another on a multi web node environment. +== Upgrade Notice == + += 2.0.0 = +Minimum supported PHP version is 7.3. + == Changelog == += 2.0.0 (January 6, 2022) = +* **BREAKING**: Updates `onelogin/php-saml` to `v4.0.0`, which requires PHP 7.3 or higher [[#275](https://github.com/pantheon-systems/wp-saml-auth/pull/275)]. + = 1.2.7 (December 9, 2021) = * Adds a `wp_saml_auth_pre_logout` action that fires before logout [[#274](https://github.com/pantheon-systems/wp-saml-auth/pull/274)]. diff --git a/wp-saml-auth.php b/wp-saml-auth.php index da7bcfe..005a7c4 100644 --- a/wp-saml-auth.php +++ b/wp-saml-auth.php @@ -1,7 +1,7 @@