trait InteractsWithOAuthEndpoints

Properties

protected int $maxOAuthResponseSize

Methods

oAuthRequest()

Prepare a buffered OAuth request without following redirects.

resolveOAuthDestination(PendingRequest $request, string $url)

Validate and pin an OAuth endpoint within the prepared request's limits.

bool
isLocalhost(string $host)

Determine whether the normalized host names a local development endpoint.

string
normalizedHost(string $host)

Normalize the host consistently with destination validation.

Details

at line 26
protected PendingRequest oAuthRequest()

Prepare a buffered OAuth request without following redirects.

Return Value

PendingRequest

at line 51
protected ResolvedDestination resolveOAuthDestination(PendingRequest $request, string $url)

Validate and pin an OAuth endpoint within the prepared request's limits.

Parameters

PendingRequest $request
string $url

Return Value

ResolvedDestination

at line 63
protected bool isLocalhost(string $host)

Determine whether the normalized host names a local development endpoint.

Parameters

string $host

Return Value

bool

at line 71
protected string normalizedHost(string $host)

Normalize the host consistently with destination validation.

Parameters

string $host

Return Value

string