https://bugzilla.wikimedia.org/show_bug.cgi?id=21751

           Summary: Need a way to customize default OpenID providers list
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: OpenID
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Special:OpenIDLogin has a nice set of default providers, optionally with very
attractive-looking icons for a nice layout.

I'd like to set up OpenID logins on the StatusNet wiki http://status.net/wiki/
with a handy button to authenticate against http://identi.ca/... I need to be
able to alter the set of providers to include Identi.ca and make it the
default, and possibly drop some others that are less interesting.


Unfortunately this seems very difficult to do without modifying the extension
source in several unpleasant ways:

The list of providers is built in static functions on the OpenIDProvider class,
which provide no configuration options or extension hooks -- you have to change
the source code to add or remove items.

Message keys are used to specify the login prompts, so you need to devise an
appropriate prompt string ("Log in using your Identi.ca account") and add it to
the OpenID.i18n.php file -- again, changing the source code.

If you want provider icons on, you've got some more work -- you need to modify
openid.css or otherwise find a way to add CSS to specify your icon. (The
default provider icons are also into a sprite, which seems not to come with a
script to regenerate it so it would be difficult to alter the default set
during future maintenance.)

It would be nice also to be able to have the selection default to my preferred
provider instead of the generic "OpenID" which asks you to input a full URL.
Reordering the items in the list still leaves the plain OpenID selected by
default, and removing it leaves us with an initially non-functional form.
Initial selection seems to be spread out in several places, including but not
limited to OpenIDProvider::getButtonHTML() [which sets the initial selection
state on the icon, but doesn't set up the input form right].


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to