From c5845c48df8b495ae887e11fe5a5e5fb9a48d42a Mon Sep 17 00:00:00 2001 From: Jean Cavallo Date: Tue, 14 Nov 2023 14:30:19 +0100 Subject: [PATCH] trytond: Reparse authorization header in token / bearer mode [CUSTOM] Fix PCLAS-401 --- trytond/trytond/protocols/wrappers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/trytond/protocols/wrappers.py b/trytond/trytond/protocols/wrappers.py index 7a3d2c2acab..070ba15c7be 100644 --- a/trytond/trytond/protocols/wrappers.py +++ b/trytond/trytond/protocols/wrappers.py @@ -91,7 +91,7 @@ def rpc_params(self): @cached_property def authorization(self): authorization = super(Request, self).authorization - if authorization is None: + if authorization is None or authorization.type in ('token', 'bearer'): header = self.headers.get('Authorization') return parse_authorization_header(header) elif authorization.type == 'session':