tuutti / oauth2-office365
Office 365 OAuth 2.0 Client Provider for The PHP League OAuth2-Client
Installs: 113
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/tuutti/oauth2-office365
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);