Browse Source

va checherche les identifiants osm dans l’environnement

master
vincent 3 months ago
parent
commit
0640d73ed2
2 changed files with 5 additions and 2 deletions
  1. +3
    -0
      .env
  2. +2
    -2
      config/packages/knpu_oauth2_client.yaml

+ 3
- 0
.env View File

@ -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="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" # DATABASE_URL="postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=16&charset=utf8"
###< doctrine/doctrine-bundle ### ###< doctrine/doctrine-bundle ###
OSM_CLIENT_ID=
OSM_CLIENT_SECRET=

+ 2
- 2
config/packages/knpu_oauth2_client.yaml View File

@ -3,6 +3,6 @@ knpu_oauth2_client:
openstreetmap: openstreetmap:
type: generic type: generic
provider_class: '\JBelien\OAuth2\Client\Provider\OpenStreetMap' 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' redirect_route: 'app_osm_callback'

Loading…
Cancel
Save