X-Git-Url: https://git.mdrn.pl/cas.git/blobdiff_plain/3a5b7046f78122c77861a2cfce46fa3b5e248f8f..173b54164d936c83eb9a28a26b46bb3b19955b82:/src/cas/settings.py?ds=inline diff --git a/src/cas/settings.py b/src/cas/settings.py index 36e8ba3..7abd90a 100644 --- a/src/cas/settings.py +++ b/src/cas/settings.py @@ -40,9 +40,9 @@ else: } -DEBUG = os.environ.get('DEBUG', str(DEBUG)).lower() == 'True' - +DEBUG = os.environ.get('DEBUG', str(DEBUG)).lower() == 'true' +EMAIL_HOST = os.environ.get('EMAIL_HOST', 'localhost') DEFAULT_FROM_EMAIL = os.environ.get('DEFAULT_FROM_EMAIL', '') EMAIL_SUBJECT_PREFIX = os.environ.get('EMAIL_SUBJECT_PREFIX', '') SECRET_KEY = os.environ.get('SECRET_KEY', '') @@ -172,6 +172,12 @@ CAS_CUSTOM_ATTRIBUTES_CALLBACK = 'cas.utils.custom_attributes_callback' OIDC_USERINFO = 'emails.oidc.userinfo' +# Include user claims in ID token, so clients don't need to call userinfo. +OIDC_IDTOKEN_INCLUDE_CLAIMS = True +# Fixed issuer base URL, e.g. https://cas.example.org +# (the issuer will be ISSUER_URL + '/openid'). +# Without it, the issuer is derived from the request. +ISSUER_URL = os.environ.get('ISSUER_URL') or None PASSWORD_HASHERS = ( 'cas.hashers.FNPBCryptPasswordHasher',