Trợ giúp về API MediaWiki
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
action=oathvalidate
(main | oathvalidate)
- This module is internal or unstable. 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ố:
- user
User to validate token for. Defaults to the current user.
- Type: user name
- totp
Two-factor authentication (OATH) token.
- Tham số này là bắt buộc.
- token
A "csrf" token retrieved from action=query&meta=tokens
- Tham số này là bắt buộc.
Các ví dụ:
- 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]