flipboxfactory / saml-core
SAML SSO Core
Requires
- craftcms/cms: ^5.0
- flipboxfactory/keychain: ^5.0.0
- simplesamlphp/saml2: ~4.19.4
Requires (Dev)
- codeception/codeception: ^5.2
- codeception/module-asserts: ^3.0
- codeception/module-yii2: ^1.1.9
- craftcms/ecs: dev-main
- craftcms/phpstan: dev-main
- phpstan/phpstan: ^2.1
- vlucas/phpdotenv: ^5.4
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-master
- 5.0.12
- 5.0.11
- 5.0.10
- 5.0.9
- 5.0.8
- 5.0.7
- 5.0.6
- 5.0.5
- 5.0.4
- 5.0.3
- 5.0.2
- 5.0.1
- 5.0.0
- v4.x-dev
- 4.2.6
- 4.2.5
- 4.2.4
- 4.2.3
- 4.2.2
- 4.2.1
- 4.2.0
- 4.1.0
- 4.0.7
- 4.0.6
- 4.0.5
- 4.0.4.1
- 4.0.4
- 4.0.3
- 4.0.2
- 4.0.1
- 4.0.0
- 3.4.1
- 3.4.0
- 3.3.0
- 3.2.8
- 3.2.7
- 3.2.6
- 3.2.5
- 3.2.4
- 3.2.3
- 3.2.2
- 3.2.1
- 3.2.0
- 3.2.0-BETA.2
- 3.2.0-BETA.1
- 3.2.0-BETA
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.1
- 3.0.0
- 3.0.0-beta
- 2.1.7
- 2.1.6
- 2.1.5
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.1.1
- 2.1.1
- 2.1.0
- 2.0.26
- 2.0.25
- 2.0.24
- 2.0.23
- 2.0.22
- 2.0.21
- 2.0.20
- 2.0.19
- 2.0.18
- 2.0.17
- 2.0.16
- 2.0.15
- 2.0.14
- 2.0.12
- 2.0.11
- 2.0.10
- 2.0.9
- 2.0.8
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3.8
- 2.0.3.7
- 2.0.3.6
- 2.0.3.5
- 2.0.3.4
- 2.0.3.3
- 2.0.3.2
- 2.0.3.1
- 2.0.3
- 2.0.2.10
- 2.0.2.9
- 2.0.2.8
- 2.0.2.7
- 2.0.2.6
- 2.0.2.5
- 2.0.2.4
- 2.0.2.3
- 2.0.2.2
- 2.0.2.1
- 2.0.2
- 2.0.1
- 2.0.0
- 1.0.2
- 1.0.1
- 1.0.0
- 1.0.0-RC1
- 1.0.0-beta.12
- 1.0.0-beta.11
- 1.0.0-beta.10
- 1.0.0-beta.9
- 1.0.0-beta.8
- 1.0.0-beta.7
- 1.0.0-beta.6
- 1.0.0-beta.5
- 1.0.0-beta.4
- 1.0.0-beta.3
- dev-fix/cp-native-styles
- dev-security/4.2.6
- dev-fix/saml2-security
- dev-feat-4.2.1
- dev-craft/4.0
- dev-psr/logger
- dev-entity-explicity
- dev-saml2-v4
- dev-craft-3.2
- dev-release/1.0.0
- dev-feature/2.0
- dev-develop
- dev-feature/cp-enhancements
- dev-feature/provider-environments
This package is auto-updated.
Last update: 2026-11-07 19:41:27 UTC
README
Shared SAML 2.0 library for Craft CMS.
SAML Core holds the code shared by the SAML SP and SAML IdP Craft plugins: provider records and metadata, HTTP-POST/Redirect bindings, logout, and signing and encryption keys (via KeyChain). It is built on simplesamlphp/saml2.
It is not a plugin. You normally don't install it directly; it comes in as a dependency of SAML SP or SAML IdP.
Requirements
- Craft CMS 5 (saml-core 5.x)
- PHP 8.2+
Installation
Install SAML SP or SAML IdP. To require it directly:
composer require flipboxfactory/saml-core
Development
Checks follow Craft's coding guidelines: craftcms/ecs and craftcms/phpstan. Tests use Codeception with Craft's test module and need a MySQL database:
docker run -d --rm --name saml-core-test-mysql -e MYSQL_ROOT_PASSWORD=password \ -e MYSQL_DATABASE=saml_core_test -p 127.0.0.1:3306:3306 mysql:8.0 cp tests/.env.example tests/.env # adjust CRAFT_DB_* if needed composer check # check-cs + phpstan + test composer fix-cs # auto-fix coding standards
CI runs the same checks on every push and pull request.
Contributing
See CONTRIBUTING.
Credits
License
MIT. See LICENSE.