Skip to content

Commit

Permalink
Refactor API endpoints to HTTPS
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
valearna committed Nov 20, 2023
1 parent 131aca7 commit 2adbb9a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/frontend/author_portal/.env.development
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions src/frontend/curator_dashboard/.env
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions src/frontend/curator_dashboard/.env.development
Original file line number Diff line number Diff line change
@@ -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
REACT_APP_API_DB_READ_ADMIN_ENDPOINT=https://caltech-curation-dev.textpressolab.com:8001/api/read_admin
4 changes: 2 additions & 2 deletions src/frontend/submission_form/.env.development
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 2adbb9a

Please sign in to comment.