Microsoft 365 OAuth: popup reports "account connected" but parent window shows "Authorization pop-up closed" and no account is created
I maintainer di solito rispondono entro 1 giorno
@ChristophWurst ci sta già lavorando.
Dal 16/6/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Steps to reproduce
- Configure Microsoft OAuth in Groupware → Microsoft Integration (Client ID, Secret, tenant common). Confirmed saved and persisting after a hard reload of the admin page.
- Azure app registration: redirect URI is an exact, character-for-character match to https:///index.php/apps/mail/integration/microsoft-auth, registered under the Web platform (not SPA). Admin consent granted successfully.
- In the Mail app, add an account via the Auto path (email + placeholder password) → Connect.
- Complete sign-in and consent in the Microsoft popup; the popup reaches "Account connected / you can close this window."
Expected behavior
The account is created and the mailbox loads.
Actual behavior
While the Microsoft popup is still open and showing success, the underlying account-setup box in the parent window already displays "Authorization pop-up closed." After closing the popup, the Mail app returns to the login screen with no account in the sidebar — the account is never created. This appears similar to the symptom in issue #9159.
Mail app version
5.9.1
Nextcloud version
33.0.5
Mailserver or service
Microsoft 365 / Exchange Online (XOAUTH2)
Operating system
Linux
PHP engine version
Other
Nextcloud memory caching
No response
Web server
Apache (supported)
Database
MySQL
Additional info
Browser: Reproduces in Microsoft Edge with a clean/default profile, third-party cookies and popups allowed for the Nextcloud domain and login.microsoftonline.com. Also reproduces in Chrome.
Hosting: Managed Nextcloud (Cloudamo) — I do not have shell/occ access, and the in-browser admin log viewer shows no entries.
Additional context / already ruled out: Credentials are in the correct Mail-app panel (redirect URI path is /apps/mail/), saved server-side. Azure redirect URI is an exact match and registered as Web, not SPA. IMAP is enabled on the mailbox; admin consent succeeded after elevating the Azure role. Browser-side causes ruled out via clean Edge profile with cookies/popups allowed.
Given the "Authorization pop-up closed" message appearing before the popup completes, is this a known front-channel/callback handling issue, and what server-side configuration (e.g. overwrite.cli.url, overwriteprotocol/overwritehost, trusted_domains, or reverse-proxy rewriting of the /index.php/apps/mail/integration/microsoft-auth path) would cause the parent window not to receive the popup's result? I'm on managed hosting and would like to give the host a precise instruction if this is on their side.
- Lingua principale
- JavaScript
- Stelle
- 1k
- Fork
- 363
- Merge medio
- 1g 13h
- PR unite (30g)
- 94
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di nextcloud/mail
-
1. to develop enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
nextcloud/mail#13841 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
1. to develop enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
nextcloud/mail#13828 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Show email next to name in Search dropdownForse già presa @vansh-nagar l’ha presa 18 giorni fa. Aperta1. to develop enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
nextcloud/mail#13703 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
ISO-2022-JP emails are garbled in Mail 5.10.12 [Minimal fix available]Forse già presa @neconohitomi l’ha presa 39 giorni fa. Aperta1. to develop bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
nextcloud/mail#13472 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
1. to develop technical debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di nextcloud/mail
Issue simili
-
t0ggles
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
nolimits4web/swiper#8240 · 1 commento ·
-
netbox status: backlog topic: testing type: housekeeping
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
netbox-community/netbox#23395 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
[scanner] check:spelling skips blog/ — posts and author metadata are never spell-checkedForse già presa @hivecommons-hive l’ha presa oggi. Apertaagent/scanner bug hive/covered-by-pr hive/hosted-available-lke648397-260827-5n31
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
cncf/endusers#1452 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Edit: HTVKey.vnApertachannels:edit check:passed
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
I maintainer di solito rispondono entro 6 giorni