Page MenuHomePhabricator

Allow preferred username to be ignored
Closed, ResolvedPublicFeature

Description

Requested Feature: Add a configuration variable (e.g. $wgOpenIDConnect_IgnorePreferredNameClaim) that would ignore the preferred username sent by the identity provider when formulating a username. This would enable using $wgOpenIDConnect_UseEmailNameAsUserName or $wgOpenIDConnect_UseRealNameAsUserName even if a preferred username is provided.

This functionality is actually available by setting the 'preferred_username' config variable to null or the empty string. However, that was throwing an exception, which is fixed by the attached patch.

Event Timeline

Change 936341 had a related patch set uploaded (by Cicalese; author: Cicalese):

[mediawiki/extensions/OpenIDConnect@master] Allow preferred_username config attribute to be null or blank

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

Change 936341 merged by jenkins-bot:

[mediawiki/extensions/OpenIDConnect@master] Allow preferred_username config attribute to be null or blank

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

Change 936117 had a related patch set uploaded (by Cicalese; author: Cicalese):

[mediawiki/extensions/OpenIDConnect@REL1_39] Allow preferred_username config attribute to be null or blank

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

Change 936118 had a related patch set uploaded (by Cicalese; author: Cicalese):

[mediawiki/extensions/OpenIDConnect@REL1_40] Allow preferred_username config attribute to be null or blank

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

cicalese claimed this task.

Change 936117 merged by jenkins-bot:

[mediawiki/extensions/OpenIDConnect@REL1_39] Allow preferred_username config attribute to be null or blank

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

Change 936118 merged by jenkins-bot:

[mediawiki/extensions/OpenIDConnect@REL1_40] Allow preferred_username config attribute to be null or blank

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