decomplexity
decomplexity
When I have seen this message it has usually been because the token presented to the token endpoint is the wrong type of token. If you acquire a refresh token...
Tnx Jan. I am using V1.4.2 of oauth2-azure. Authorising code follows. I an obviously doing something stupid and I apologise in advance! ```session_start(); require 'vendor/autoload.php'; require_once('vendor/phpmailer/phpmailer/src/OAuth.php'); require_once('vendor/phpmailer/phpmailer/src/PHPMailer.php'); require_once('vendor/phpmailer/phpmailer/src/SMTP.php'); require_once('vendor/phpmailer/phpmailer/src/Exception.php'); require_once('vendor/thenetworg/oauth2-azure/src/Provider/Azure.php');...
Tnx Jan. Some background is appended below, but to pick up on your points: - OAuth2 client credentials grant flow is not supported by MSFT for SMTP AUTH with Oauth2...
Could quite possibly be the cause, with the V1 auth endpoint not recognising a V2 refresh token. Assuming you meant that ```dev-master``` did support V2 endpoints, I will tomorrow (29th)...
I have rebuilt using ```dev-master``` and with your suggested changes to my PHPMailer module: $provider->pathAuthorize = "/oauth2/v2.0/authorize"; $provider->pathToken = "/oauth2/v2.0/token"; $provider->tenant = "[my tenant domain name]; But Invalid_Grant AADSTS9002313: Invalid...
Jan - you asked for the contents of my get_oauth_token. Version **A** below - which is based on the one given in StevenMaguire's producer - appears to work OK (it...
Worth checking that the authorization and access token endpoints you are using are consistent with the resource API. The current (V2) endpoints are: https://login.microsoftonline.com/common/oauth2/v2.0/authorize https://login.microsoftonline.com/common/oauth2/v2.0/token set in oauth2-azure => Azure.php...
In AAD, is 'Supported account types' set to "Accounts in any organizational directory"? The default is single tenant.
Hi Matteo Have a look at the PHPMailer\PHPMailer Wiki document called "Microsoft OAuth2 SMTP issues" that I filed there in December.
As detailed in the Wiki document in the Token Scope section, could you post the value shown for the _Resource_ field in the Basic Info tab and also for the...