phpBB

Verified working

Login con TuServerMU for phpBB

A proper extension for phpBB 3.3. It adds a “Login con TuServerMU” button to the navbar, then links an existing member by email or creates one, and signs them in. Built on phpBB's extension system (controller routes + template events), installed from the ACP. Tested end-to-end and working.

The button, live on a phpBB board

Login con TuServerMU on a phpBB board navbar

Download the extension

Copy ext/tsm/sso/ into your board's ext/, then enable it in the ACP.

login-con-tuservermu-phpbb.zip

1 Register your app

At Account → OAuth apps, create a Confidential app with redirect URI:

https://your-board.com/app.php/sso/callback

2 Install & enable

Copy ext/tsm/sso/ into your board's ext/ folder, then ACP → Customise → Manage extensions → Enable “Login con TuServerMU”. (Or CLI: php bin/phpbbcli.php extension:enable tsm/sso.)

3 Configure

Set your credentials (read from config):

php bin/phpbbcli.php config:set tsm_sso_client_id YOUR_CLIENT_ID
php bin/phpbbcli.php config:set tsm_sso_client_secret YOUR_CLIENT_SECRET

The button appears in the navbar for logged-out visitors.

How it works

  • /app.php/sso/login - controller route; sends the member to TuServerMU (Auth Code + PKCE).
  • /app.php/sso/callback - exchanges the code, reads the profile, links the member by email or creates one with user_add(), then logs them in with session_create().

Run the board on PHP 7.2–8.4 (not 8.5 yet). Web-login integration; for in-game MEMB_INFO provisioning use the WebEngine / MuWeb plugins.

Questions? [email protected] · Full OIDC docs

Latest across the ecosystem