From 32ef1401f00d738891eabd593dcf73e025ca0a7f Mon Sep 17 00:00:00 2001 From: Tom Needham <tom@owncloud.com> Date: Mon, 2 Jul 2018 14:55:27 +0100 Subject: [PATCH] Debug log message when no bearer header found in request --- lib/AuthModule.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/AuthModule.php b/lib/AuthModule.php index 8180dd4c..a0a38e0d 100644 --- a/lib/AuthModule.php +++ b/lib/AuthModule.php @@ -43,6 +43,7 @@ public function auth(IRequest $request) { $authHeader = $request->getHeader('Authorization'); if (strpos($authHeader, 'Bearer ') === false) { + \OC::$server->getLogger()->debug('No Authorization: Bearer header detected', ['app' => 'oauth2']); return null; }