Skip to content

Commit

Permalink
Add YIVI_TOKEN production setting
Browse files Browse the repository at this point in the history
  • Loading branch information
KiOui committed Apr 28, 2024
1 parent a9a323a commit 81a8440
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion website/tosti/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,4 +282,4 @@
AGE_VERIFICATION_INSTITUTE_VALUE = "ru.nl"

YIVI_SERVER_URL = os.environ.get("YIVI_SERVER_URL")
YIVI_SERVER_TOKEN = os.environ.get("YIVI_SERVER_TOKEN")
YIVI_SERVER_TOKEN = os.environ.get("YIVI_SERVER_TOKEN")
4 changes: 0 additions & 4 deletions website/tosti/settings/development.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,3 @@
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
}
}

# Yivi settings
YIVI_SERVER = "https://yivi.tosti.science.ru.nl"
YIVI_TOKEN = "test-token-tosti"
4 changes: 2 additions & 2 deletions website/tosti/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@
("Olympus", "en"),
],
"url": [
(os.environ.get('SAML_BASE_URL'), "nl"),
(os.environ.get('SAML_BASE_URL'), "en"),
(os.environ.get("SAML_BASE_URL"), "nl"),
(os.environ.get("SAML_BASE_URL"), "en"),
],
},
}
2 changes: 1 addition & 1 deletion website/yivi/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

def get_yivi_client() -> Yivi:
"""Get a Yivi Client."""
return Yivi(settings.YIVI_SERVER, token=settings.YIVI_TOKEN)
return Yivi(settings.YIVI_SERVER_URL, token=settings.YIVI_SERVER_TOKEN)

0 comments on commit 81a8440

Please sign in to comment.