Skip to content

Commit

Permalink
allow disabling SAML for tst deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
bbonf committed Jun 13, 2024
1 parent 96d34a4 commit 52a26bc
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lab/ppn_backend/settings_prod.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,12 @@
FRONTEND_URI = "https://" + getenv('LAB_SERVER')
PARENT_URI = "https://" + getenv('PARENT_SERVER')

try:
from .saml_settings import enable_saml
enable_saml(globals())
except ImportError:
print("Proceeding without SAML")
if not getenv('NO_SAML'):
try:
from .saml_settings import enable_saml
enable_saml(globals())
except ImportError:
print("Proceeding without SAML")


# Email
Expand Down

0 comments on commit 52a26bc

Please sign in to comment.