Make OIDC_IDTOKEN_SUB_GENERATOR to be lazy imported by the location of the function.
This commit is contained in:
parent
497123d37f
commit
ccd9836edb
6 changed files with 51 additions and 18 deletions
|
@ -21,7 +21,7 @@ def create_id_token(user, aud, nonce):
|
|||
|
||||
Return a dic.
|
||||
"""
|
||||
sub = settings.get('OIDC_IDTOKEN_SUB_GENERATOR')(user=user)
|
||||
sub = settings.get('OIDC_IDTOKEN_SUB_GENERATOR', import_str=True)(user=user)
|
||||
|
||||
expires_in = settings.get('OIDC_IDTOKEN_EXPIRE')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue