Trợ giúp về API MediaWiki
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, and you should not use it. Its operation may change without notice.
- Mô đun này cần quyền đọc.
- Mô đun này chỉ có nhận các yêu cầu POST.
- Source: OATHAuth
- License: GPL-2.0-or-later AND GPL-3.0-or-later
Validate a two-factor authentication (OATH) token.
Các tham số:
Other general parameters are available.
- user
User to validate token for. Defaults to the current user.
- Kiểu: người dùng, bằng một giá trị bất kỳ trong tên người dùng, địa chỉ IP, Người dùng tạm thời, dãy địa chỉ IP và tên người dùng liên wiki (ví dụ “tiền tố>TênVíDụ”)
- 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.
Các ví dụ:
- Validate JSON data for the current user
- 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]