From 660378c7b35e03a7c0b82394fd7d333f1e9eb23d Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Sun, 17 Jan 2016 14:28:13 +0000 Subject: [PATCH] Added MAC auth scheme to 401 header --- src/Exception/OAuthServerException.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Exception/OAuthServerException.php b/src/Exception/OAuthServerException.php index c7a04b9c..baf16f50 100644 --- a/src/Exception/OAuthServerException.php +++ b/src/Exception/OAuthServerException.php @@ -280,6 +280,8 @@ class OAuthServerException extends \Exception if ($authHeader !== []) { if (strpos($authHeader[0], 'Bearer') === 0) { $authScheme = 'Bearer'; + } elseif (strpos($authHeader[0], 'MAC') === 0) { + $authScheme = 'MAC'; } elseif (strpos($authHeader[0], 'Basic') === 0) { $authScheme = 'Basic'; }