adactive-sas/saml2-bridge-bundle
Symfony bundle adding basic SAML2 IdP capabilities via simplesamlphp/saml2: metadata, SSO and SLO with HTTP-POST/Redirect bindings, signed requests/responses, and IdP/SP-initiated logout. Configure routes, keys, and repositories via YAML.
Pros:
symfony/http-foundation compatibility).Cons:
symfony/console, symfony/dependency-injection).symfony/http-kernel can proxy requests).SensioFrameworkExtraBundle).simplesamlphp/saml2 (PHP 7.1+ compatible; may need polyfills for PHP 8.x).symfony/framework-bundle (v3.x; may conflict with Laravel’s Symfony components).laravel/symfony-bridge) for DI/routing.simplesamlphp/saml2 need forks/patches?Auth vs. Symfony’s SecurityComponent).onelogin/php-saml or shibboleth/sp).laravel/symfony-bridge to share components (e.g., DI, HTTP).SamlAuthMiddleware).Saml2BridgeServiceProvider).onelogin/php-saml (more active, Laravel-friendly).symfony-saml).// app/Providers/SamlServiceProvider.php
public function register() {
$this->app->register(SymfonyBridge::class);
$this->app->boot(Saml2BridgeBundle::class);
}
UserProvider to Laravel’s Auth system (e.g., via Auth::loginUsingId()).sessions table or a dedicated saml_sessions table.nikic/php-parser).symfony/framework-bundle and adactive-sas/saml2-bridge-bundle.config.yml for IdP/SP entities (e.g., adactive_saml2_bridge config)./saml/ to Symfony or handle assertions.Auth to validate SAML responses.config.yml for SAML settings).simplesamlphp/saml2.monolog, twig).onelogin/php-saml community or Symfony SAML forums.monolog (integrate with Laravel’s Log facade).saml2_bridge.log (custom log handler needed).database driver scales.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Symfony bundle crashes | SAML flows break | Fallback to onelogin/php-saml or API gateway. |
| PHP 8.x incompatibility | Runtime errors | Fork/patch simplesamlphp/saml2. |
| SAML metadata misconfiguration | Authentication failures | Automated validation (e.g., saml2-validate). |
| Database session store fails | User logout issues | Fallback to file-based sessions. |
| Third-party SP misbehavior | Malformed requests/responses | Input validation middleware. |
Auth system.How can I help you explore Laravel packages today?