Added MAC auth scheme to 401 header

This commit is contained in:
Alex Bilbie 2016-01-17 14:28:13 +00:00
parent 06ee612bb1
commit 660378c7b3

View File

@ -280,6 +280,8 @@ class OAuthServerException extends \Exception
if ($authHeader !== []) { if ($authHeader !== []) {
if (strpos($authHeader[0], 'Bearer') === 0) { if (strpos($authHeader[0], 'Bearer') === 0) {
$authScheme = 'Bearer'; $authScheme = 'Bearer';
} elseif (strpos($authHeader[0], 'MAC') === 0) {
$authScheme = 'MAC';
} elseif (strpos($authHeader[0], 'Basic') === 0) { } elseif (strpos($authHeader[0], 'Basic') === 0) {
$authScheme = 'Basic'; $authScheme = 'Basic';
} }