clean up OAuth2 code
Categories
(Thunderbird :: General, task)
Tracking
(thunderbird_esr68 fixed)
| Tracking | Status | |
|---|---|---|
| thunderbird_esr68 | --- | fixed |
People
(Reporter: mkmelin, Assigned: mkmelin)
References
Details
Attachments
(4 files)
|
2.95 KB,
patch
|
Fallen
:
review+
mkmelin
:
approval-comm-esr68+
|
Details | Diff | Splinter Review |
|
2.30 KB,
patch
|
Fallen
:
review+
mkmelin
:
approval-comm-esr68+
|
Details | Diff | Splinter Review |
|
3.35 KB,
patch
|
Fallen
:
review+
mkmelin
:
approval-comm-esr68+
|
Details | Diff | Splinter Review |
|
1.76 KB,
patch
|
Fallen
:
review+
mkmelin
:
approval-comm-esr68+
|
Details | Diff | Splinter Review |
There is some dead code to remove and other things that could be modernized in the OAuth2 code to make it less confusing.
| Assignee | ||
Comment 1•6 years ago
|
||
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 2•6 years ago
|
||
From bug 1592407 comment 31. We don't need the hash, since we don't do the implicit flow now, which was the only thing that could use id.
| Assignee | ||
Comment 3•6 years ago
|
||
Constants are overrated... all they do is make you jump back and forwards in code, when what you really want to do is verify it's correct as per the rfc.
| Assignee | ||
Comment 4•6 years ago
|
||
Updated•6 years ago
|
Comment 5•6 years ago
|
||
Comment 6•6 years ago
|
||
| Assignee | ||
Comment 7•6 years ago
|
||
(In reply to Philipp Kewisch [:Fallen] [:📆] from comment #5)
Would it make sense to use new URL() on
aURLand then use.search.substr(1)?
That was the original suggestion, but it's still just looking at a string, so I didn't really see too much point in it.
Comment 8•6 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/4c34261831ce
clean up OAuth2 code: remove responseType which is always "code". r=Fallen
https://hg.mozilla.org/comm-central/rev/ff646df74684
improve OAuth2 params parsing. r=Fallen
https://hg.mozilla.org/comm-central/rev/9b0f8cb7ffc1
don't pass string constants to determine OAuth refresh token or not. r=Fallen
https://hg.mozilla.org/comm-central/rev/42ac954abcd0
use fetch + URLSearchParms instead of Http.jsm to request OAuth2 access token. r=Fallen
https://hg.mozilla.org/comm-central/rev/f962ffd01192
Use URLSearchParams for setting params for OAuth2 authorization request. r=Fallen
| Assignee | ||
Updated•6 years ago
|
Comment 10•6 years ago
|
||
Looks like you broke
TEST-UNEXPECTED-FAIL | comm/mail/components/enterprisepolicies/tests/browser/browser_policy_extensions.js | Uncaught exception - at chrome://mochitests/content/browser/comm/mail/components/enterprisepolicies/tests/browser/browser_policy_extensions.js:23 - TypeError: disableBtn is null
Comment 11•6 years ago
|
||
Sorry, my mistake, that was already broken in the Daily run.
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Updated•6 years ago
|
Comment 12•6 years ago
|
||
(In reply to Pulsebot from comment #9)
https://hg.mozilla.org/comm-central/rev/42ac954abcd0
use fetch + URLSearchParms instead of Http.jsm to request OAuth2 access token. r=Fallen
This patch wasn't attached and reviewed. Looks like it was just forgotten. I'm going to uplift it anyway because it's fine.
Comment 13•6 years ago
|
||
68.4.2:
https://hg.mozilla.org/releases/comm-esr68/rev/344da96fabbfe4f5900769442745afc355f12ab0
https://hg.mozilla.org/releases/comm-esr68/rev/8c31b90e567bb0425eb644f13680e039e2496d63
https://hg.mozilla.org/releases/comm-esr68/rev/b5ba333d8eddea59a57ccb2900cba068bb77e796
https://hg.mozilla.org/releases/comm-esr68/rev/b7971f56a0e92dbfa6057ba4aa616d9e584a7967
https://hg.mozilla.org/releases/comm-esr68/rev/e2debb9918bb39aa210e704db9c2dc6d8d086eaa
Description
•