provider/oidc(minor): include claims in id_token
This commit is contained in:
parent
80ea7c40b7
commit
08f0aca894
|
@ -5,3 +5,4 @@ INSTALLED_APPS = [
|
|||
]
|
||||
|
||||
OIDC_AFTER_USERLOGIN_HOOK = "passbook.providers.oidc.lib.check_permissions"
|
||||
OIDC_IDTOKEN_INCLUDE_CLAIMS = True
|
||||
|
|
|
@ -302,16 +302,7 @@ LOG_PRE_CHAIN = [
|
|||
structlog.processors.TimeStamper(),
|
||||
]
|
||||
|
||||
with CONFIG.cd('log'):
|
||||
LOGGING_HANDLER_MAP = {
|
||||
'passbook': 'DEBUG',
|
||||
'django': 'WARNING',
|
||||
'celery': 'WARNING',
|
||||
'grpc': 'DEBUG',
|
||||
'oauthlib': 'DEBUG',
|
||||
'oauth2_provider': 'DEBUG',
|
||||
}
|
||||
LOGGING = {
|
||||
LOGGING = {
|
||||
'version': 1,
|
||||
'disable_existing_loggers': False,
|
||||
'formatters': {
|
||||
|
@ -335,8 +326,17 @@ with CONFIG.cd('log'):
|
|||
},
|
||||
'loggers': {
|
||||
}
|
||||
}
|
||||
for handler_name, level in LOGGING_HANDLER_MAP.items():
|
||||
}
|
||||
_LOGGING_HANDLER_MAP = {
|
||||
'passbook': 'DEBUG',
|
||||
'django': 'WARNING',
|
||||
'celery': 'WARNING',
|
||||
'grpc': 'DEBUG',
|
||||
'oauthlib': 'DEBUG',
|
||||
'oauth2_provider': 'DEBUG',
|
||||
'oidc_provider': 'DEBUG',
|
||||
}
|
||||
for handler_name, level in _LOGGING_HANDLER_MAP.items():
|
||||
LOGGING['loggers'][handler_name] = {
|
||||
'handlers': ['console'],
|
||||
'level': level,
|
||||
|
|
Reference in New Issue