mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 13:23:58 +01:00
Moved the CSRF token client over into main commons code (#5471)
This commit is contained in:
parent
3d0e65c92c
commit
8b8eb84fae
18 changed files with 252 additions and 37 deletions
10
app/src/test/res/raw/api_error.json
Normal file
10
app/src/test/res/raw/api_error.json
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"errors": [
|
||||
{
|
||||
"code": "unknown_action",
|
||||
"text": "Unrecognized value for parameter \"action\": oscillate."
|
||||
}
|
||||
],
|
||||
"docref": "See https://en.wikipedia.org/w/api.php for API usage.",
|
||||
"servedby": "mw1286"
|
||||
}
|
||||
8
app/src/test/res/raw/csrf_token.json
Normal file
8
app/src/test/res/raw/csrf_token.json
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"batchcomplete": true,
|
||||
"query": {
|
||||
"tokens": {
|
||||
"csrftoken": "b6f7bd58c013ab30735cb19ecc0aa08258122cba+\\"
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue