Skip to content

Single Sign On

Edward Hibbert edited this page Apr 14, 2021 · 1 revision

We have listeners set up to integrate between Restarters and the Wiki:

  • LogInToWiki creates a wiki user corresponding to the Restarters user.
  • ChangeWikiPassword changes the wiki user's password when we change the Restarters password.

Troubleshooting

Occasionally these can get out of step. For example:

  • Some early users had separate wiki accounts.
  • Mediawiki blocks commonly used passwords, so if someone uses one of those the wiki change of password will fail.

The consequence of this is that SSO doesn't work and the user isn't logged in to the wiki. You can manually fix this by setting the passwords to be in sync.

For restarters:

  • php artisan tinker
  • $user = App\User::where('email', '[email protected]')->first();
  • $user->password = Hash::make('password');
  • $user->save();

For the wiki:

  • `select user_name from mw_user where user_email = '[email protected]';
  • cd /srv/users/serverpilot/apps/wiki/public
  • php7.4-sp maintenance/changePassword.php --user=USERNAME --password=PASSWORD

You can need to find the username corresponding to the email

Clone this wiki locally