πAuthentication
Authorization "Bearer" Tokens
<?php
use Saloon\Http\Auth\TokenAuthenticator;
class ForgeConnector extends Connector
{
public function __construct(public readonly string $token) {}
protected function defaultAuth(): TokenAuthenticator
{
return new TokenAuthenticator($this->token);
}
}Basic Auth (Base64 Encoded)
Query Parameter
Certificate Auth
Header Auth
Multiple Authenticators
Custom Authentication
The authenticate method
Last updated