tuutti / oauth2-office365
此包已被废弃且不再维护。没有建议的替代包。
关于此包的最新版本(dev-master)没有提供许可证信息。
The PHP League OAuth2-Client 的 Office 365 OAuth 2.0 客户端提供者
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' => 'https://....', '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);