Помощ за МедияУики API
Това е автоматично генерирана страница за документация на МедияУики API.
Документация и примери: 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
Validate a two-factor authentication (OATH) token.
Parameters:
- user
User to validate token for. Defaults to the current user.
- Type: user, by any of потребителско име, IP, IP-диапазон и име на междууикито (напр. „представка>ПримерноИме“)
- totp
- Непрепоръчителен.
Маркер за двукомпонентно удостоверяване (OATH). За обратна съвместимост, вместо маркера използвайте параметъра „data“.
- data
JSON encoded data expected by the module currently activated for the user being authenticated
- token
Маркер „csrf“, получен от action=query&meta=tokens
- This parameter is required.
Примери:
- Validate a token for the current user
- api.php?action=oathvalidate&totp=123456&token=123ABC [open in sandbox]
- Validate a token for the user Example
- api.php?action=oathvalidate&user=Example&totp=123456&token=123ABC [open in sandbox]
- Validate JSON data for user Example
- api.php?action=oathvalidate&user=Example&data={"totp":"123456"}&token=123ABC [open in sandbox]