2017 © Pedro Peláez
 

library oauth2-office365

Office 365 OAuth 2.0 Client Provider for The PHP League OAuth2-Client

image

tuutti/oauth2-office365

Office 365 OAuth 2.0 Client Provider for The PHP League OAuth2-Client

  • Tuesday, August 25, 2015
  • by tuutti
  • Repository
  • 1 Watchers
  • 1 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Usage

$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);

The Versions

25/08 2015

dev-master

9999999-dev

Office 365 OAuth 2.0 Client Provider for The PHP League OAuth2-Client

  Sources   Download

The Requires