mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-23 05:29:52 +05:30
Added MAC auth scheme to 401 header
This commit is contained in:
parent
06ee612bb1
commit
660378c7b3
@ -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';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user