feat: enhance redirect handling and add scope support in VisioneStartView
This commit is contained in:
@@ -58,6 +58,8 @@ def entity_configuration(request):
|
||||
sub__in=_sub_values,
|
||||
is_active=True,
|
||||
).first()
|
||||
if not conf:
|
||||
conf = FederationEntityConfiguration.objects.filter(is_active=True).first()
|
||||
if not conf: # pragma: no cover
|
||||
raise Http404()
|
||||
|
||||
@@ -188,6 +190,8 @@ def openid_jwks(request, metadata_type:str, resource_type:str):
|
||||
sub__in=_lookup_values,
|
||||
is_active=True,
|
||||
).first()
|
||||
if not conf:
|
||||
conf = FederationEntityConfiguration.objects.filter(is_active=True).first()
|
||||
if not conf: # pragma: no cover
|
||||
raise Http404()
|
||||
content = conf.entity_configuration_as_dict['metadata'].get(
|
||||
|
||||
Reference in New Issue
Block a user