Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions dojo/settings/settings.dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@
# `RemoteUser` is usually used behind AuthN proxy and users should not know about this mechanism from Swagger because it is not usable by users.
# It should be hidden by default.
DD_AUTH_REMOTEUSER_VISIBLE_IN_SWAGGER=(bool, False),
# Some security policies require allowing users to have only one active session
DD_SINGLE_USER_SESSION=(bool, False),
# if somebody is using own documentation how to use DefectDojo in his own company
DD_DOCUMENTATION_URL=(str, "https://documentation.defectdojo.com"),
# merging findings doesn't always work well with dedupe and reimport etc.
Expand Down Expand Up @@ -919,6 +921,7 @@ def generate_url(scheme, double_slashes, user, password, host, port, path, param
"auditlog",
"pgtrigger",
"pghistory",
"single_session",
)

# ------------------------------------------------------------------------------
Expand Down Expand Up @@ -1149,6 +1152,13 @@ def saml2_attrib_map_format(din):
("dojo.remote_user.RemoteUserAuthentication",) + \
REST_FRAMEWORK["DEFAULT_AUTHENTICATION_CLASSES"]

# ------------------------------------------------------------------------------
# SINGLE_USER_SESSION
# ------------------------------------------------------------------------------

SESSION_ENGINE = "django.contrib.sessions.backends.db"
SINGLE_USER_SESSION = env("DD_SINGLE_USER_SESSION")

# ------------------------------------------------------------------------------
# CELERY
# ------------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ django-slack==5.19.0
django-watson==1.6.3
django-prometheus==2.4.1
Django==5.1.13
django-single-session==0.2.0
djangorestframework==3.16.1
html2text==2025.4.15
humanize==4.13.0
Expand Down