Skip to content

Commit

Permalink
dev fix for eRA login
Browse files Browse the repository at this point in the history
  • Loading branch information
bkop-ds committed Sep 16, 2024
1 parent 8199bd8 commit 53c4e80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion confluence.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
1 change: 1 addition & 0 deletions src/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 53c4e80

Please sign in to comment.