OIDC_REDIRECT

This commit is contained in:
Cayo Puigdefabregas 2024-03-04 10:30:42 +01:00
parent 03c4dbae65
commit c3db60dbf4
2 changed files with 3 additions and 2 deletions

View File

@ -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 = {

View File

@ -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"
)