Skip to content

Commit

Permalink
Added new Django configuration setting for expiration of authenticati…
Browse files Browse the repository at this point in the history
…on tokens. (#33)
  • Loading branch information
alfredeen authored Mar 20, 2024
1 parent 3cfa986 commit 82e830d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scaleout/stackn/templates/studio-settings-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -227,13 +227,16 @@ data:
}
# Session settings for managing automatic login expiration.
# The age of session cookies, in seconds. Set to 1 day = 86400 seconds:
# The age of session cookies, in seconds. Default set to 1 day = 86400 seconds:
SESSION_COOKIE_AGE = {{ .Values.studio.session_cookie_age | default 86400 }}
# Whether to save the session data on every request. For sliding expiration:
SESSION_SAVE_EVERY_REQUEST = True
# Whether to expire the session when the user closes their browser:
SESSION_EXPIRE_AT_BROWSER_CLOSE = False
# The expiration duration in seconds for authentication tokens. Default set to 1 day:
AUTH_TOKEN_EXPIRATION = {{ .Values.studio.auth_token_expiration | default 86400 }}
# Settings for the Django Axes brute force login protection
# Number of allowed login failures before action is taken
AXES_FAILURE_LIMIT = {{ .Values.studio.axes_failure_limit | default 10 }}
Expand Down

0 comments on commit 82e830d

Please sign in to comment.