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 return response
def get_redirect_url(self): def get_redirect_url(self):
if not settings.ALLOW_CODE_URI: if not settings.OIDC_REDIRECT:
return return
data = { data = {

View File

@ -204,6 +204,7 @@ USE_L10N = True
AUTH_USER_MODEL = 'idhub_auth.User' AUTH_USER_MODEL = 'idhub_auth.User'
OIDC_REDIRECT = config('OIDC_REDIRECT', default=False, cast=bool)
ALLOW_CODE_URI = config( ALLOW_CODE_URI = config(
'ALLOW_CODE_URI', 'ALLOW_CODE_URI',
default=f"https://{DOMAIN}/allow_code" default=f"https://{DOMAIN}/allow_code"