-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Retriving OAuth2 configuration from Autoconfiguration #7466
Comments
A group of us is currently working on a mechanism to allow email server operators to offer OAuth 2.0 without prior manual client registration. This will most likely end up being a couple of IETF RFCs. This needs to include a mechanism like Autoconfig. However, it's not clear yet whether it will be Thunderbird Autoconfig or a different format. Until then, your best bet is working on #6152. You won't be able to automatically add the OAuth config to K-9 Mail, but at least you'll be able to do it manually. If you intend to work on this, please don't go ahead and write code. Outline your proposed solution in a comment and wait for feedback from the team. Otherwise there's a high chance you'll create a patch we're not going to merge without major changes. |
@cketti Is there any news about working on mechanisms to offer OAuth 2.0 without prior manual client registration? Maybe I can somehow support you in your work? |
I believe this is related to https://datatracker.ietf.org/doc/draft-ietf-mailmaint-oauth-public/ which is slowly moving forward. I believe most of the conversation about this has happened at IETF events or Make Better Email, or the mailmaint list. I'm not sure there is anything immediate that can be done here, aside from supporting the IETF discussions and the issue cketti mentioned. |
Checklist
App version
6.603
Problem you are trying to solve
I have a Dovecot IMAP server configured with OAuth2 with Authelia as OAuth2 backend. After adding an entry for my server to
app/k9mail/src/main/java/com/fsck/k9/auth/AppOAuthConfigurationFactory.kt
:I was able to successfully authenticate with my OAuth2 backend. Adding every email server configuration to that file however isn't very practical. K-9 should automatically retrieve that configuration.
Suggested solution
The Autoconfiguration format does specify a
OAuth2
config node where the endpoints can be specified:https://wiki.mozilla.org/index.php?title=Thunderbird:Autoconfiguration:ConfigFileFormat#OAuth2
https://www.bucksch.org/1/projects/thunderbird/autoconfiguration/config-file-format.html#OAuth2
K-9 should read the values from this file. The
redirectUri
could be universal and used for all OAuth2 servers. K-9 would also have a defaultclientId
and server admins will just add the K-9 app.Screenshots / Drawings / Technical details
No response
The text was updated successfully, but these errors were encountered: