Laravel AT Protocol Client (alpha & unstable)
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update HasHttp to use endpoint parameter instead of nsid

+4 -2
+4 -2
src/Http/HasHttp.php
··· 4 4 5 5 use Illuminate\Http\Client\Factory; 6 6 use Illuminate\Http\Client\Response as LaravelResponse; 7 + use InvalidArgumentException; 8 + use SocialDept\AtpClient\Auth\DPoPKeyManager; 7 9 use SocialDept\AtpClient\Auth\DPoPNonceManager; 8 10 use SocialDept\AtpClient\Exceptions\ValidationException; 9 11 use SocialDept\AtpClient\Session\SessionManager; ··· 38 40 $nonce = $this->nonceManager->getNonce($session->pdsEndpoint()); 39 41 40 42 // Create DPoP proof using DPoPKeyManager 41 - $dpopProof = app(\SocialDept\AtpClient\Auth\DPoPKeyManager::class)->createProof( 43 + $dpopProof = app(DPoPKeyManager::class)->createProof( 42 44 key: $session->dpopKey(), 43 45 method: $method, 44 46 url: $url, ··· 61 63 'GET' => $request->get($url, $params), 62 64 'POST' => $request->post($url, $body ?? $params), 63 65 'DELETE' => $request->delete($url, $params), 64 - default => throw new \InvalidArgumentException("Unsupported method: {$method}"), 66 + default => throw new InvalidArgumentException("Unsupported method: {$method}"), 65 67 }; 66 68 67 69 // Store nonce from response if present