OIDC_REDIRECT
This commit is contained in:
parent
03c4dbae65
commit
c3db60dbf4
|
@ -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 = {
|
||||||
|
|
|
@ -204,7 +204,8 @@ USE_L10N = True
|
||||||
|
|
||||||
AUTH_USER_MODEL = 'idhub_auth.User'
|
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',
|
'ALLOW_CODE_URI',
|
||||||
default=f"https://{DOMAIN}/allow_code"
|
default=f"https://{DOMAIN}/allow_code"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue