Registry / http-client / sainsburys-guzzle-oauth2-plugin

sainsburys-guzzle-oauth2-plugin

JSON →
library3.0.7phppackagistunverified

An OAuth2 middleware for Guzzle, providing authentication for HTTP requests.

composer require sainsburys/guzzle-oauth2-plugin
INSTALL
IMPORT
SIG · SAINSBURYS-GUZZLE-
S
sainsburys-guzzle-oauth2-plugin
http-clientphpv3.0.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ClientCredentials
use Sainsburys\Guzzle\Oauth2\GrantType\ClientCredentials;

Obtain an OAuth2 access token using client credentials grant.

use Sainsburys\Guzzle\Oauth2\GrantType\ClientCredentials; use Sainsburys\Guzzle\Oauth2\AccessToken; $grant = new ClientCredentials($client, ['client_id' => '...', 'client_secret' => '...']); $token = new AccessToken($grant); $token->getToken();
Debug
Known issues
breakingRequires Guzzle 6.x; not compatible with Guzzle 7+.
fix
Use the official guzzlehttp/oauth2-subscriber package for Guzzle 7+.
affects: >=3.0.0
Upgrade
Version history
3.0.7latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
22
OpenAI (training)
1
Resources
sainsburys-guzzle-oauth2-plugin — pip install sainsburys-guzzle-oauth2-plugin · libregistry