diff --git a/oidc4vp/models.py b/oidc4vp/models.py index d3a454f..916e1d6 100644 --- a/oidc4vp/models.py +++ b/oidc4vp/models.py @@ -285,7 +285,7 @@ class OAuth2VPToken(models.Model): return response def get_redirect_url(self): - if not settings.ALLOW_CODE_URI: + if not settings.OIDC_REDIRECT: return data = { diff --git a/trustchain_idhub/settings.py b/trustchain_idhub/settings.py index a37b737..b782bdf 100644 --- a/trustchain_idhub/settings.py +++ b/trustchain_idhub/settings.py @@ -204,7 +204,8 @@ USE_L10N = True AUTH_USER_MODEL = 'idhub_auth.User' -ALLOW_CODE_URI= config( +OIDC_REDIRECT = config('OIDC_REDIRECT', default=False, cast=bool) +ALLOW_CODE_URI = config( 'ALLOW_CODE_URI', default=f"https://{DOMAIN}/allow_code" )