tuutti / oauth2-office365
This package is abandoned and no longer maintained.
No replacement package was suggested.
There is no license information available for the latest version (dev-master) of this package.
Office 365 OAuth 2.0 Client Provider for The PHP League OAuth2-Client
dev-master
2015-08-25 10:33 UTC
Requires
- league/oauth2-client: ~1.0
This package is auto-updated.
Last update: 2022-01-04 21:44:06 UTC
README
$provider = new \Tuutti\OAuth2\Client\Provider\Office365Provider([ 'clientId' => 'some value', 'redirectUri' => 'http://localhost....', 'tenantId' => 'your tenant id', 'thumbPrint' => ' your thumb print', 'privateKey' => 'file://path_to_privatekey.pem', 'resource' => 'your resource, usually https://outlook.office365.com/', ]); $token = $provider->getAccessToken('client_credentials'); ....
$request = $provider->getAuthenticatedRequest($method, $url, $token, $options); $response = $provider->getResponse($request);