OIDC_REDIRECT
This commit is contained in:
parent
03c4dbae65
commit
c3db60dbf4
|
@ -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 = {
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue