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'