Skip to content

Commit

Permalink
Added Secure Session Cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
nemozak1 committed Nov 9, 2023
1 parent 57e161b commit ad33b54
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apimanager/apimanager/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,13 @@
# Always save session$
SESSION_SAVE_EVERY_REQUEST = True

# Session Cookie Settings
SESSION_COOKIE_SECURE = True
SESSION_COOKIE_HTTPONLY = True
SESSION_COOKIE_AGE = 300
SESSION_ENGINE = "django.contrib.sessions.backends.signed_cookies"


# Paths on API_HOST to OAuth
OAUTH_TOKEN_PATH = '/oauth/initiate'
OAUTH_AUTHORIZATION_PATH = '/oauth/authorize'
Expand Down

0 comments on commit ad33b54

Please sign in to comment.