From 0aa22bf83b7f006994472e2179a6c23525b12b04 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Wed, 20 Aug 2025 12:20:57 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- api/controllers/console/auth/oauth_server.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/controllers/console/auth/oauth_server.py b/api/controllers/console/auth/oauth_server.py index ab895994a0..2facc07437 100644 --- a/api/controllers/console/auth/oauth_server.py +++ b/api/controllers/console/auth/oauth_server.py @@ -50,15 +50,15 @@ def oauth_server_access_token_required(view): authorization_header = request.headers.get("Authorization") if not authorization_header: raise BadRequest("Authorization header is required") - + parts = authorization_header.split(" ") if len(parts) != 2: raise BadRequest("Invalid Authorization header format") - + token_type = parts[0] if token_type != "Bearer": raise BadRequest("token_type is invalid") - + access_token = parts[1] if not access_token: raise BadRequest("access_token is required")