Outlook.com/Live.com OAuth2 login for PQ email retrieval

オープン
#698 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
18/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
python

調査の方向性

This depends on #443's EmailProvider interface and fetch/parse/DB-match pipeline, so check first whether #443 has merged and read the interface there, along with the Gmail OAuth issue it mirrors. The payload names no existing source files, so locate the current login and credential-storage code before writing anything. Done means an OutlookOAuthProvider that implements EmailProvider, completes a loopback OAuth2 login, and fetches mail over IMAP with XOAUTH2, with tokens stored and refreshed via keyring.

索引モデルが issue の本文から書いたものです。

説明

area: import feature on hold
Problem Statement

Unlike Gmail, Outlook.com/Live.com has fully deprecated Basic
Authentication for consumer IMAP — this is disabled server-side by
Microsoft, with no app-password fallback. #443's generic IMAP +
app-password approach cannot support Outlook/Live accounts at all.
OAuth2 is the only way to support this provider.

Proposed Solution

Add Outlook.com/Live.com as an OAuth2 login option.

  • Use Microsoft's official msal (Microsoft Authentication Library) SDK
  • Local loopback browser flow, same pattern as the Gmail OAuth issue —
    reuse that implementation's structure where possible
  • IMAP with XOAUTH2 authentication mechanism (Microsoft has not
    deprecated IMAP itself, only Basic Auth for accessing it) — or
    consider Microsoft Graph API mail access as an alternative if XOAUTH2
    IMAP proves troublesome in testing
  • Token storage/refresh via keyring, same credential store as #443
  • Implements the shared EmailProvider interface from #443
    (OutlookOAuthProvider), so it plugs into the same fetch/parse/
    DB-match pipeline without changes there
Notes / constraints
  • Azure app registration required (separate from Google's setup) —
    redirect URI configuration for a desktop/loopback flow
  • Microsoft's Basic Auth deprecation has been rolled out in phases
    before (2024 for IMAP, SMTP AUTH phased through March–April 2026) —
    expect this to keep shifting; isolating this behind the
    EmailProvider interface from #443 limits the blast radius when it
    does
  • Expect roughly one maintenance session per year for Microsoft-side
    auth/API changes, same as the Gmail OAuth issue
  • This issue is not optional if Outlook/Live support is wanted at
    all
    — unlike the Gmail OAuth issue, there's no working fallback via
    #443's generic IMAP path
Depends on
  • #443 (EmailProvider interface, fetch/parse/DB-match pipeline)
Expected Benefits

Enables PQ-from-email support for Outlook.com/Live.com users, which is
otherwise fully blocked by Microsoft's Basic Auth deprecation.

主要言語
Python
スター
37
フォーク
17
平均マージ
16時間 7分
マージ済み PR(30日)
128

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

OpenSAK-Org/OpenSAK のほかの issue

OpenSAK-Org/OpenSAK の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。