Page MenuHomePhabricator

Add AuthPlugin::getCanonicalName method
Closed, ResolvedPublic

Description

Problem: auth plugins don't have the ability to provide canonical form for user
name (primary proper case) before a new account is created.

This patch adds a new method AuthPlugin::getCanonicalName($username), which gets
called from
User::newFromName. That'll gives any AuthPlugin extension a crack at munging
the name just before an account is created.

Will attach patch after submitting.


Version: unspecified
Severity: normal

Details

Reference
bz2943

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:43 PM
bzimport set Reference to bz2943.
bzimport added a subscriber: Unknown Object (MLST).
RobLa created this task.Jul 23 2005, 9:08 PM
RobLa added a comment.Jul 23 2005, 9:09 PM

Created attachment 739
Patch described in bug 2943

Attached:

brion added a comment.Jul 24 2005, 9:49 AM

Applied to HEAD.

I had vaguely recalled in a conversation with someone (@bd808 perhaps?) that "I think getCanonicalName is my fault". This may be my earliest contribution to MediaWiki (which I rediscovered via git as e4480a80afb7).

I added this when I was trying to make it possible for Bugzilla and MediaWiki to share an auth system (via OpenID). There's more info about this on Mozilla's wiki: https://wiki.mozilla.org/Bugzilla:OpenID_Auth_Plugin