Skip to content

Commit 906240c

Browse files
committed
Use keypair auth for Stitch endpoints if a container is provided
1 parent 0a9214e commit 906240c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Client.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,9 @@ protected function needsKeypairAuthentication(\Psr\Http\Message\RequestInterface
439439
$path = $request->getUri()->getPath();
440440
$isCallEndpoint = strpos($path, '/v1/calls') === 0;
441441
$isRecordingUrl = strpos($path, '/v1/files') === 0;
442+
$isStitchEndpoint = strpos($path, '/beta/conversation') === 0;
443+
$isUserEndpoint = strpos($path, '/beta/users') === 0;
442444

443-
return $isCallEndpoint || $isRecordingUrl;
445+
return $isCallEndpoint || $isRecordingUrl || $isStitchEndpoint || $isUserEndpoint;
444446
}
445447
}

0 commit comments

Comments
 (0)