API:Manage authentication data

From MediaWiki.org
Jump to navigation Jump to search
Other languages: English

Parameters[edit]

  • changeauthrequest: see below
  • changeauthtoken: see below
  • *: see below

Example[edit]

Possible errors[edit]


action=changeauthenticationdata (changeauth)

(main | changeauthenticationdata)
  • This module requires read rights.
  • This module requires write rights.
  • This module only accepts POST requests.
  • Source: MediaWiki
  • License: GPL-2.0-or-later

Change authentication data for the current user.

Parameters:
changeauthrequest

Use this authentication request, by the id returned from action=query&meta=authmanagerinfo with amirequestsfor=change.

This parameter is required.
changeauthtoken

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

This parameter is required.
*
This module accepts additional parameters depending on the available authentication requests. Use action=query&meta=authmanagerinfo with amirequestsfor=change (or a previous response from this module, if applicable) to determine the requests available and the fields that they use.