Federated SAML SSO
Federated SAML SSO is a plugin for WordPress
by scuolanormalesuperiore · github.com/scuolanormalesuperiore/federated-saml-sso
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/scuolanormalesuperiore/federated-saml-sso/archive/refs/heads/main.zipFederated SAML SSO is a plugin for WordPress
Tests
Requires PHP 8.1+ and Composer. Setup once: composer install.
Unit tests
Pure PHP, no WordPress, no database.
composer test:unit
Enable the git hooks (they run the unit tests on commit): git config core.hooksPath .githooks
Integration tests
Run inside a real WordPress test environment (wordpress-develop).
One-time setup:
- Clone
wordpress-developtoC:/WordpressDEV/wordpress-develop(or setWP_TESTS_DIRto itstests/phpunitfolder). - Create an empty, dedicated database (e.g.
fsas_wordpress_test) on the MySQL server of a running Local site. Never use the site's own database: the tests drop and recreate thewptests_tables. - Create
wp-tests-config.phpinwordpress-develop/tests/phpunit/withDB_NAME,DB_USER,DB_PASSWORDandDB_HOST=127.0.0.1:<local-mysql-port>.
Run (the Local site must be running):
composer test:integration
Details: tests/unit/README.md, tests/integration/README.md.