MediaWiki API help
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
V6e a-1a t1o-f4r a12n (O2H) t3n.
Specific parameters:
Other general parameters are available.
- user
U2r t0o v6e t3n f1r. D6s t0o t1e c5t u2r.
- T2e: user, b0y a1y o0f u2r n2e, I0P, I0P r3e a1d i7i n2e (e-1e.g-1g. "p4x>E9e")
- totp
- Deprecated.
T1o-f4r a12n (O2H) t3n. L4y, u1e "d2a" p3m i5d
- data
J2N e5d d2a e6d b0y t1e m4e c7y a7d f1r t1e u2r b3g a11d
- token
A "csrf" token retrieved from action=query&meta=tokens
- This parameter is required.
Examples:
- V6e a-1a t3n f1r t1e c5t u2r
- api.php?action=oathvalidate&totp=123456&token=123ABC [open in sandbox]
- V6e a-1a t3n f1r t1e u2r E5e
- api.php?action=oathvalidate&user=Example&totp=123456&token=123ABC [open in sandbox]
- V6e J2N d2a f1r u2r E5e
- api.php?action=oathvalidate&user=Example&data={"token":"123456"}&token=123ABC [open in sandbox]