Last active
August 27, 2018 20:19
-
-
Save danizen/ec280ea856fa057137a82bbb9e8584d0 to your computer and use it in GitHub Desktop.
Django template for authentication
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
urlpatterns = [ | |
url(r'^accounts/', include('nlm.occs.casauth.urls')), | |
# ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AUTHENTICATION_BACKENDS = ( | |
'nlm.occs.casauth.backends.CASBackend', | |
) | |
CAS_SERVER_URL = 'https://login-prod.nlm.nih.gov/cas/' | |
CAS_CREATE_USER = False | |
CAS_STORE_NEXT = True | |
CAS_IGNORE_REFERRER = True | |
CAS_FORCE_CHANGE_USERNAME_CASE = 'lower' | |
ADMIN_GROUP = 'admin' | |
# Custom user model matching existing serials user table | |
# AUTH_USER_MODEL = '<appname>.<ModelName>' | |
CSRF_COOKIE_HTTPONLY = True | |
CSRF_COOKIE_SECURE = True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment