From 8e1f15e031f0334998905ac4abcec7916e799b8c Mon Sep 17 00:00:00 2001 From: Egor Lezhnin <878990+pavertomato@users.noreply.github.com> Date: Wed, 17 Jul 2019 18:04:15 +0300 Subject: [PATCH] fix(config): Fix hardcoded default Google Cloud OAuth redirect_uri (#585) (#675) --- public/config/google.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/config/google.js b/public/config/google.js index 690ebee1c..3e1c7d99a 100644 --- a/public/config/google.js +++ b/public/config/google.js @@ -13,7 +13,7 @@ window.config = { // Authorization Server URL authority: 'https://accounts.google.com', client_id: 'YOURCLIENTID.apps.googleusercontent.com', - redirect_uri: 'http://localhost:5000/callback', // `OHIFStandaloneViewer.js` + redirect_uri: `${window.location}callback`, // `OHIFStandaloneViewer.js` response_type: 'id_token token', scope: 'email profile openid https://www.googleapis.com/auth/cloudplatformprojects.readonly https://www.googleapis.com/auth/cloud-healthcare', // email profile openid // ~ OPTIONAL