AuthenticatesRequests
trait AuthenticatesRequests
Properties
| protected Authenticator|null | $authenticator | The authenticator used in requests. |
Methods
Authenticator|null
defaultAuth()
Resolve the default authenticator.
Authenticator|null
authenticator()
Get the authenticator.
withToken(string $token, string $type = 'Bearer')
Authenticate the request with a token.
withBasicAuth(string $username, string $password)
Authenticate the request with basic authentication.
withDigestAuth(string $username, string $password)
Authenticate the request with digest authentication.
Details
at line 23
protected Authenticator|null
defaultAuth()
Resolve the default authenticator.
at line 31
Authenticator|null
authenticator()
Get the authenticator.
at line 41
AuthenticatesRequests
authenticate(Authenticator $authenticator)
Authenticate the request with an authenticator.
at line 53
AuthenticatesRequests
withToken(string $token, string $type = 'Bearer')
Authenticate the request with a token.
at line 63
AuthenticatesRequests
withBasicAuth(string $username, string $password)
Authenticate the request with basic authentication.
at line 73
AuthenticatesRequests
withDigestAuth(string $username, string $password)
Authenticate the request with digest authentication.