inbox-zero icon indicating copy to clipboard operation
inbox-zero copied to clipboard

Setup Microsoft OAuth integration with NextAuth (Outlook)

Open elie222 opened this issue 11 months ago • 6 comments

Add Microsoft/Outlook authentication support alongside existing Gmail auth.

Tasks:

  • [ ] Add Azure AD provider to NextAuth config
  • [ ] Update session handling to track provider type (gmail/outlook)
  • [ ] Update environment variables for Azure credentials
  • [ ] Add login UI toggle between Gmail/Outlook
  • [ ] Add documentation for Azure app registration process
  • [ ] Hide Outlook login if environment variables for Azure not set

Technical Notes:

  • Use next-auth/providers/azure-ad
  • Need to handle tenant ID for enterprise deployment
  • Update types to include provider in session

elie222 avatar Dec 19 '24 10:12 elie222

Can I work on this?

arndom avatar Jan 13 '25 12:01 arndom

Not just MS support saml or openid connect, these are standards and with this also microsoft is supported AND everything else

celevra avatar Apr 11 '25 15:04 celevra

We need access to user's email. It's not just about log in.

Best, Eliezer

On Fri, Apr 11, 2025 at 6:19 PM, celevra < @.*** > wrote:

Not just MS support saml or openid connect, these are standards and with this also microsoft is supported AND everything else

— Reply to this email directly, view it on GitHub ( https://github.com/elie222/inbox-zero/issues/271#issuecomment-2797211872 ) , or unsubscribe ( https://github.com/notifications/unsubscribe-auth/AAXSQXY4MGHKCULU5EXZPSD2Y7MPPAVCNFSM6AAAAABT4WAB4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOOJXGIYTCOBXGI ). You are receiving this because you authored the thread. Message ID: <elie222/inbox-zero/issues/271/2797211872 @ github. com>

celevra left a comment (elie222/ inbox-zero#271) ( https://github.com/elie222/inbox-zero/issues/271#issuecomment-2797211872 )

Not just MS support saml or openid connect, these are standards and with this also microsoft is supported AND everything else

— Reply to this email directly, view it on GitHub ( https://github.com/elie222/inbox-zero/issues/271#issuecomment-2797211872 ) , or unsubscribe ( https://github.com/notifications/unsubscribe-auth/AAXSQXY4MGHKCULU5EXZPSD2Y7MPPAVCNFSM6AAAAABT4WAB4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOOJXGIYTCOBXGI ). You are receiving this because you authored the thread. Message ID: <elie222/inbox-zero/issues/271/2797211872 @ github. com>

elie222 avatar Apr 13 '25 19:04 elie222

yes but there are other e-mail provider as gmail and microsoft and they are support imap or jmap and oauth

celevra avatar Apr 13 '25 19:04 celevra

JMAP has minimal support. It's been brought up in the past and doesn't seem to be a good option.

On Sun, 13 Apr 2025 at 22:21, celevra @.***> wrote:

yes but there are other e-mail provider as gmail and microsoft and they are support imap or jmap and oauth

— Reply to this email directly, view it on GitHub https://github.com/elie222/inbox-zero/issues/271#issuecomment-2800086611, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXSQX7BGOMOAR7MAZCZKZL2ZK2MTAVCNFSM6AAAAABT4WAB4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMBQGA4DMNRRGE . You are receiving this because you authored the thread.Message ID: @.***> celevra left a comment (elie222/inbox-zero#271) https://github.com/elie222/inbox-zero/issues/271#issuecomment-2800086611

yes but there are other e-mail provider as gmail and microsoft and they are support imap or jmap and oauth

— Reply to this email directly, view it on GitHub https://github.com/elie222/inbox-zero/issues/271#issuecomment-2800086611, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXSQX7BGOMOAR7MAZCZKZL2ZK2MTAVCNFSM6AAAAABT4WAB4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMBQGA4DMNRRGE . You are receiving this because you authored the thread.Message ID: @.***>

-- Best, Eliezer

elie222 avatar Apr 13 '25 19:04 elie222

Being worked on here: https://github.com/elie222/inbox-zero/pull/493

elie222 avatar Jun 19 '25 19:06 elie222