OAuth2 for comcast.net
Categories
(Thunderbird :: Account Manager, enhancement)
Tracking
(thunderbird_esr115 fixed)
Tracking | Status | |
---|---|---|
thunderbird_esr115 | --- | fixed |
People
(Reporter: atbrotman, Assigned: cketti)
References
(Blocks 2 open bugs)
Details
Attachments
(2 files)
9.51 KB,
application/javascript
|
Details | |
48 bytes,
text/x-phabricator-request
|
wsmwk
:
approval-comm-esr115+
|
Details | Review |
Steps to reproduce:
Attempting to add OAuth2 as a login method for comcast.net users
Actual results:
Works when tested in a local build
Expected results:
Users should be able to login via OAuth2
Updated•2 years ago
|
Updated•2 years ago
|
Reporter | ||
Comment 1•2 years ago
|
||
Will this be included as part of 116 GA, or will it be a later version?
Alex: Does your system require Thunderbird to request the "openid" and "profile" scopes, or would the email scope itself ("https://email.comcast.net/") be sufficient? Could you test a local build without those scopes?
Reporter | ||
Comment 3•2 years ago
|
||
cketti: I've been told it's as we specified. Does that cause a problem?
It could be a user experience problem. Depending on what Comcast's prompt to the user looks like, they could be asked to grant access to data that an email app probably shouldn't have access to. This could lead to unnecessary support requests.
The "openid" and "profile" scopes are part of OpenID Connect (and shouldn't be necessary). The "profile" scope is specified to give access to a bunch of personal data:
name, family_name, given_name, middle_name, nickname, preferred_username, profile, picture, website, gender, birthdate, zoneinfo, locale, and updated_at (see https://openid.net/specs/openid-connect-basic-1_0.html#Scopes)
If not absolutely necessary on your end, I'd like to avoid requesting those scopes in Thunderbird.
Reporter | ||
Comment 5•2 years ago
|
||
If this goes into the daily build for Tbird, I can give it a try with just the first scope and ensure it works properly. Sound agreeable?
Updated•2 years ago
|
Comment 7•2 years ago
•
|
||
(In reply to Alex Brotman from comment #5)
If this goes into the daily build for Tbird, I can give it a try with just the first scope and ensure it works properly. Sound agreeable?
Hey Alex, yes, that would be nice, if you could test daily once it lands.
We cannot really answer which scopes are needed, because that's defined entirely by the OAuth2 server and the services using the token. The OAuth2 spec does not define it. We need only the scopes necessary to login and use IMAP, POP3, SMTP. If you have calendar, contacts and WebDAV servers for your customers as well, we should include those scopes as well. As cketti said, and I agree, we should not request scopes (permissions) that we do not need.
As a side note, I do like the client ID that you used very much! :-)
FWIW, I just reviewed it as-is, so that this can land and you can test it. Note that this is an unusual approach and we normally expect the patch contributor to have tested it first, but I understand that this would be extraordinarily difficult for you in this case, so let's do it the other way around this time, exceptionally.
Comment 8•2 years ago
|
||
It's easy enough to create a try build that can be tested. I've set one off now - https://treeherder.mozilla.org/jobs?repo=try-comm-central&revision=ea5ca22ce4581e5cc14d76bb065e070d04b08e31 (once finished, clicking on B and then artifacts will give you builds that can be downloaded for testing - I'll come back later and post direct links)
Also, would it be possible to provide a test account for the Thunderbird team? Otherwise if/when something goes wrong in the future we can't debug.
Comment 9•2 years ago
|
||
Windows: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/aLT6LJw_SU-Nxrj1dCrweA/runs/0/artifacts/public/build/install/sea/target.installer.exe
OSX: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/AQi9Q-ufTDGlbeTt06wD0A/runs/0/artifacts/public/build/target.dmg
Linux: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/CPeI1sMmQK-smXNpGM4YtA/runs/0/artifacts/public/build/target.tar.bz2
Comment 10•2 years ago
|
||
Please try a build from comment 9 and tell us if it works
Reporter | ||
Comment 11•2 years ago
|
||
It looks like retrieving works, but sending does not. When discussing with that Identity team, they noted that one of the pieces of information from openid/profile is validated upon login attempt and therefore is necessary for the SMTP transaction to be successful.
Seems like all three are necessary.
Happy to test another daily build with all three
Assignee | ||
Comment 12•2 years ago
|
||
I've updated the patch on Phabricator. I don't think I have permissions to create a try build, though.
Comment 13•2 years ago
|
||
I can set one off once the current windows bustage clears up.
Comment 14•2 years ago
|
||
New builds:
- Linux: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/RvEFFBKUQEGnJzeLMsZt3Q/runs/0/artifacts/public/build/target.tar.bz2
- Mac: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/RL6cSG5vTNav87tAx4niog/runs/0/artifacts/public/build/target.dmg
- Windows: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/YnPlREpJRHGU1MwpVDJUpA/runs/0/artifacts/public/build/install/sea/target.installer.exe
Reporter | ||
Comment 15•2 years ago
|
||
Seems good for me. Going to have a few others test these builds.
Comment 16•2 years ago
•
|
||
Thanks, Alex.
Would it be in your power and possibility to create a test account for us? Magnus has a point that it would help to test the Comcast config, to check whether the config still works in the future, or to test changes in Thunderbird.
Reporter | ||
Comment 17•2 years ago
|
||
Let me ask again (I asked right before the US holiday). It might be something that you have to use against a pre-prod endpoint, but seems like this should be doable.
Comment 18•2 years ago
|
||
Remember that we have server names (imap.comcast.net, oauth.xfinity.com etc.) hardcoded.
Reporter | ||
Comment 19•2 years ago
|
||
As far as the application is concerned, the patch works properly on Windows and Mac.
I've inquired and created a ticket for test credentials.
I believe those hostnames match what we added to AutoConfig. Is there a problem with that?
Assignee | ||
Comment 20•2 years ago
|
||
As far as the application is concerned, the patch works properly on Windows and Mac.
Thanks for checking 👍
I believe those hostnames match what we added to AutoConfig. Is there a problem with that?
I believe Ben's comment was in regards to a test account possibly being for a "pre-prod endpoint". If a test account requires an OAuth configuration different from what you attached to this issue, we won't be able to use them without changing Thunderbird. The host names are part of the OAuth config. So if the pre-prod environment requires using e.g. imap.preprod.comcast.net, we won't be able to use OAuth (out of the box).
Reporter | ||
Comment 21•2 years ago
|
||
The pre-prod does indeed use a different end point. I've asked for a production UID
Comment 22•2 years ago
|
||
Thank you!
Comment 23•2 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/cb3cfaff121e
Add OAuth credentials for Comcast. r=mkmelin,BenB
Reporter | ||
Comment 24•2 years ago
|
||
How can I securely provide the credentials?
Assignee | ||
Comment 25•2 years ago
|
||
Alex: If you send me an email, I'll add the credentials to our team's password manager.
My OpenPGP key can be found on keys.openpgp.org: https://keys.openpgp.org/search?q=cketti@thunderbird.net
Reporter | ||
Comment 26•2 years ago
|
||
cketti: Sent you an "encrypted" mail (it's the way corporate allows) to you. Let me know if you didn't get that.
Reporter | ||
Comment 28•2 years ago
|
||
That was the version I originally tested with. So that's fine with me (if my opinion matters)
Assignee | ||
Comment 29•2 years ago
|
||
This should be fine to uplift. For now it will only affect users that manually configure their Comcast account in Thunderbird to use OAuth.
We'll update ISPDB (see https://github.com/thunderbird/autoconfig/pull/73) once most users use a version that either supports OAuth with Comcast or ignores unsupported OAuth settings in the autoconfig file (see bug 1869122).
Updated•2 years ago
|
Comment 30•2 years ago
|
||
Comment on attachment 9364844 [details]
Bug 1844810 - Add OAuth credentials for Comcast. r=mkmelin
[Triage Comment]
Approved for esr115
Comment 31•2 years ago
|
||
bugherder uplift |
Thunderbird 115.6.1:
https://hg.mozilla.org/releases/comm-esr115/rev/830bcf0a8386
Description
•