- Install knpuniversity/oauth2-client-bundle and stevenmaguire/oauth2-keycloak - Register KnpUOAuth2ClientBundle in bundles.php - Configure Keycloak OIDC client (realm e-cosplay, auth.esy-web.dev) - Add keycloakId field to User entity with migration - Create KeycloakAuthenticator with group-to-role mapping (/superadmin -> ROLE_ROOT) - Create OAuthController with SSO routes (/connection/sso/login, logout, check) - Add custom_authenticator to security firewall with form_login entry point - Add auth.esy-web.dev to nelmio external_redirects whitelist and CSP form-action - Add SSO button and error flash messages to login page - Make navbar active state dynamic based on current route (desktop + mobile) - Add Keycloak env vars to .env, .env.local, and ansible/env.local.j2 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
21 lines
1.2 KiB
PHP
21 lines
1.2 KiB
PHP
<?php
|
|
|
|
return [
|
|
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
|
|
Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true],
|
|
Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true],
|
|
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true],
|
|
Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
|
|
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
|
|
Twig\Extra\TwigExtraBundle\TwigExtraBundle::class => ['all' => true],
|
|
Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true],
|
|
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
|
|
Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true],
|
|
Endroid\QrCodeBundle\EndroidQrCodeBundle::class => ['all' => true],
|
|
Liip\ImagineBundle\LiipImagineBundle::class => ['all' => true],
|
|
Vich\UploaderBundle\VichUploaderBundle::class => ['all' => true],
|
|
League\FlysystemBundle\FlysystemBundle::class => ['all' => true],
|
|
Nelmio\SecurityBundle\NelmioSecurityBundle::class => ['all' => true],
|
|
KnpU\OAuth2ClientBundle\KnpUOAuth2ClientBundle::class => ['all' => true],
|
|
];
|