Use canonical organization e-mail in OIDC data.
[cas.git] / src / cas / settings.py
index 4101776..ab10159 100644 (file)
@@ -37,6 +37,8 @@ SITE_ID = 1
 # to load the internationalization machinery.
 USE_I18N = True
 
+USE_TZ = True
+
 # Absolute path to the directory that holds media.
 # Example: "/home/media/media.lawrence.com/"
 MEDIA_ROOT = path.join(PROJECT_ROOT, '../../media/')
@@ -90,6 +92,7 @@ INSTALLED_APPS = (
 
     'cas_provider',
     'django_gravatar',
+    'oidc_provider',
 
     'django.contrib.auth',
     'django.contrib.contenttypes',
@@ -122,6 +125,10 @@ GRAVATAR_URL_PREFIX = 'https://www.gravatar.com/'
 
 SITE_TITLE = 'Fundacja Nowoczesna Polska'
 
+
+OIDC_USERINFO = 'emails.oidc.userinfo'
+
+
 # Import localsettings file, which may override settings defined here
 try:
     from .localsettings import *