diff --git a/src/Security/AuthTokenAuthenticator.php b/src/Security/AuthTokenAuthenticator.php index 9694090..de171e7 100644 --- a/src/Security/AuthTokenAuthenticator.php +++ b/src/Security/AuthTokenAuthenticator.php @@ -49,12 +49,12 @@ public function authenticate(Request $request): Passport $matches = []; if (!preg_match('/^Bearer (.+)$/', $authorizationHeader, $matches)) { // The Authorization header was improperly formatted, authentication fails - $this->mcpLogger->debug("Invalid authorization header format. Expecting: 'Bearer ', but got '$authorizationHeader'"); + $this->mcpLogger->debug("Invalid authorization header format. Expecting: 'Bearer '."); throw new CustomUserMessageAuthenticationException('Invalid authorization header format. Expecting: Bearer '); } $token = $matches[1]; $this->mcpLogger->debug("Authorization header format Ok."); - $this->mcpLogger->debug("Bearer token = '$token'."); + $this->mcpLogger->debug("Bearer token received."); return new SelfValidatingPassport(new UserBadge($token), []); }