From 91bc24812867352a277af70dd5f439566be7570a Mon Sep 17 00:00:00 2001 From: "Jonas Brand (8R0WNI3)" Date: Fri, 7 Jun 2024 10:29:05 +0200 Subject: [PATCH] Add auth for rescoring route + remove special handling --- middleware/auth.py | 5 ----- rescore.py | 1 - 2 files changed, 6 deletions(-) diff --git a/middleware/auth.py b/middleware/auth.py index 7d4baa33..17544d97 100644 --- a/middleware/auth.py +++ b/middleware/auth.py @@ -393,11 +393,6 @@ def process_resource(self, req: falcon.Request, resp: falcon.Response, resource, auth = getattr(resource, 'auth', self.default_auth) - # check for req method specific auth type - method_function = getattr(resource, f'on_{req.method.lower()}', None) - if method_function: - auth = getattr(method_function, 'auth', auth) - # auto-generated documentation routes, they are missing the "no-auth" decorator if isinstance( resource, diff --git a/rescore.py b/rescore.py index 20355a40..e74f8019 100644 --- a/rescore.py +++ b/rescore.py @@ -592,7 +592,6 @@ def create_backlog_items_for_rescored_artefacts( ) -@middleware.auth.noauth class Rescore: required_features = (features.FeatureDeliveryDB,)