Даведка MediaWiki API

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=oathvalidate

(main | oathvalidate)
  • This module is internal or unstable. Its operation may change without notice.
  • This module requires read rights.
  • This module only accepts POST requests.
  • Source: OATHAuth
  • License: GPL-2.0-or-later AND GPL-3.0-or-later

Праверыць токен двухфактарнай аўтэнтыфікацыі (OATH).

Parameters:
user

Удзельнік, для якога трэба праверыць токен. Дапомна — цяперашні ўдзельнік.

Тып: карыстач, любым з імя карыстача, IP, IP-дыяпазон і імя інтэрвікі (напр., "прэфікс>імя прыкладу")
data

JSON encoded data expected by the module currently activated for the user being authenticated

This parameter is required.
token

A "csrf" token retrieved from action=query&meta=tokens

This parameter is required.
Прыклады:
Праверыць зьвесткі JSON для цяперашняга ўдзельніка
api.php?action=oathvalidate&data={"token":"123456"}&token=123ABC [open in sandbox]
Validate JSON data for user Example
api.php?action=oathvalidate&user=Example&data={"token":"123456"}&token=123ABC [open in sandbox]