Skip to content

fix(frontend): sync provisioned INBOX when master password is set - #13812

Open
whoalin1 wants to merge 5 commits into
nextcloud:mainfrom
whoalin1:fix-oidc-inbox-sync-master-password
Open

whoalin1 wants to merge 5 commits into
nextcloud:mainfrom
whoalin1:fix-oidc-inbox-sync-master-password

Conversation

@whoalin1

@whoalin1 whoalin1 commented Oct 6, 2026 •

Copy link
Copy Markdown

Summary

Provisioned accounts on passwordless (OIDC/SAML) sessions skipped INBOX auto-refresh even when provisioning used a master password. syncInboxes / unified syncEnvelopes treated every provisioningId as disabled whenever password-is-unavailable was true (#7616), which predates master password support (#9008 / #9653).

  • Respect masterPasswordEnabled in the store isDisabled predicate (same idea as Navigation).
  • Fix Navigation's inverted check and wire master-password-enabled from PageController into the store so the flag is actually set.

Closes #13807

Test plan

  • Provisioning with "Use master password" + user_oidc login: stay on INBOX; external mail appears within the background sync interval without folder switch/reload
  • Passwordless session without master password: provisioned account still disabled in nav; sync still skipped (requests would fail)
  • Password login (non-OIDC): INBOX sync unchanged
  • tests/Unit/Controller/PageControllerTest.php passes

AI disclosure

This PR was drafted with the help of AI coding assistants (Cursor agents / LLM-based tools), including the description. I am responsible for it and happy to rework anything that doesn't fit.

All commits carry an Assisted-by: Cursor:grok-4.7 trailer.

@welcome

welcome Bot commented Oct 6, 2026

Copy link
Copy Markdown

Thanks for opening your first pull request in this repository! 鉁岋笍

Assisted-by: Cursor:grok-4.7
Signed-off-by: whoalin1 <whoalin414@gmail.com>
Assisted-by: Cursor:grok-4.7
Signed-off-by: whoalin1 <whoalin414@gmail.com>
Assisted-by: Cursor:grok-4.7
Signed-off-by: whoalin1 <whoalin414@gmail.com>
Assisted-by: Cursor:grok-4.7
Signed-off-by: whoalin1 <whoalin414@gmail.com>
Assisted-by: Cursor:grok-4.7
Signed-off-by: whoalin1 <whoalin414@gmail.com>
@whoalin1
whoalin1 force-pushed the fix-oidc-inbox-sync-master-password branch from 267516a to d9754ac Compare October 9, 2026 14:13

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provisioned accounts never auto-refresh the INBOX for passwordless (OIDC/SAML) sessions, even with a master password configured

1 participant