diff --git a/src/Filters/HmacAuth.php b/src/Filters/HmacAuth.php index 14e38ad0c..fd2123c04 100644 --- a/src/Filters/HmacAuth.php +++ b/src/Filters/HmacAuth.php @@ -33,7 +33,7 @@ public function before(RequestInterface $request, $arguments = null) $authenticator = auth('hmac')->getAuthenticator(); $requestParams = [ - 'token' => $request->getHeaderLine(setting('Auth.authenticatorHeader')['hmac'] ?? 'Authorization'), + 'token' => $request->getHeaderLine(setting('AuthToken.authenticatorHeader')['hmac'] ?? 'Authorization'), 'body' => $request->getBody() ?? '', ]; diff --git a/src/Filters/TokenAuth.php b/src/Filters/TokenAuth.php index 149874fd3..473d5cc8d 100644 --- a/src/Filters/TokenAuth.php +++ b/src/Filters/TokenAuth.php @@ -52,7 +52,7 @@ public function before(RequestInterface $request, $arguments = null) $authenticator = auth('tokens')->getAuthenticator(); $result = $authenticator->attempt([ - 'token' => $request->getHeaderLine(setting('Auth.authenticatorHeader')['tokens'] ?? 'Authorization'), + 'token' => $request->getHeaderLine(setting('AuthToken.authenticatorHeader')['tokens'] ?? 'Authorization'), ]); if (! $result->isOK() || (! empty($arguments) && $result->extraInfo()->tokenCant($arguments[0]))) {