From 6e36d64abdecd044bb2efa5fcba544357191e5db Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Fri, 24 Aug 2018 14:09:52 +0200 Subject: [PATCH] Add hwi_oauth settings in .env.dist see #2645 --- .env.dist | 7 +++++++ config/packages/hwi_oauth.yaml | 14 +++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.env.dist b/.env.dist index a8d04ede57..3bc26de036 100644 --- a/.env.dist +++ b/.env.dist @@ -39,4 +39,11 @@ APP_MULTIPLE_ACCESS_URL='' ###> hwi/oauth-bundle ### FB_ID= FB_SECRET= + +GITHUB_ID= +GITHUB_SECRET= + +GOOGLE_ID= +GOOGLE_SECRET= + ###< hwi/oauth-bundle ### diff --git a/config/packages/hwi_oauth.yaml b/config/packages/hwi_oauth.yaml index e76476e35d..d7bfdaf65f 100644 --- a/config/packages/hwi_oauth.yaml +++ b/config/packages/hwi_oauth.yaml @@ -6,17 +6,17 @@ hwi_oauth: resource_owners: github: type: github - client_id: '' - client_secret: '' + client_id: '%env(GITHUB_ID)%' + client_secret: '%env(GITHUB_SECRET)%' facebook: type: facebook - client_id: '' - client_secret: '' + client_id: '%env(FB_ID)%' + client_secret: '%env(FB_SECRET)%' google: type: google - client_id: '' - client_secret: '' - scope: 'email profile' + client_id: '%env(GOOGLE_ID)%' + client_secret: '%env(GOOGLE_SECRET)%' + scope: "email profile" my_custom_oauth2: type: oauth2 client_id: ''