Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
Fix environment variable usage
Browse files Browse the repository at this point in the history
  • Loading branch information
msathieu committed Mar 13, 2024
1 parent 991da99 commit 1ed07ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/controllers/auth/authentication_controller.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import string
from typing import TYPE_CHECKING

Expand All @@ -13,7 +14,7 @@
if TYPE_CHECKING:
from _elementtree import Element

cas_service = "https://localhost:8080/login"
cas_service = os.getenv("CAS_URL", "https://localhost:8080/login")


def authenticate_user(session: Session, ticket: str) -> UserDataclass | None:
Expand Down
1 change: 1 addition & 0 deletions backend/controllers/auth/token_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

from domain.models.UserDataclass import UserDataclass

# Zeker aanpassen in production
jwt_secret = os.getenv("JWT_SECRET", "secret")


Expand Down

0 comments on commit 1ed07ad

Please sign in to comment.