feat(Ovh/Client): Ajoute un service client OVH pour récupérer les infos d'un NDD.

🐛 fix(CustomerController): Corrige la logique d'enregistrement et mise à jour des NDDs.

 feat(CustomerController): Ajoute la synchronisation des infos de NDD depuis OVH.

 feat(composer): Ajoute la librairie OVH et League OAuth2 client.

✏️ chore(.env): Ajoute les variables d'environnement OVH.

 feat(nnd.twig): Ajoute un bouton de synchronisation OVH pour les NDDs OVH.*
This commit is contained in:
Serreau Jovann
2025-07-23 14:32:12 +02:00
parent e8a9cd57d1
commit 4a35cea456
6 changed files with 183 additions and 2 deletions

118
composer.lock generated
View File

@@ -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": "eeb180229a285394dea5fa7492f8a1ce",
"content-hash": "63990e443aad6c359435a6ba0b7f3054",
"packages": [
{
"name": "aws/aws-crt-php",
@@ -3828,6 +3828,71 @@
],
"time": "2024-09-21T08:32:55+00:00"
},
{
"name": "league/oauth2-client",
"version": "2.8.1",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/oauth2-client.git",
"reference": "9df2924ca644736c835fc60466a3a60390d334f9"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/thephpleague/oauth2-client/zipball/9df2924ca644736c835fc60466a3a60390d334f9",
"reference": "9df2924ca644736c835fc60466a3a60390d334f9",
"shasum": ""
},
"require": {
"ext-json": "*",
"guzzlehttp/guzzle": "^6.5.8 || ^7.4.5",
"php": "^7.1 || >=8.0.0 <8.5.0"
},
"require-dev": {
"mockery/mockery": "^1.3.5",
"php-parallel-lint/php-parallel-lint": "^1.4",
"phpunit/phpunit": "^7 || ^8 || ^9 || ^10 || ^11",
"squizlabs/php_codesniffer": "^3.11"
},
"type": "library",
"autoload": {
"psr-4": {
"League\\OAuth2\\Client\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Alex Bilbie",
"email": "hello@alexbilbie.com",
"homepage": "http://www.alexbilbie.com",
"role": "Developer"
},
{
"name": "Woody Gilk",
"homepage": "https://github.com/shadowhand",
"role": "Contributor"
}
],
"description": "OAuth 2.0 Client Library",
"keywords": [
"Authentication",
"SSO",
"authorization",
"identity",
"idp",
"oauth",
"oauth2",
"single sign on"
],
"support": {
"issues": "https://github.com/thephpleague/oauth2-client/issues",
"source": "https://github.com/thephpleague/oauth2-client/tree/2.8.1"
},
"time": "2025-02-26T04:37:30+00:00"
},
{
"name": "liip/imagine-bundle",
"version": "2.13.3",
@@ -4689,6 +4754,57 @@
],
"time": "2023-04-27T10:17:12+00:00"
},
{
"name": "ovh/ovh",
"version": "v3.5.0",
"source": {
"type": "git",
"url": "https://github.com/ovh/php-ovh.git",
"reference": "917ae0332cb6e2559d3b5045ef9107b32e07cd2d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/ovh/php-ovh/zipball/917ae0332cb6e2559d3b5045ef9107b32e07cd2d",
"reference": "917ae0332cb6e2559d3b5045ef9107b32e07cd2d",
"shasum": ""
},
"require": {
"ext-json": "*",
"guzzlehttp/guzzle": "^6.0||^7.0",
"league/oauth2-client": "^2.7",
"php": ">=7.4"
},
"require-dev": {
"php-parallel-lint/php-parallel-lint": "^1.3.1",
"phpdocumentor/shim": "^3",
"phpunit/phpunit": "^10.5",
"squizlabs/php_codesniffer": "^3.6"
},
"type": "library",
"autoload": {
"psr-4": {
"Ovh\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"description": "Wrapper for OVHcloud APIs",
"keywords": [
"api",
"authorisation",
"authorization",
"client",
"ovh",
"ovhcloud"
],
"support": {
"issues": "https://github.com/ovh/php-ovh/issues",
"source": "https://github.com/ovh/php-ovh/tree/v3.5.0"
},
"time": "2025-01-02T16:09:40+00:00"
},
{
"name": "phpdocumentor/reflection-common",
"version": "2.2.0",