stevenmaguire / oauth2-microsoft

Microsoft OAuth 2.0 support for the PHP League's OAuth 2.0 Client
MIT License
68 stars 41 forks source link

IdentityProviderException when trying to send mails #13

Open laurelBE opened 6 years ago

laurelBE commented 6 years ago

PHP Fatal error: Uncaught League\OAuth2\Client\Provider\Exception\IdentityProviderException: Bad Request in C:\inetpub\wwwroot\bephpforTteam\New\PHPMailer-master\PHPMailer-master\vendor\stevenmaguire\oauth2-microsoft\src\Provider\Microsoft.php:79 Stack trace:

0 C:\inetpub\wwwroot\bephpforTteam\New\PHPMailer-master\PHPMailer-master\vendor\league\oauth2-client\src\Provider\AbstractProvider.php(613): Stevenmaguire\OAuth2\Client\Provider\Microsoft->checkResponse(Object(GuzzleHttp\Psr7\Response), Array)

1 C:\inetpub\wwwroot\bephpforTteam\New\PHPMailer-master\PHPMailer-master\vendor\league\oauth2-client\src\Provider\AbstractProvider.php(528): League\OAuth2\Client\Provider\AbstractProvider->getParsedResponse(Object(GuzzleHttp\Psr7\Request))

2 C:\inetpub\wwwroot\bephpforTteam\New\PHPMailer-master\PHPMailer-master\vendor\phpmailer\phpmailer\src\OAuth.php(114): League\OAuth2\Client\Provider\AbstractProvider->getAccessToken(Object(League\OAuth2\Client\Grant\RefreshToken), Array)

3 C:\inetpub\wwwroot\bephpforTteam\New\PHPMailer-maste in C:\inetpub\wwwroot\bephpforTteam\New\PHPMailer-master\PHPMailer-master\vendor\stevenmaguire\oauth2-microsoft\src\Provider\Microsoft.php