From 53c4e8022d4299d284faf6a16779edd31ae5e846 Mon Sep 17 00:00:00 2001 From: bkop-ds <84399410+bkop-ds@users.noreply.github.com> Date: Mon, 16 Sep 2024 10:23:41 -0400 Subject: [PATCH] dev fix for eRA login --- confluence.js | 2 +- src/shared.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/confluence.js b/confluence.js index 160ddfb..dc53620 100644 --- a/confluence.js +++ b/confluence.js @@ -380,7 +380,7 @@ export const confluence = async () => { localStorage.setItem('lastURL', '#data_access/form'); if(location.origin.match("localhost")) { location.href = `https://stsstg.nih.gov/auth/oauth/v2/authorize?response_type=code&client_id=ff775e46-ec74-46a3-b19f-ee2c60e8cf11&redirect_uri=https://episphere.github.io/dataplatform/&scope=openid+company+email+profile` - } else if (location.origin.match(applicationURLs.dev)) { + } else if (location.origin.match(applicationURLs.epi)) { location.href = `https://stsstg.nih.gov/auth/oauth/v2/authorize?response_type=code&client_id=ff775e46-ec74-46a3-b19f-ee2c60e8cf11&redirect_uri=https://episphere.github.io/dataplatform/&scope=openid+company+email+profile` } else if (location.origin.match(applicationURLs.stage)) { diff --git a/src/shared.js b/src/shared.js index 01e378a..f255685 100644 --- a/src/shared.js +++ b/src/shared.js @@ -2325,6 +2325,7 @@ export function selectProps(...props){ // Need to change to BCRPP urls export const applicationURLs = { + epi: "https://episphere.github.io", dev: "https://episphere.github.io/dataplatform", stage: "https://epidataplatforms-stage.cancer.gov", prod: "34.98.117.145",