CardDAV OAuth2 token expires and is not refreshed
Categories
(MailNews Core :: Address Book, defect)
Tracking
(thunderbird_esr78 fixed, thunderbird89 fixed)
People
(Reporter: darktrojan, Assigned: darktrojan)
Details
Attachments
(1 file)
48 bytes,
text/x-phabricator-request
|
wsmwk
:
approval-comm-beta+
wsmwk
:
approval-comm-esr78+
|
Details | Review |
Google's OAuth tokens expire after an hour. Every synchronisation after that we get an authorisation error.
Assignee | ||
Comment 1•3 years ago
•
|
||
Here we call oauth.connect
with the refresh argument false
.
connect
just calls aSuccess()
immediately because there is a token (though it's expired) and we didn't ask for it to be refreshed. I think we should check the expiry here and skip to the next block which refreshes the token. I also notice there's several branches of Scratch that, I overlooked something.connect
which don't call either success or failure callback. That seems dodgy.
Assignee | ||
Comment 2•3 years ago
|
||
Assignee | ||
Updated•3 years ago
|
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/86b7fd0621bc
Automatically refresh expired OAuth2 tokens when they are next used. r=mkmelin
Assignee | ||
Comment 4•3 years ago
|
||
Comment on attachment 9220240 [details]
Bug 1709492 - Automatically refresh expired OAuth2 tokens when they are next used. r?mkmelin
[Approval Request Comment]
Regression caused by (bug #): Never worked.
User impact if declined: Some CardDAV directories stop syncing after a time until Thunderbird is restarted.
Testing completed (on c-c, etc.): Just landed.
Risk to taking this patch (and alternatives if risky): Small.
Comment 5•3 years ago
|
||
Comment on attachment 9220240 [details]
Bug 1709492 - Automatically refresh expired OAuth2 tokens when they are next used. r?mkmelin
[Triage Comment]
Approved for beta
Comment 6•3 years ago
|
||
bugherder uplift |
Thunderbird 89.0b4:
https://hg.mozilla.org/releases/comm-beta/rev/a1a3630655d2
Comment 7•3 years ago
|
||
Uplift to 78?
Assignee | ||
Comment 8•3 years ago
|
||
Comment on attachment 9220240 [details]
Bug 1709492 - Automatically refresh expired OAuth2 tokens when they are next used. r?mkmelin
[Approval Request Comment]
Regression caused by (bug #): Never worked.
User impact if declined: Some CardDAV directories stop syncing after a time until Thunderbird is restarted.
Testing completed (on c-c, etc.): In b4.
Risk to taking this patch (and alternatives if risky): Small.
Comment 9•3 years ago
|
||
Comment on attachment 9220240 [details]
Bug 1709492 - Automatically refresh expired OAuth2 tokens when they are next used. r?mkmelin
[Triage Comment]
Approved for esr78
Comment 10•3 years ago
|
||
bugherder uplift |
Thunderbird 78.11.0:
https://hg.mozilla.org/releases/comm-esr78/rev/1870cd4fa5ae
Description
•