PHP code example of loicboursin / oauth2-microsoft-graph
1. Go to this page and download the library: Download loicboursin/oauth2-microsoft-graph library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
loicboursin / oauth2-microsoft-graph example snippets
use LoicBoursin\OAuth2\Client\Provider\Microsoft;
class MyCustomMicrosoftProvider extends Microsoft
{
protected string $urlAuthorize = 'https://login.microsoftonline.com/{TenantId}/oauth2/v2.0/authorize';
protected string $urlAccessToken = 'https://login.microsoftonline.com/{TenantId}/oauth2/v2.0/token';
}