https://bugzilla.wikimedia.org/show_bug.cgi?id=27757
Summary: create an API command just for retrieving tokens (not
page-based)
Product: MediaWiki
Version: wikimedia-deployment
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Normal
Component: API
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Since tokens are session specific rather than page specific, it doesn't make
sense that you have to tie your request for a token to a specific page. Most
APIs that I've used with other web applications have an API command that just
returns an editing token by itself. The current method is especially
problematic when trying to get a token via JSON since you have to know the page
ID beforehand: http://pastie.org/1611746 (although this could be fixed
separately)
It would be nice to be able to make a request like:
http://en.wikipedia.org/w/api.php?action=query&prop=token&format=json
and get a response like:
{"query":{"token":"0ee46bb725c621d23f55c16d0b7b3d6e+\\"}}
(The URL and response above don't distinguish token type since they are
actually all the same token.)
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l