If not available or not applicable to the client, the login action may be used with bot passwords. In other languages Add links.
Basics All Query modules Get properties of pages List pages matching a criterion Get module parameters information Get meta information about the wiki and user Authentication Get tokens for data modifying operations Login Logout Assert user Accounts and Users Create an account Block or unblock a user Get the current user's watchlist as a feed Change user options Change user group membership Send an email Page Operations Parse content of a page Create and edit a page Upload a file Import a page Delete a page Watch or unwatch a page Purge cache for page s Rollback a page Move a page Patrol a page or revision Restore revisions of a deleted page Change a page's protection level Change a page's language More...
Using the main account for login is not supported.
Bot and other non-interactive applications should use owner-only OAuth consumers if available as it is more secure. Retrieved from " https: Sending post request to login This demo app uses Flask a Python web development framework.
Now the client needs to ask the user to check their two-factor authentication app for the current code, and submit that back to the server to continue the authentication process.
Step 3: Other languages:. Interactive applications such as custom editors or patrolling applications that provide a service without intending to fully replace the website or mobile apps that aim to completely replace access to the web-based user interface should use the clientlogin action.
Logging in and remaining logged in requires correct HTTP cookie handling by your client on all requests. Obtain token login in the request above via API: As of MediaWiki 1. The client would be expected to redirect the user's browser to the provided redirecttarget.