From 2adbb9abd95e943a1d2eeb038d746ea41981b8b4 Mon Sep 17 00:00:00 2001 From: Valerio Arnaboldi Date: Mon, 20 Nov 2023 10:22:26 -0800 Subject: [PATCH] Refactor API endpoints to HTTPS API endpoints in development configurations were updated from HTTP to HTTPS in order to support more secure data transmission. The refactor affects .env files in curator dashboard, submission form, and author portal; thus improving security for all modules interacting with backend services. --- src/frontend/author_portal/.env.development | 2 +- src/frontend/curator_dashboard/.env | 4 ++-- src/frontend/curator_dashboard/.env.development | 6 +++--- src/frontend/submission_form/.env.development | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/frontend/author_portal/.env.development b/src/frontend/author_portal/.env.development index daff363..7dbd30a 100644 --- a/src/frontend/author_portal/.env.development +++ b/src/frontend/author_portal/.env.development @@ -1,2 +1,2 @@ -REACT_APP_API_DB_READ_ENDPOINT=http://caltech-curation-dev.textpressolab.com:8001/api/read_authdash +REACT_APP_API_DB_READ_ENDPOINT=https://caltech-curation-dev.textpressolab.com:8001/api/read_authdash REACT_APP_REQUEST_AUTH=false \ No newline at end of file diff --git a/src/frontend/curator_dashboard/.env b/src/frontend/curator_dashboard/.env index 0b67d70..72dbd7c 100644 --- a/src/frontend/curator_dashboard/.env +++ b/src/frontend/curator_dashboard/.env @@ -1,5 +1,5 @@ REACT_APP_API_DB_WRITE_ENDPOINT=https://afp.textpressolab.com/api/write REACT_APP_API_DB_READ_ENDPOINT=https://afp.textpressolab.com/api/read -REACT_APP_API_READ_ENDPOINT=http://caltech-curation.textpressolab.com/pub/cgi-bin/forms/textpresso/first_pass_api.cgi?action=jsonPaper -REACT_APP_API_AUTOCOMPLETE_ENDPOINT=http://caltech-curation.textpressolab.com/pub/cgi-bin/forms/datatype_objects.cgi?action=autocompleteXHR +REACT_APP_API_READ_ENDPOINT=https://caltech-curation.textpressolab.com/pub/cgi-bin/forms/textpresso/first_pass_api.cgi?action=jsonPaper +REACT_APP_API_AUTOCOMPLETE_ENDPOINT=https://caltech-curation.textpressolab.com/pub/cgi-bin/forms/datatype_objects.cgi?action=autocompleteXHR REACT_APP_API_DB_READ_ADMIN_ENDPOINT=https://afp.textpressolab.com/api/read_admin \ No newline at end of file diff --git a/src/frontend/curator_dashboard/.env.development b/src/frontend/curator_dashboard/.env.development index 8144561..f07556e 100644 --- a/src/frontend/curator_dashboard/.env.development +++ b/src/frontend/curator_dashboard/.env.development @@ -1,5 +1,5 @@ -REACT_APP_API_DB_WRITE_ENDPOINT=http://caltech-curation-dev.textpressolab.com:8001/api/write -REACT_APP_API_DB_READ_ENDPOINT=http://caltech-curation-dev.textpressolab.com:8001/api/read +REACT_APP_API_DB_WRITE_ENDPOINT=https://caltech-curation-dev.textpressolab.com:8001/api/write +REACT_APP_API_DB_READ_ENDPOINT=https://caltech-curation-dev.textpressolab.com:8001/api/read REACT_APP_API_READ_ENDPOINT=https://caltech-curation-dev.textpressolab.com/pub/cgi-bin/forms/textpresso/first_pass_api.cgi?action=jsonPaper REACT_APP_API_AUTOCOMPLETE_ENDPOINT=https://caltech-curation-dev.textpressolab.com/pub/cgi-bin/forms/datatype_objects.cgi?action=autocompleteXHR -REACT_APP_API_DB_READ_ADMIN_ENDPOINT=http://caltech-curation-dev.textpressolab.com:8001/api/read_admin \ No newline at end of file +REACT_APP_API_DB_READ_ADMIN_ENDPOINT=https://caltech-curation-dev.textpressolab.com:8001/api/read_admin \ No newline at end of file diff --git a/src/frontend/submission_form/.env.development b/src/frontend/submission_form/.env.development index 7755519..3a49d43 100644 --- a/src/frontend/submission_form/.env.development +++ b/src/frontend/submission_form/.env.development @@ -1,5 +1,5 @@ -REACT_APP_API_DB_WRITE_ENDPOINT=http://caltech-curation-dev.textpressolab.com:8001/api/write -REACT_APP_API_DB_READ_ENDPOINT=http://caltech-curation-dev.textpressolab.com:8001/api/read +REACT_APP_API_DB_WRITE_ENDPOINT=https://caltech-curation-dev.textpressolab.com:8001/api/write +REACT_APP_API_DB_READ_ENDPOINT=https://caltech-curation-dev.textpressolab.com:8001/api/read REACT_APP_API_READ_ENDPOINT=https://caltech-curation-dev.textpressolab.com/pub/cgi-bin/forms/textpresso/first_pass_api.cgi?action=jsonPaper REACT_APP_API_AUTOCOMPLETE_ENDPOINT=https://caltech-curation-dev.textpressolab.com/pub/cgi-bin/forms/datatype_objects.cgi?action=autocompleteXHR REACT_APP_VERSION=5.0 (dev) \ No newline at end of file