IMAP: Enable OAuth customization
Categories
(MailNews Core :: Networking: IMAP, enhancement, P2)
Tracking
(Not tracked)
People
(Reporter: edicharry, Assigned: jtracey)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Add OAuth customization for IMAP incoming servers and SMTP outgoing servers.
Exchange/Graph currently support OAuth customization via the IOAuth2CustomDetails XPCOM interface. In the exchange/graph case, we generically request the OAuth2 custom details for both incoming and outgoing servers in our shared rust authentication code. The OAuth2 module then takes the details and performs appropriate overrides to handle authentication.
The general required information for configuring OAuth custom details is to have users provide an application ID, a token endpoint, an authorization endpoint, and required OAuth scopes.
Exchange/Graph use the Microsoft URL convention where the user provides an application id, a tenant id, and an endpoint host to configure OAuth details. These items are part of the advanced server configuration for Exchange/Graph servers. The Exchange custom details class maps the Exchange configuration values to the general customization interface, which expresses the needed auth and token endpoints.
So for IMAP/SMTP, we'll need an implementation of IOAuth2CustomDetails that collects relevant configuration information from the IMAP/SMTP incoming/outgoing servers to instantiate the custom details to pass in to the OAuth2 module during authentication. Once the OAuth2 module has the custom details passed in, it should just work since the generic interface is expressed in terms of the generic parameters.
Updated•1 month ago
|
Updated•1 month ago
|
| Assignee | ||
Comment 1•27 days ago
|
||
This customization also applies to the associated outgoing (SMTP) server, using
the same values, but doesn't provide any way of customizing outgoing OAuth
directly.
| Assignee | ||
Updated•20 days ago
|
Pushed by benc@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/544a98d38338
Add support for OAuth customization for IMAP. r=thunderbird-reviewers,tobyp,darktrojan
Updated•19 days ago
|
Description
•