You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi some one cant help me with the configuration OAuth2 azure?
I'm ready with the token with get_oauth_token.php
PHP 7.3
phpmailer/phpmailer v6.6.4
league/oauth2-client 2.6.1
microsoft/microsoft-graph 1.76.0
stevenmaguire/oauth2-microsoft 2.2.0
but when i try to send an email i get:
2022-09-22 14:31:43 SERVER -> CLIENT: 220 FR3P281CA0180.outlook.office365.com Microsoft ESMTP MAIL Service ready at Thu, 22 Sep 2022 14:31:43 +0000
2022-09-22 14:31:43 CLIENT -> SERVER: EHLO pdc..it
2022-09-22 14:31:43 SERVER -> CLIENT: 250-FR3P281CA0180.outlook.office365.com Hello [95.217.]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
2022-09-22 14:31:43 CLIENT -> SERVER: STARTTLS
2022-09-22 14:31:44 SERVER -> CLIENT: 220 2.0.0 SMTP server ready
2022-09-22 14:31:44 CLIENT -> SERVER: EHLO pdc..it
2022-09-22 14:31:44 SERVER -> CLIENT: 250-FR3P281CA0180.outlook.office365.com Hello [95.217.]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-AUTH LOGIN XOAUTH2250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
Fatal error: Uncaught League\OAuth2\Client\Provider\Exception\IdentityProviderException: Bad Request in /var/www/vhosts//vendor/stevenmaguire/oauth2-microsoft/src/Provider/Microsoft.php:79 Stack trace: #0 /var/www/vhosts//vendor/league/oauth2-client/src/Provider/AbstractProvider.php(628): Stevenmaguire\OAuth2\Client\Provider\Microsoft->checkResponse(Object(GuzzleHttp\Psr7\Response), Array) #1 /var/www/vhosts//vendor/league/oauth2-client/src/Provider/AbstractProvider.php(537): League\OAuth2\Client\Provider\AbstractProvider->getParsedResponse(Object(GuzzleHttp\Psr7\Request)) #2 /var/www/vhosts//vendor/phpmailer/phpmailer/src/OAuth.php(115): League\OAuth2\Client\Provider\AbstractProvider->getAccessToken(Object(League\OAuth2\Client\Grant\RefreshToken), Array) #3 /var/www/vhosts//vendor/phpmailer/phpmailer/src/OAuth.php(128): PHPMailer\PHPMailer\OAuth->getToken() #4 /var/www/vhosts// in /var/www/vhosts/*****/vendor/stevenmaguire/oauth2-microsoft/src/Provider/Microsoft.php on line 79
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi some one cant help me with the configuration OAuth2 azure?
I'm ready with the token with get_oauth_token.php
PHP 7.3
phpmailer/phpmailer v6.6.4
league/oauth2-client 2.6.1
microsoft/microsoft-graph 1.76.0
stevenmaguire/oauth2-microsoft 2.2.0
but when i try to send an email i get:
2022-09-22 14:31:43 SERVER -> CLIENT: 220 FR3P281CA0180.outlook.office365.com Microsoft ESMTP MAIL Service ready at Thu, 22 Sep 2022 14:31:43 +0000
2022-09-22 14:31:43 CLIENT -> SERVER: EHLO pdc..it
2022-09-22 14:31:43 SERVER -> CLIENT: 250-FR3P281CA0180.outlook.office365.com Hello [95.217.]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
2022-09-22 14:31:43 CLIENT -> SERVER: STARTTLS
2022-09-22 14:31:44 SERVER -> CLIENT: 220 2.0.0 SMTP server ready
2022-09-22 14:31:44 CLIENT -> SERVER: EHLO pdc..it
2022-09-22 14:31:44 SERVER -> CLIENT: 250-FR3P281CA0180.outlook.office365.com Hello [95.217.]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-AUTH LOGIN XOAUTH2250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
Fatal error: Uncaught League\OAuth2\Client\Provider\Exception\IdentityProviderException: Bad Request in /var/www/vhosts//vendor/stevenmaguire/oauth2-microsoft/src/Provider/Microsoft.php:79 Stack trace: #0 /var/www/vhosts//vendor/league/oauth2-client/src/Provider/AbstractProvider.php(628): Stevenmaguire\OAuth2\Client\Provider\Microsoft->checkResponse(Object(GuzzleHttp\Psr7\Response), Array) #1 /var/www/vhosts//vendor/league/oauth2-client/src/Provider/AbstractProvider.php(537): League\OAuth2\Client\Provider\AbstractProvider->getParsedResponse(Object(GuzzleHttp\Psr7\Request)) #2 /var/www/vhosts//vendor/phpmailer/phpmailer/src/OAuth.php(115): League\OAuth2\Client\Provider\AbstractProvider->getAccessToken(Object(League\OAuth2\Client\Grant\RefreshToken), Array) #3 /var/www/vhosts//vendor/phpmailer/phpmailer/src/OAuth.php(128): PHPMailer\PHPMailer\OAuth->getToken() #4 /var/www/vhosts// in /var/www/vhosts/*****/vendor/stevenmaguire/oauth2-microsoft/src/Provider/Microsoft.php on line 79
Beta Was this translation helpful? Give feedback.
All reactions