1
0
Fork 0
mirror of https://git.sr.ht/~rjarry/aerc synced 2026-02-25 05:35:24 +01:00
aerc/lib/auth
Robin Jarry 018e6f81f4 lib: consolidate SASL authentication code
SASL and OAuth2 authentication logic was duplicated across the IMAP
worker and the SMTP sender code. Both implementations handled XOAUTH2,
OAUTHBEARER, and token caching independently, making maintenance
difficult and bug fixes error-prone.

Move this shared logic into lib/auth where it can be reused by all
backends. The IMAP worker no longer needs its own OAuth structs and
configuration parsing since it can now rely on the common
implementation also used by the SMTP sender.

Signed-off-by: Robin Jarry <robin@jarry.cc>
Reviewed-by: Simon Martin <simon@nasilyan.com>
2026-02-09 14:46:27 +01:00
..
sasl.go lib: consolidate SASL authentication code 2026-02-09 14:46:27 +01:00
token.go lib: consolidate SASL authentication code 2026-02-09 14:46:27 +01:00
xoauth2.go lib: consolidate SASL authentication code 2026-02-09 14:46:27 +01:00