Page MenuHomePhabricator

Support signup mode in SUL3 local login
Closed, ResolvedPublic

Description

In SUL3 mode, the local wiki always uses login; signup happens on the central wiki/domain. That means the signup link must point to Special:Userlogin, and the local authentication provider must redirect to Special:CreateAccount instead of Special:Userlogin on the central domain (and the process of redirecting back must still work).

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

This can be done with a bunch of hooks, but I wonder if there's a nicer way where AuthManager can somehow detect that the site uses a remote identity provider and automatically generates the signup link like that. We do something similar already to hide the signup link when no provider supports it (see the calls to AuthManager::canCreateAccounts() in SkinTemplate) but currently that does not have the concept of providers which cannot create accounts but can autocreate them.

Change #1059886 had a related patch set uploaded (by D3r1ck01; author: Derick Alangi):

[mediawiki/extensions/CentralAuth@master] SUL3: Modify signup link in SUL3 mode to point to shared domain

https://gerrit.wikimedia.org/r/1059886

DAlangi_WMF changed the task status from Open to In Progress.Aug 5 2024, 1:08 PM
DAlangi_WMF claimed this task.
DAlangi_WMF moved this task from Soon to Current Sprint on the MediaWiki-Platform-Team board.

Change #1059886 abandoned by D3r1ck01:

[mediawiki/extensions/CentralAuth@master] SUL3: Modify signup link in SUL3 mode to point to shared domain

Reason:

Taking a different approach.

https://gerrit.wikimedia.org/r/1059886

Change #1070959 had a related patch set uploaded (by D3r1ck01; author: Derick Alangi):

[mediawiki/extensions/CentralAuth@master] SUL3: Support signup/account creation in SUL3 mode

https://gerrit.wikimedia.org/r/1070959

Change #1070959 merged by jenkins-bot:

[mediawiki/extensions/CentralAuth@master] SUL3: Support signup/account creation action in SUL3 mode

https://gerrit.wikimedia.org/r/1070959

Change #1097354 had a related patch set uploaded (by Gergő Tisza; author: Gergő Tisza):

[mediawiki/extensions/CentralAuth@master] Preserve common parameters during SUL3 signup -> login redirect

https://gerrit.wikimedia.org/r/1097354

Change #1097354 merged by jenkins-bot:

[mediawiki/extensions/CentralAuth@master] Preserve common parameters during SUL3 signup -> login redirect

https://gerrit.wikimedia.org/r/1097354