mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-23 13:39:48 +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 ($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';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user