MediaWiki API help

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.
  • This module requires read rights.
  • This module only accepts POST requests.
  • منبع: OATHAuth
  • License: GPL-2.0-or-later AND GPL-3.0-or-later

Validate a two-factor authentication (OATH) token.

Parameters:
user

کاربری که بلیط برایش تأیید می‌شود. پیش‌فرض، حساب کاربری جاری است.

Type: user name
totp

بلیط اعتبارسنجی دومرحله‌ای (OATH).

This parameter is required.
token

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

This parameter is required.
Examples:
تأیید یک بلیط برای کاربر جاری
api.php?action=oathvalidate&totp=123456&token=123ABC [open in sandbox]
تأیید یک بلیط برای کاربر Example
api.php?action=oathvalidate&user=Example&totp=123456&token=123ABC [open in sandbox]