Login with Wikimedia lets people sign in to your Wikibase with the same Wikimedia account they use on Wikidata, Wikipedia, and other Wikimedia projects. It gives members of the Wikimedia community a familiar way to participate without creating and managing another password.
The first time someone uses this option, Wikibase Suite (WBS) creates a corresponding local account for them.
[!IMPORTANT] By default, enabling Login with Wikimedia allows anyone with a Wikimedia account to create a local account and log in to your Wikibase. If you want to enable Wikimedia login without automatically granting access to new users, follow Require an existing local account.
You need a Wikimedia account to register the OAuth consumer. Your WBS instance must be available over HTTPS, and you need access to the .env file in your WBS directory.

Describe your Wikibase in the required fields:
In OAuth “callback” URL, enter:
https://<your-wikibase-host>/w/index.php?title=Special:PluggableAuthLogin
Replace <your-wikibase-host> with your Wikibase hostname.

Copy the consumer token and secret token shown after the consumer is created.
[!WARNING] Store the secret token securely. Do not share it or commit it to version control.
If you have not already, log in to your server and change to your WBS directory.
In the .env file in your WBS directory, add the credentials returned by Wikimedia:
WIKIMEDIA_OAUTH_CONSUMER_TOKEN=<your-consumer-token>
WIKIMEDIA_OAUTH_SECRET_TOKEN=<your-secret-token>
Apply the new configuration:
docker compose up -d
Open the login page on your Wikibase and confirm that Login with Wikimedia appears below the standard login form.
Select Login with Wikimedia and complete the Wikimedia authorization flow. Confirm that you return to your Wikibase and are logged in.
By default, anyone who can authenticate with Wikimedia can create a corresponding local account on your Wikibase. You can instead require people to create a local account and link it to their Wikimedia account before using Wikimedia login.
Add the following to config/LocalSettings.php:
$wgOAuthDisallowRemoteOnlyAccounts = true;
Restart the Wikibase and job-runner services:
docker compose restart wikibase wikibase-jobrunner
A user who wants to link accounts must first log in with their local Wikibase credentials.
In Preferences, under User profile, open Manage remote accounts, then select Log in with Wikimedia.
After the accounts are linked, the user can use Login with Wikimedia for future logins.