Using OpenID with MediaWiki

From X-Plugins

Jump to: navigation, search
  • $wgTrustRoot wanted to be "http://x-plugins.com/" or "http://x-plugins.com/w/" to work.
    • pip.verisignlabs feedback was something like "BAD REQUEST"
    • myopenid.net feedback was far more verbose and explained what the problem was. Recommended for debugging.
  • Place the Admin folder from the PHP OpenID library archive into the root folder of Media Wiki, eg: /w/
  • A new OpenID Wiki-User account can be updated to point to an old user id. The SQL is: update user_openid set uoi_user=X;
    • The SQL to lookup the old Wiki-User ID number is: select user_id,user_name from user where user_name='Indi-';
    • Use the value from the user.user_id field to update the value of user_openid.uoi_user
mysql> select user_id,user_name from user where user_name='Indi-';
+---------+-----------+
| user_id | user_name |
+---------+-----------+
|       2 | Indi-     | 
+---------+-----------+
1 row in set (0.00 sec)