Conversation
Covers XOAUTH2 SASL auth in IMAP client, Microsoft OAuth2 provider, add-o365 CLI command, and sync routing changes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
10 bite-sized tasks: XOAUTH2 SASL client, auth method config, token source in IMAP client, Microsoft OAuth manager, config section, add-o365 CLI, sync routing, account removal, dependency, and final verification. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… IMAP Implements the XOAUTH2 SASL mechanism (sasl.Client interface) needed by Microsoft Exchange Online IMAP, and adds the AuthMethod field to IMAP Config for routing between password and xoauth2 authentication. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Bundles Microsoft OAuth2 browser flow + IMAP auto-configuration into a single command. Configures outlook.office365.com with XOAUTH2 auth method automatically after authorization succeeds. Also includes remove-account Microsoft token cleanup from concurrent task. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The MS Graph /me endpoint requires User.Read scope to return profile data. Without it, the token validation step after OAuth authorization would fail with HTTP 403. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
roborev: Combined Review (
|
|
@wesm , First change for above is to change the format of as the I have succeeded with My next steps are to try to add a non-work o365 (i.e. hotmail) account. |
|
@wesm my fork is located here |
|
closing in favor of #228 |
Summary
internal/microsoft/OAuth2 provider with Azure AD browser flow, PKCE (S256), and MS Graph/meemail validationadd-o365CLI command that auto-configures IMAP foroutlook.office365.comNew command
Config
Requires an Azure AD app registration (free) with
IMAP.AccessAsUser.AllandUser.Readdelegated permissions, public client flow enabled.Test plan
go fmt,go vetcleanadd-o365 --helpworks,add-o365 test@example.comshows correct config-missing errorsync-full🤖 Generated with Claude Code