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':