Last modified: 2011-05-16 16:44:40 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 T20635, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 18635 - Allow to use User pages as OpenIDs even if user is using OpenID already
Allow to use User pages as OpenIDs even if user is using OpenID already
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
OpenID (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: T. Gries
http://www.mediawiki.org/wiki/Extensi...
: patch, patch-need-review
Depends on:
Blocks: 27581
  Show dependency treegraph
 
Reported: 2009-04-30 15:50 UTC by Sergey Chernyshev
Modified: 2011-05-16 16:44 UTC (History)
1 user (show)

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


Attachments
patch for (openid-php 2.2.2 and OpenID Mediawiki extension 1.16.x) 1.allow openid accounts work as openid provider url 2. fix "deprecated" error in PHP 5.3.x (5.05 KB, patch)
2011-02-13 08:21 UTC, T. Gries
Details
see bug 27581 (17.96 KB, patch)
2011-03-29 06:47 UTC, T. Gries
Details

Description Sergey Chernyshev 2009-04-30 15:50:14 UTC
Currently, users can't use their user page URLs on site A as OpenID on site B if they login to site A using OpenID - some users might want to do that for vanity purposes or whatever (because one person can have multiple OpenID URLs).

To enable this, we need:
* to have adding openid.server and openid2.provider to be independent from having an OpenID url
* to allow logging to Special:OpenIDServer same way as logging in to the web site instead of just having an option to enter password.
Comment 1 ipatrol 2010-05-31 16:28:37 UTC
I wouldn't recommend this. This isn't our job and we don't provide any uniqueness assurance. Let's stick to what we're supposed to be doing, not becoming a general web service.
Comment 2 Sergey Chernyshev 2010-05-31 20:31:00 UTC
I think you're talking about Wikimedia wikis - I agree that Wikimedia might not want to have this enabled, but other wikis might find this feature useful.
Comment 3 T. Gries 2011-02-13 08:13:59 UTC
(In reply to comment #0)
> Currently, users can't use their user page URLs on site A as OpenID on site B
> if they login to site A using OpenID - some users might want to do that for
> vanity purposes or whatever (because one person can have multiple OpenID URLs).

For openid-php-openid-782224d (taken from [1]) and OpenID-MediaWiki-1.16-r66255 [2] I created a patch which allows this per-wiki.

1. introduced a new switch
/**
 * Allow to use User pages as OpenIDs even if user is using OpenID already
 *
 * If true, users can use their user page URLs of this site A as OpenID
on another site B
 * even if user is using OpenID on A already
 * Some users might want to do that for vanity purposes or whatever
 *
 * https://bugzilla.wikimedia.org/show_bug.cgi?id=18635
 * If false, prevent serving OpenID accounts (TODO list item; done)
 *
 */
$wgOpenIDAllowServingOpenIDUserAccounts = true;

2. renamed the README file of the MediaWiki extension to
README.OpenID-mediawiki-extension - to avoid overwriting when merging with
the openid-php files, as currently suggested in the documentation

3. made everything working in MediaWiki 1.16.2 under PHP 5.3.5 (the patch fixes "Call-time pass-by-reference is deprecated" error when using in PHP 5.3.x [3])

4. complete patched code
4.1 OpenID__openid-php-openid-782224d_plus_MW1.16-r66255 (original code
from openid-php and OpenID-MW extension [1] plus [2]
4.2 OpenID (patched version; on request)
4.3 diff between 4.1 -> 4.2 (attached here)

[1] http://github.com/openid/php-openid/downloads (https://github.com/openid/php-openid/zipball/2.2.2)
[2] http://www.mediawiki.org/wiki/Extension:OpenID (r66255.tar.gz">http://upload.wikimedia.org/ext-dist/OpenID-MW1.16-r66255.tar.gz)
[3] https://github.com/openid/php-openid/issues#issue/8 "Call-time pass-by-reference is deprecated"
Comment 4 T. Gries 2011-02-13 08:18:13 UTC
correction - something went wrojng when submitting the texz
[2] r66255.tar.gz">http://upload.wikimedia.org/ext-dist/OpenID-MW1.16-r66255.tar.gz
Comment 5 T. Gries 2011-02-13 08:19:37 UTC
http://upload.wikimedia.org/ext-dist/OpenID-MW1.16- r 6 6 2 5 5 .tar.gz
Comment 6 T. Gries 2011-02-13 08:21:52 UTC
Created attachment 8137 [details]
patch for (openid-php 2.2.2 and OpenID Mediawiki extension 1.16.x)  1.allow openid accounts work as openid provider url 2. fix "deprecated" error in PHP 5.3.x
Comment 7 T. Gries 2011-03-29 06:47:10 UTC
Created attachment 8348 [details]
see bug 27581

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


Navigation
Links