fix(config): Fix hardcoded default Google Cloud OAuth redirect_uri (#585) (#675)

This commit is contained in:
Egor Lezhnin 2019-07-17 18:04:15 +03:00 committed by Erik Ziegler
parent 0d5d804741
commit 8e1f15e031

View File

@ -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