Skip to content

Commit

Permalink
refactor: adapt login to new server situation (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
jnussbaum authored Aug 30, 2024
1 parent 4aec059 commit 13396d3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions dsp_permissions_scripts/models/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ class Hosts:

LOCALHOST = "http://0.0.0.0:3333"
PROD = "https://api.dasch.swiss"
RDU_STAGE = "https://api.rdu-stage.dasch.swiss"
DEV = "https://api.dev.dasch.swiss"
LS_PROD = "https://api.ls-prod.admin.ch"
STAGE = "https://api.stage.dasch.swiss"

@staticmethod
def get_host(identifier: str) -> str:
Expand Down
3 changes: 0 additions & 3 deletions dsp_permissions_scripts/utils/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ def _get_login_credentials(host: str) -> tuple[str, str]:
if host == Hosts.LOCALHOST:
user = "[email protected]"
pw = "test"
elif host == Hosts.RDU_STAGE:
user = os.getenv("RDU_STAGE_EMAIL") or ""
pw = os.getenv("RDU_STAGE_PASSWORD") or ""
elif re.search(r"api.rdu-\d\d.dasch.swiss", host):
user = os.getenv("RDU_TEST_EMAIL") or ""
pw = os.getenv("RDU_TEST_PASSWORD") or ""
Expand Down

0 comments on commit 13396d3

Please sign in to comment.