Last modified: 2014-02-06 18:50:37 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T53580, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 51580 - configure beta labs for SUL2
configure beta labs for SUL2
Status: RESOLVED FIXED
Product: Wikimedia Labs
Classification: Unclassified
deployment-prep (beta) (Other open bugs)
unspecified
All All
: High normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 48501 51622
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-17 22:28 UTC by spage
Modified: 2014-02-06 18:50 UTC (History)
10 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description spage 2013-07-17 22:28:28 UTC
With SUL2[1], after account creation you should be silently redirected back to the page you were on when you click Create account in the top right nav.  . So newly signed-up users don't see the GettingStarted "Welcome" page until E3 does some work.

Shortly after CentralAuth and the config changes (InitialiseSettings.php 'wmgCentralAuthSilentLogin' defaults to true, probably others) were deployed to the cluster, I created an account on en-beta and this didn't happen: I wound up on Special:GettingStarted.  So perhaps some additional configuration needs to happen on the beta cluster; chrismcmahon suggested I file a bug.

[1] https://www.mediawiki.org/wiki/Auth_systems/SUL2
Comment 1 Antoine "hashar" Musso (WMF) 2013-07-18 14:25:59 UTC
I have zero clue how that feature works. The only thing I can tell is that the setting is properly enabled on beta:

hashar@deployment-bastion:~$ mwscript eval.php --wiki=enwiki
return $wmgCentralAuthSilentLogin
> return $wmgCentralAuthSilentLogin
bool(true)
> 

Do you have any hint?
Comment 2 Chris Steipp 2013-07-18 16:35:44 UTC
It's 3 config flags, so it's pretty easy to setup.

$wgCentralAuthLoginWiki = 'loginwiki';
$wgCentralAuthSilentLogin = true;
$wgCentralAuthUseOldAutoLogin = false;

I meant to add a loginwiki to beta, but hadn't had the time to get that working yet, so I think that's the first step.
Comment 3 Gerrit Notification Bot 2013-07-19 19:19:42 UTC
Change 74670 had a related patch set uploaded by Hashar:
beta: creates loginwiki project

https://gerrit.wikimedia.org/r/74670
Comment 4 Gerrit Notification Bot 2013-07-19 19:20:30 UTC
Change 74670 merged by jenkins-bot:
beta: creates loginwiki project

https://gerrit.wikimedia.org/r/74670
Comment 5 Antoine "hashar" Musso (WMF) 2013-07-19 20:04:02 UTC
I have started writing a bit of documentation at:

https://wikitech.wikimedia.org/wiki/Nova_Resource:Deployment-prep/Add_a_wiki

The wiki creation fails for multiple reasons though. Will create additional bugs.
Comment 6 Antoine "hashar" Musso (WMF) 2013-07-26 10:18:22 UTC
The loginwiki has been created. I will let someone else handle the operations/mediawiki-config configuration since I have no clue how to verify it is properly working.

Seems the change mentioned by Chris in Comment #2 would be enough to enable it on beta.
Comment 7 spage 2013-07-27 02:54:32 UTC
I think you also need 
   $wgCentralAuthCookies = true;
(the default in mediawiki-config/wmf-config/CommonSettings.php) otherwise CentralAuth's onUserLoginComplete() hook does nothing.

You also have to create the centralauth database with its tables, and I think migrate account information to it.

I've done both on my local wiki and still onUserLoginComplete() fails to get the centralUser and never arrives at self::doCentralLoginRedirect().

Can someone update Extension:CentralAuth instructions?
Comment 8 Antoine "hashar" Musso (WMF) 2013-08-01 12:23:11 UTC
Seems to be important.
Comment 9 Gerrit Notification Bot 2013-08-26 23:04:17 UTC
Change 81148 had a related patch set uploaded by CSteipp:
Enable SUL2 in beta

https://gerrit.wikimedia.org/r/81148
Comment 10 Gerrit Notification Bot 2013-10-14 15:06:30 UTC
Change 81148 abandoned by Hashar:
Enable SUL2 in beta

Reason:
I am abandoning this change to reduce Gerrit dashboards noise, feel free to reopen/merge to have the function enabled.

It is not yet on beta:

 hashar@deployment-bastion:~$ mwscript eval.php --wiki=enwiki
 > return $wmgCentralAuthLoginWiki
 loginwiki
 > return $wgCentralAuthLoginWiki;
 bool(false)
 >

https://gerrit.wikimedia.org/r/81148
Comment 11 Chris Steipp 2014-02-06 18:50:37 UTC
I just checked the config, and tested in beta, and can confirm that login.wikimedia.beta.wmflabs.org is being used as the central login wiki.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links