From 3ba9a7ab88170f49f45f9a7670121209a26ec6e8 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 29 Nov 2023 12:32:58 +0100 Subject: [PATCH] fix not validate --- oidc4vp/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oidc4vp/views.py b/oidc4vp/views.py index 7b1666d..8ad53a4 100644 --- a/oidc4vp/views.py +++ b/oidc4vp/views.py @@ -24,6 +24,8 @@ class AuthorizationView(View): class VerifyView(View): def get(self, request, *args, **kwargs): org = self.validate(request) + if not org: + return Http404("Organization not found!") presentation_definition = json.dumps(settings.SUPPORTED_CREDENTIALS) authorization = Authorization( organization=org,