Skip to content

Commit

Permalink
INFRA-2595: Add CAS_CAS_FORCE_SSL_SERVICE_URL setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny Chan committed Oct 23, 2023
1 parent b3227b5 commit 2e4fb9f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ctlsettings/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ def common(**kwargs):
CAS_ADMIN_REDIRECT = False
CAS_MAP_AFFILIATIONS = True

# Force the service url to always target HTTPS.
# https://djangocas.dev/docs/latest/configuration.html#cas-force-ssl-service-url-optional
CAS_FORCE_SSL_SERVICE_URL = True

# Translate CUIT's CAS user attributes to the Django user model.
# https://cuit.columbia.edu/content/cas-3-ticket-validation-response
CAS_APPLY_ATTRIBUTES_TO_USER = True
Expand Down

0 comments on commit 2e4fb9f

Please sign in to comment.