From 0640d73ed22ec24fcbdbf2cb64b74add51b07a08 Mon Sep 17 00:00:00 2001 From: vincent Date: Mon, 29 Jul 2024 13:27:38 +0200 Subject: [PATCH] =?UTF-8?q?va=20checherche=20les=20identifiants=20osm=20da?= =?UTF-8?q?ns=20l=E2=80=99environnement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 3 +++ config/packages/knpu_oauth2_client.yaml | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.env b/.env index afeb049..9e81e18 100644 --- a/.env +++ b/.env @@ -28,3 +28,6 @@ DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db" # DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4" # DATABASE_URL="postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=16&charset=utf8" ###< doctrine/doctrine-bundle ### + +OSM_CLIENT_ID= +OSM_CLIENT_SECRET= diff --git a/config/packages/knpu_oauth2_client.yaml b/config/packages/knpu_oauth2_client.yaml index e3b2c61..4df585e 100644 --- a/config/packages/knpu_oauth2_client.yaml +++ b/config/packages/knpu_oauth2_client.yaml @@ -3,6 +3,6 @@ knpu_oauth2_client: openstreetmap: type: generic provider_class: '\JBelien\OAuth2\Client\Provider\OpenStreetMap' - client_id: 'KHvZSlcrLVpMSNuI-unXf0J8jfd-dzG4tq0KwYeLYng' - client_secret: '9he90L9ANzM7faW88olmYOF59Dd-rnduKEdG5518QNI' + client_id: '%env(OSM_CLIENT_ID)%' + client_secret: '%env(OSM_CLIENT_SECRET)%' redirect_route: 'app_osm_callback'