final class OAuthConfig

Properties

null|Request): void $requestModifier

The request modifier.

Methods

__construct(string $clientId, string $clientSecret, string $redirectUri = '', string $authorizeEndpoint = 'authorize', string $tokenEndpoint = 'token', string|null $refreshEndpoint = null, string $userEndpoint = 'user', array $defaultScopes = [], callable|null $requestModifier = null, bool $allowBaseUrlOverride = false)

Create an OAuth 2 configuration.

modify(Request $request)

Apply the configured request modifier.

void
validate(bool $withRedirectUri = true)

Validate the OAuth 2 configuration.

Details

at line 27
__construct(string $clientId, string $clientSecret, string $redirectUri = '', string $authorizeEndpoint = 'authorize', string $tokenEndpoint = 'token', string|null $refreshEndpoint = null, string $userEndpoint = 'user', array $defaultScopes = [], callable|null $requestModifier = null, bool $allowBaseUrlOverride = false)

Create an OAuth 2 configuration.

Parameters

string $clientId
string $clientSecret
string $redirectUri
string $authorizeEndpoint
string $tokenEndpoint
string|null $refreshEndpoint
string $userEndpoint
array $defaultScopes
callable|null $requestModifier
bool $allowBaseUrlOverride

at line 50
Request modify(Request $request)

Apply the configured request modifier.

Parameters

Request $request

Return Value

Request

at line 60
void validate(bool $withRedirectUri = true)

Validate the OAuth 2 configuration.

Parameters

bool $withRedirectUri

Return Value

void