Commit c245ccd
committed
Revert "Don’t use mwoauth.identify() to get user name"
This was poorly advised, as index.php told users to use a “user
identification only“ consumer if they didn’t need any grants, but the
authorization area would be broken in that case: such consumers aren’t
allowed to use the API (error: readapidenied). I think the best solution
is to switch back to mwoauth.identify(): yes, it’s not a great
interface, but it’s better than only supporting “regular” OAuth
consumers in the tool, or than introducing another prompt in
cookiecutter.json asking which type of OAuth consumer users are
intending to use, or than including the code for both versions and
falling back from action='userinfo' to mwoauth.identify() if the former
yields an error.
This reverts commit a4b9d93.
Bug: T4039321 parent 8a89bd9 commit c245ccd
2 files changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
93 | 97 | | |
94 | | - | |
| 98 | + | |
95 | 99 | | |
96 | 100 | | |
97 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
234 | 236 | | |
235 | 237 | | |
236 | 238 | | |
| |||
0 commit comments