aerialship/saml-sp-bundle
Symfony2 bundle providing a SAML 2.0 Service Provider: authenticate against one or more IdPs with SSO (AuthnRequest), Single Logout, federation metadata, discovery service, and HTTP-POST/Redirect bindings. Legacy; newer version exists.
onelogin/php-saml library under the hood. This aligns well with Symfony2-based applications requiring SAML authentication (e.g., enterprise SSO, federated identity).lightSAML/SpBundle). If using Symfony 2.8+, evaluate migration risk.onelogin/php-saml (v2.x), which is stable but outdated (last major update in 2016).| Risk Area | Severity | Mitigation Strategy |
|---|---|---|
| Deprecated Bundle | High | Migrate to lightSAML/SpBundle if possible. |
| Outdated Dependencies | Medium | Test compatibility with newer PHP/Symfony. |
| SAML Complexity | Medium | Use existing IdP metadata; validate with test IdPs (e.g., Okta sandbox). |
| Security Updates | High | Monitor onelogin/php-saml for CVEs. |
| Symfony Version Lock | High | Avoid if using Symfony 3+ or PHP 7+. |
lightSAML/SpBundle?composer require aerialship/saml-sp-bundle
app/config/config.yml with IdP metadata and SP settings.SamlGuard or create a custom firewall for SAML auth.# app/config/security.yml
firewalls:
saml:
pattern: ^/saml
saml: ~
onelogin/php-saml (v2.x). Check for breaking changes if upgrading PHP.aerialship/SamlSPBundle and onelogin/php-saml for patches.onelogin/php-saml has no active development. Consider forking if critical fixes are needed.lightSAML/SpBundle or a modern alternative (e.g., league/oauth2-saml).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| IdP Unavailable | Auth failures | Implement fallback (e.g., form login). |
| Malformed SAML Response | Security risk (e.g., replay attacks) | Validate signatures; use strict mode. |
| Bundle/Dependency Bug | Auth outages | Rollback to known version; fork if critical. |
| Metadata Misconfiguration | Auth loops or 403s | Validate with test IdPs early. |
| PHP/Symfony Version Incompatibility | Crashes | Containerize with pinned versions. |
SamlException).How can I help you explore Laravel packages today?