mirror of
https://github.com/itflow-org/itflow
synced 2026-12-05 10:39:00 +00:00
Microsoft 365 mail connects with the permissions the app has: The app has on the OAuth tab picks Microsoft Graph (graph.microsoft.com/.default) or Exchange's IMAP and SMTP scopes, Connect asks for the account instead of forcing the consent screen, the callback redeems for the same and keeps only an Exchange token as the SMTP/IMAP sign-in, and Connect's return and Test OAuth Token Refresh check Graph first and SMTP/IMAP only for what Graph lacks; 26.12.6 changelog
This commit is contained in:
@@ -331,6 +331,13 @@ if (!$config_module_enable_ticketing) {
|
||||
<button type="button" class="btn btn-outline-secondary clipboardjs" data-clipboard-target="#mailOauthRedirect" title="Copy"><i class="far fa-fw fa-copy"></i></button>
|
||||
</div>
|
||||
<div class="form-text">Under Authentication in the app registration, as a Web platform.</div>
|
||||
<div class="mt-3">
|
||||
<?= settingsSelect('oauth_connect_way', mailMicrosoftConnectWay($oauth_connected), [
|
||||
'graph' => 'Microsoft Graph\'s Mail.Send and Mail.ReadWrite',
|
||||
'exchange' => 'Exchange\'s SMTP.Send and IMAP.AccessAsUser.All',
|
||||
], ['id' => 'oauthConnectWay', 'icon' => 'fa-shield-alt', 'label' => 'The app has', 'data' => ['settings-untracked' => '1'],
|
||||
'help' => 'The permissions you gave it in Microsoft Entra - Connect asks Microsoft for just those, so there\'s nothing new to approve.']) ?>
|
||||
</div>
|
||||
<button type="submit" name="oauth_connect_microsoft_mail" class="btn btn-outline-primary mt-3">
|
||||
<i class="fab fa-fw fa-microsoft me-2"></i>Connect Microsoft 365
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user