Merged in feature/PMCORE-3929 (pull request #8525)

PMCORE-3929 MS Modern Authentication / GMAIL API IMAP for ABE
This commit is contained in:
Julio Cesar Laura Avendaño
2022-09-02 18:19:24 +00:00
10 changed files with 1845 additions and 633 deletions

View File

@@ -20,11 +20,10 @@ try {
$office365Client = $office365OAuth->getOffice365Client();
$accessToken = $office365Client->getAccessToken('authorization_code', [
'code' => $_GET['code']
'code' => $_GET['code'],
'scope' => Office365OAuth::SMTP_SCOPE
]);
$token = $accessToken->getToken();
$office365OAuth->setRefreshToken($accessToken->getRefreshToken());
$office365OAuth->saveEmailServer();