From 37fb688f77ae0884fa2e42dee3e4838ded914d64 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 13 Dec 2023 18:56:00 +0100 Subject: [PATCH] fix login_required --- ereuse_devicehub/modules/oidc/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ereuse_devicehub/modules/oidc/views.py b/ereuse_devicehub/modules/oidc/views.py index 2a0a14a6..052bc694 100644 --- a/ereuse_devicehub/modules/oidc/views.py +++ b/ereuse_devicehub/modules/oidc/views.py @@ -17,6 +17,7 @@ from flask import ( current_app as app ) from flask_login import login_required +from flask.views import View from ereuse_devicehub import __version__, messages from ereuse_devicehub.db import db @@ -287,7 +288,7 @@ class AllowCodeOidc4vpView(GenericMixin): return url -class AllowCodeOidc4vp2View(GenericMixin): +class AllowCodeOidc4vp2View(View): methods = ['GET', 'POST'] def dispatch_request(self):