Commit b756d86b authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Modularisation gestion utilisateurs

parent cbdb81c5
Loading
Loading
Loading
Loading
Loading
+1
Changes for code/test3.php: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -5,3 +5,4 @@
 * @var $container  \Psr\Container\ContainerInterface
 * @var $io         \Symfony\Component\Console\Style\SymfonyStyle
 */
dump($_SESSION);
 No newline at end of file
+2 −1
Changes for composer.json: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -12,7 +12,8 @@
        "php"                              : ">=8.2",
        "laminas/laminas-cli"              : "1.11.0",
        "laminas/laminas-cache-storage-adapter-filesystem": "2.5.0",
        "symfony/process"                  : "7.2.0",
        "symfony/process"                  : "7.3.3",
        "symfony/http-foundation"          : "7.3.3",
        "doctrine/doctrine-orm-module"     : "^6.3",
        "doctrine/dbal"                    : "^3.9",

+174 −7
Changes for composer.lock: 174 added lines, 7 removed lines.
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
        "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
        "This file is @generated automatically"
    ],
    "content-hash": "3fc4c72489f34d4faa02089e56ea0bf2",
    "content-hash": "6a57f2ca1288383412d174b2af3821fe",
    "packages": [
        {
            "name": "beberlei/assert",
@@ -6328,6 +6328,89 @@
            ],
            "time": "2025-07-07T08:17:47+00:00"
        },
        {
            "name": "symfony/http-foundation",
            "version": "v7.3.3",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/http-foundation.git",
                "reference": "7475561ec27020196c49bb7c4f178d33d7d3dc00"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/http-foundation/zipball/7475561ec27020196c49bb7c4f178d33d7d3dc00",
                "reference": "7475561ec27020196c49bb7c4f178d33d7d3dc00",
                "shasum": ""
            },
            "require": {
                "php": ">=8.2",
                "symfony/deprecation-contracts": "^2.5|^3.0",
                "symfony/polyfill-mbstring": "~1.1",
                "symfony/polyfill-php83": "^1.27"
            },
            "conflict": {
                "doctrine/dbal": "<3.6",
                "symfony/cache": "<6.4.12|>=7.0,<7.1.5"
            },
            "require-dev": {
                "doctrine/dbal": "^3.6|^4",
                "predis/predis": "^1.1|^2.0",
                "symfony/cache": "^6.4.12|^7.1.5",
                "symfony/clock": "^6.4|^7.0",
                "symfony/dependency-injection": "^6.4|^7.0",
                "symfony/expression-language": "^6.4|^7.0",
                "symfony/http-kernel": "^6.4|^7.0",
                "symfony/mime": "^6.4|^7.0",
                "symfony/rate-limiter": "^6.4|^7.0"
            },
            "type": "library",
            "autoload": {
                "psr-4": {
                    "Symfony\\Component\\HttpFoundation\\": ""
                },
                "exclude-from-classmap": [
                    "/Tests/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Fabien Potencier",
                    "email": "fabien@symfony.com"
                },
                {
                    "name": "Symfony Community",
                    "homepage": "https://symfony.com/contributors"
                }
            ],
            "description": "Defines an object-oriented layer for the HTTP specification",
            "homepage": "https://symfony.com",
            "support": {
                "source": "https://github.com/symfony/http-foundation/tree/v7.3.3"
            },
            "funding": [
                {
                    "url": "https://symfony.com/sponsor",
                    "type": "custom"
                },
                {
                    "url": "https://github.com/fabpot",
                    "type": "github"
                },
                {
                    "url": "https://github.com/nicolas-grekas",
                    "type": "github"
                },
                {
                    "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
                    "type": "tidelift"
                }
            ],
            "time": "2025-08-20T08:04:18+00:00"
        },
        {
            "name": "symfony/mailer",
            "version": "v7.3.3",
@@ -7071,6 +7154,86 @@
            ],
            "time": "2025-01-02T08:10:11+00:00"
        },
        {
            "name": "symfony/polyfill-php83",
            "version": "v1.33.0",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/polyfill-php83.git",
                "reference": "17f6f9a6b1735c0f163024d959f700cfbc5155e5"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/polyfill-php83/zipball/17f6f9a6b1735c0f163024d959f700cfbc5155e5",
                "reference": "17f6f9a6b1735c0f163024d959f700cfbc5155e5",
                "shasum": ""
            },
            "require": {
                "php": ">=7.2"
            },
            "type": "library",
            "extra": {
                "thanks": {
                    "url": "https://github.com/symfony/polyfill",
                    "name": "symfony/polyfill"
                }
            },
            "autoload": {
                "files": [
                    "bootstrap.php"
                ],
                "psr-4": {
                    "Symfony\\Polyfill\\Php83\\": ""
                },
                "classmap": [
                    "Resources/stubs"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Nicolas Grekas",
                    "email": "p@tchwork.com"
                },
                {
                    "name": "Symfony Community",
                    "homepage": "https://symfony.com/contributors"
                }
            ],
            "description": "Symfony polyfill backporting some PHP 8.3+ features to lower PHP versions",
            "homepage": "https://symfony.com",
            "keywords": [
                "compatibility",
                "polyfill",
                "portable",
                "shim"
            ],
            "support": {
                "source": "https://github.com/symfony/polyfill-php83/tree/v1.33.0"
            },
            "funding": [
                {
                    "url": "https://symfony.com/sponsor",
                    "type": "custom"
                },
                {
                    "url": "https://github.com/fabpot",
                    "type": "github"
                },
                {
                    "url": "https://github.com/nicolas-grekas",
                    "type": "github"
                },
                {
                    "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
                    "type": "tidelift"
                }
            ],
            "time": "2025-07-08T02:45:35+00:00"
        },
        {
            "name": "symfony/polyfill-php84",
            "version": "v1.33.0",
@@ -7153,16 +7316,16 @@
        },
        {
            "name": "symfony/process",
            "version": "v7.2.0",
            "version": "v7.3.3",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/process.git",
                "reference": "d34b22ba9390ec19d2dd966c40aa9e8462f27a7e"
                "reference": "32241012d521e2e8a9d713adb0812bb773b907f1"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/process/zipball/d34b22ba9390ec19d2dd966c40aa9e8462f27a7e",
                "reference": "d34b22ba9390ec19d2dd966c40aa9e8462f27a7e",
                "url": "https://api.github.com/repos/symfony/process/zipball/32241012d521e2e8a9d713adb0812bb773b907f1",
                "reference": "32241012d521e2e8a9d713adb0812bb773b907f1",
                "shasum": ""
            },
            "require": {
@@ -7194,7 +7357,7 @@
            "description": "Executes commands in sub-processes",
            "homepage": "https://symfony.com",
            "support": {
                "source": "https://github.com/symfony/process/tree/v7.2.0"
                "source": "https://github.com/symfony/process/tree/v7.3.3"
            },
            "funding": [
                {
@@ -7205,12 +7368,16 @@
                    "url": "https://github.com/fabpot",
                    "type": "github"
                },
                {
                    "url": "https://github.com/nicolas-grekas",
                    "type": "github"
                },
                {
                    "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
                    "type": "tidelift"
                }
            ],
            "time": "2024-11-06T14:24:19+00:00"
            "time": "2025-08-18T09:42:54+00:00"
        },
        {
            "name": "symfony/service-contracts",
+2 −2
Changes for config/autoload/unicaen-authentification.global.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ $config = Application::getInstance()->config();

$settings = [
    /**
     * Flag indiquant si l'utilisateur authenitifié avec succès via l'annuaire LDAP doit
     * Flag indiquant si l'utilisateur authentifié avec succès via l'annuaire LDAP doit
     * être enregistré/mis à jour dans la table des utilisateurs de l'appli.
     */
    'save_ldap_user_in_database' => true,
@@ -29,7 +29,7 @@ $settings = [
     * - 'role_entity_class'      : 'UnicaenAuth\Entity\Db\Role'
     * - 'privilege_entity_class' : 'UnicaenAuth\Entity\Db\Privilege'
     */
    'role_entity_class'            => 'Application\Entity\Db\Role',
    'role_entity_class'            => \Utilisateur\Entity\Db\Role::class,

    /**
     * Gestion des autorisations d'usurpation
+1 −1
Changes for config/autoload/unicaen-code.global.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ $settings = [
        ],
        [
            'template'    => 'AwareTrait',
            'targetClass' => [\Application\Connecteur\LdapConnecteur::class, \Formule\Entity\Db\FormuleTestIntervenant::class],
            'targetClass' => [\Utilisateur\Connecteur\LdapConnecteur::class, \Formule\Entity\Db\FormuleTestIntervenant::class],
            'generator'   => function (array $params): array {
                return [];
            },
Loading