Mutt OAuth2 token management with Keyring support
Find a file
2025-10-30 20:47:09 +01:00
mutt_oauth2_keyring Remove unused configuration statement 2025-10-30 20:46:50 +01:00
README.md Remove unused configuration statement 2025-10-30 20:46:50 +01:00
setup.py Bump version to 0.0.3 2025-10-30 20:47:09 +01:00

mutt-oauth2-keyring

Mutt OAuth2 token management with Keyring support.

Installation

uv tool install git+https://git.alt.tf/bcollet/mutt-oauth2-keyring

Configuration

The default configuration file is located at ~/.config/mutt-oauth2-keyring/config.yaml and can be overriden with the MUTT_OAUTH2_KEYRING_CONFIGURATION environment variable.

---
registrations:
- name: example.com
  authorization_endpoint: https://login.microsoftonline.com/example.onmicrosoft.com/oauth2/v2.0/authorize
  device_authorization_endpoint: https://login.microsoftonline.com/example.onmicrosoft.com/oauth2/v2.0/devicecode
  token_endpoint: https://login.microsoftonline.com/example.onmicrosoft.com/oauth2/v2.0/token
  auth_flow: authcode
  redirect_uri: https://login.microsoftonline.com/example.onmicrosoft.com/oauth2/nativeclient
  tenant: example.onmicrosoft.com
  email: user@example.com
  scopes:
  - offline_access
  - https://outlook.office.com/IMAP.AccessAsUser.All
  - https://outlook.office.com/SMTP.Send
  # Thunderbird
  client_id: 08162f7c-0fd2-4200-a84a-f25a4db0b584
  client_secret: TxRBilcHdC6WGBee]fs?QR:SJ8nI[g82