Commit 041ca828 authored by Anthony Gautreau's avatar Anthony Gautreau
Browse files

Client de l'API Pegase (jeton CAS REST, pagination, appels parallèles,...

Client de l'API Pegase (jeton CAS REST, pagination, appels parallèles, nouvelles tentatives avec Retry-After), symfony/http-client et symfony/clock en require
parent a8dc13d5
Loading
Loading
Loading
Loading
+2 −1
Changes for api/composer.json: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -14,11 +14,13 @@
        "nelmio/cors-bundle": "^2.2",
        "phpstan/phpdoc-parser": "^1.16",
        "symfony/asset": "7.4.*",
        "symfony/clock": "7.4.*",
        "symfony/console": "7.4.*",
        "symfony/dotenv": "7.4.*",
        "symfony/expression-language": "7.4.*",
        "symfony/flex": "^2.2",
        "symfony/framework-bundle": "7.4.*",
        "symfony/http-client": "7.4.*",
        "symfony/monolog-bundle": "^3.8",
        "symfony/property-access": "7.4.*",
        "symfony/property-info": "7.4.*",
@@ -36,7 +38,6 @@
        "symfony/browser-kit": "7.4.*",
        "symfony/css-selector": "7.4.*",
        "symfony/debug-bundle": "7.4.*",
        "symfony/http-client": "7.4.*",
        "symfony/maker-bundle": "^1.44",
        "symfony/stopwatch": "7.4.*",
        "symfony/var-dumper": "7.4.*",
+185 −185
Changes for api/composer.lock: 185 added lines, 185 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": "23368ffb081e3f2d265926ad8a3573fe",
    "content-hash": "ff70e8aaac0adf812b90de773ba716ff",
    "packages": [
        {
            "name": "api-platform/doctrine-common",
@@ -4522,6 +4522,189 @@
            ],
            "time": "2026-09-28T19:09:50+00:00"
        },
        {
            "name": "symfony/http-client",
            "version": "v7.4.20",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/http-client.git",
                "reference": "750a420b8dd0af3d6e1c6c1412802abf2cdd2b6c"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/http-client/zipball/750a420b8dd0af3d6e1c6c1412802abf2cdd2b6c",
                "reference": "750a420b8dd0af3d6e1c6c1412802abf2cdd2b6c",
                "shasum": ""
            },
            "require": {
                "php": ">=8.2",
                "psr/log": "^1|^2|^3",
                "symfony/deprecation-contracts": "^2.5|^3",
                "symfony/http-client-contracts": "~3.4.4|^3.5.2",
                "symfony/polyfill-php83": "^1.29",
                "symfony/service-contracts": "^2.5|^3"
            },
            "conflict": {
                "amphp/amp": "<2.5",
                "amphp/socket": "<1.1",
                "php-http/discovery": "<1.15",
                "symfony/http-foundation": "<6.4"
            },
            "provide": {
                "php-http/async-client-implementation": "*",
                "php-http/client-implementation": "*",
                "psr/http-client-implementation": "1.0",
                "symfony/http-client-implementation": "3.0"
            },
            "require-dev": {
                "amphp/http-client": "^4.2.1|^5.0",
                "amphp/http-tunnel": "^1.0|^2.0",
                "guzzlehttp/promises": "^1.4|^2.0",
                "nyholm/psr7": "^1.0",
                "php-http/httplug": "^1.0|^2.0",
                "psr/http-client": "^1.0",
                "symfony/amphp-http-client-meta": "^1.0|^2.0",
                "symfony/cache": "^6.4|^7.0|^8.0",
                "symfony/dependency-injection": "^6.4|^7.0|^8.0",
                "symfony/http-kernel": "^6.4|^7.0|^8.0",
                "symfony/messenger": "^6.4|^7.0|^8.0",
                "symfony/process": "^6.4|^7.0|^8.0",
                "symfony/rate-limiter": "^6.4|^7.0|^8.0",
                "symfony/stopwatch": "^6.4|^7.0|^8.0"
            },
            "type": "library",
            "autoload": {
                "psr-4": {
                    "Symfony\\Component\\HttpClient\\": ""
                },
                "exclude-from-classmap": [
                    "/Tests/"
                ]
            },
            "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": "Provides powerful methods to fetch HTTP resources synchronously or asynchronously",
            "homepage": "https://symfony.com",
            "keywords": [
                "http"
            ],
            "support": {
                "source": "https://github.com/symfony/http-client/tree/v7.4.20"
            },
            "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": "2026-09-24T11:02:13+00:00"
        },
        {
            "name": "symfony/http-client-contracts",
            "version": "v3.7.3",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/http-client-contracts.git",
                "reference": "35be0019e2c2c9fba80f9dc033290a5240f7b44f"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/http-client-contracts/zipball/35be0019e2c2c9fba80f9dc033290a5240f7b44f",
                "reference": "35be0019e2c2c9fba80f9dc033290a5240f7b44f",
                "shasum": ""
            },
            "require": {
                "php": ">=8.1"
            },
            "type": "library",
            "extra": {
                "thanks": {
                    "url": "https://github.com/symfony/contracts",
                    "name": "symfony/contracts"
                },
                "branch-alias": {
                    "dev-main": "3.7-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Symfony\\Contracts\\HttpClient\\": ""
                },
                "exclude-from-classmap": [
                    "/Test/"
                ]
            },
            "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": "Generic abstractions related to HTTP clients",
            "homepage": "https://symfony.com",
            "keywords": [
                "abstractions",
                "contracts",
                "decoupling",
                "interfaces",
                "interoperability",
                "standards"
            ],
            "support": {
                "source": "https://github.com/symfony/http-client-contracts/tree/v3.7.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": "2026-08-04T08:41:16+00:00"
        },
        {
            "name": "symfony/http-foundation",
            "version": "v7.4.20",
@@ -10531,189 +10714,6 @@
            ],
            "time": "2026-08-21T17:40:08+00:00"
        },
        {
            "name": "symfony/http-client",
            "version": "v7.4.20",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/http-client.git",
                "reference": "750a420b8dd0af3d6e1c6c1412802abf2cdd2b6c"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/http-client/zipball/750a420b8dd0af3d6e1c6c1412802abf2cdd2b6c",
                "reference": "750a420b8dd0af3d6e1c6c1412802abf2cdd2b6c",
                "shasum": ""
            },
            "require": {
                "php": ">=8.2",
                "psr/log": "^1|^2|^3",
                "symfony/deprecation-contracts": "^2.5|^3",
                "symfony/http-client-contracts": "~3.4.4|^3.5.2",
                "symfony/polyfill-php83": "^1.29",
                "symfony/service-contracts": "^2.5|^3"
            },
            "conflict": {
                "amphp/amp": "<2.5",
                "amphp/socket": "<1.1",
                "php-http/discovery": "<1.15",
                "symfony/http-foundation": "<6.4"
            },
            "provide": {
                "php-http/async-client-implementation": "*",
                "php-http/client-implementation": "*",
                "psr/http-client-implementation": "1.0",
                "symfony/http-client-implementation": "3.0"
            },
            "require-dev": {
                "amphp/http-client": "^4.2.1|^5.0",
                "amphp/http-tunnel": "^1.0|^2.0",
                "guzzlehttp/promises": "^1.4|^2.0",
                "nyholm/psr7": "^1.0",
                "php-http/httplug": "^1.0|^2.0",
                "psr/http-client": "^1.0",
                "symfony/amphp-http-client-meta": "^1.0|^2.0",
                "symfony/cache": "^6.4|^7.0|^8.0",
                "symfony/dependency-injection": "^6.4|^7.0|^8.0",
                "symfony/http-kernel": "^6.4|^7.0|^8.0",
                "symfony/messenger": "^6.4|^7.0|^8.0",
                "symfony/process": "^6.4|^7.0|^8.0",
                "symfony/rate-limiter": "^6.4|^7.0|^8.0",
                "symfony/stopwatch": "^6.4|^7.0|^8.0"
            },
            "type": "library",
            "autoload": {
                "psr-4": {
                    "Symfony\\Component\\HttpClient\\": ""
                },
                "exclude-from-classmap": [
                    "/Tests/"
                ]
            },
            "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": "Provides powerful methods to fetch HTTP resources synchronously or asynchronously",
            "homepage": "https://symfony.com",
            "keywords": [
                "http"
            ],
            "support": {
                "source": "https://github.com/symfony/http-client/tree/v7.4.20"
            },
            "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": "2026-09-24T11:02:13+00:00"
        },
        {
            "name": "symfony/http-client-contracts",
            "version": "v3.7.3",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/http-client-contracts.git",
                "reference": "35be0019e2c2c9fba80f9dc033290a5240f7b44f"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/http-client-contracts/zipball/35be0019e2c2c9fba80f9dc033290a5240f7b44f",
                "reference": "35be0019e2c2c9fba80f9dc033290a5240f7b44f",
                "shasum": ""
            },
            "require": {
                "php": ">=8.1"
            },
            "type": "library",
            "extra": {
                "thanks": {
                    "url": "https://github.com/symfony/contracts",
                    "name": "symfony/contracts"
                },
                "branch-alias": {
                    "dev-main": "3.7-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Symfony\\Contracts\\HttpClient\\": ""
                },
                "exclude-from-classmap": [
                    "/Test/"
                ]
            },
            "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": "Generic abstractions related to HTTP clients",
            "homepage": "https://symfony.com",
            "keywords": [
                "abstractions",
                "contracts",
                "decoupling",
                "interfaces",
                "interoperability",
                "standards"
            ],
            "support": {
                "source": "https://github.com/symfony/http-client-contracts/tree/v3.7.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": "2026-08-04T08:41:16+00:00"
        },
        {
            "name": "symfony/maker-bundle",
            "version": "1.68.0",
@@ -11102,5 +11102,5 @@
        "ext-iconv": "*"
    },
    "platform-dev": {},
    "plugin-api-version": "2.6.0"
    "plugin-api-version": "2.9.0"
}
+5
Changes for api/config/services.yaml: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -7,6 +7,11 @@ parameters:
    # Valeurs par défaut pour les installations dont le .env ne définit pas encore ces variables
    env(APOGEE_ENABLED): 'true'
    env(PEGASE_ENABLED): 'false'
    env(PEGASE_API_ODF_URL): ''
    env(PEGASE_API_REF_URL): ''
    env(PEGASE_API_TOKEN_URL): ''
    env(PEGASE_API_USER): ''
    env(PEGASE_API_PASSWORD): ''

services:
    # default configuration for services in *this* file
+344

File added.

Preview size limit exceeded, changes collapsed.

+10
Changes for api/src/Pegase/PegaseException.php: 10 added lines, 0 removed lines.
Original line number Diff line number Diff line
<?php

namespace App\Pegase;

/**
 * Échec d'un accès à l'API Pegase (configuration, authentification, statut HTTP, réponse illisible).
 */
final class PegaseException extends \RuntimeException
{
}
Loading