Last modified: 2013-11-22 07:30:09 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 T58660, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 56660 - Use autocreate permission to create new users
Use autocreate permission to create new users
Status: ASSIGNED
Product: MediaWiki extensions
Classification: Unclassified
OpenID (Other open bugs)
master
All All
: Normal normal (vote)
: ---
Assigned To: T. Gries
:
Depends on:
Blocks: 9604
  Show dependency treegraph
 
Reported: 2013-11-06 09:01 UTC by Martin Kosek
Modified: 2013-11-22 07:30 UTC (History)
0 users

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


Attachments

Description Martin Kosek 2013-11-06 09:01:34 UTC
Currently, OpenID extension check and use standard 'createaccount' permission to create mediawiki users for new users coming from OpenID authenticate.

This works OK unless I want to restrict anonymous account creation only to OpenID users and do not let anonymous users to create a new user via standard New user form. I had to set $wgOpenIDLoginOnly to true to achieve what I want, but it is suboptimal because existing non-openid users are not able to authenticate without OpenID.

This could be solved by using AuthPlugin capabilities (http://www.mediawiki.org/wiki/AuthPlugin) and creating new users with 'autocreate' permission so that I can configure mediawiki to only allow auth plugins like OpenID to create new users and forbid creating new users by anonymous users.
Comment 1 T. Gries 2013-11-06 09:20:55 UTC
Hello, thanks for reporting this.

It appears to me, that your report is a duplicate or at least related to https://bugzilla.wikimedia.org/show_bug.cgi?id=54677 . Pleas can you have a look ?
Comment 2 Martin Kosek 2013-11-06 09:33:36 UTC
Not sure about Bug 54677, but 46617 looks very similar. Maybe all these 3 bugs can be fixed by subclassing of AuthPlugin and using it's capabilities.
Comment 3 T. Gries 2013-11-16 12:34:59 UTC
@Ryan, Chris, other reporters:

THIS is at least **partially** what you wanted. My invitation to code-review:
https://gerrit.wikimedia.org/r/#/c/94977/

Code is live on http://openid-wiki.instance-proxy.wmflabs.org/wiki/ .

Special:Version should show you "4.00 20131115"

Please test.
Please code-review.
Please report., if the commit already solves your problem. 

Be reminded, that commit is however not yet fully Auth-plugin compatible. (this is a goal, but cannot be done in short time, because I have to fix other pending issues, and I am alone working on that.)

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


Navigation
Links