WordPress MU + OpenID

WordPress MU + Open ID

After quite a bit of work, WP-OpenID is now ready for WPMU! Always wanted your WPMU install to consume OpenID for logins and comments? Now it can!

I am already running this modified version on blogs.gnome.org and perkypants.org (WPMU and WPSO respectively), in order to test the changes in both environments.

To try it out, download the WP-OpenID plugin, and follow the directions in the bug^Wpatch report. It’s a work-in-progress, but definitely ready to test.

29 Comments

  1. Posted January 11, 2008 at 01:32 | Permalink

    Thanks a lot for your work on this Jeff!

  2. Posted January 11, 2008 at 09:53 | Permalink

    @Florent Thoumie: Wow, that was quick! Let me know how it goes, particularly if you run in to any problems. :-)

  3. Posted January 12, 2008 at 01:51 | Permalink

    Sounds great! However, I just tried installing it on http://blogs.voxeo.com/ and can’t get it to work. I followed the instructions on the bottom of http://dev.wp-plugins.org/ticket/732 and can see the patched files in my mu-plugins directory. I did do the symlink from openid.php to openid/core.php. However, I don’t now see the OpenID login on my site.

    Do I need to modify our theme to use this? Since we do have our own comments.php file in our theme, I don’t know if we need to do anything there.

    Also, on that dev.wp-plugins.org page, the “attachment” takes you to a page with an HMTL-ized version of the diff file. I had to then go to the bottom of that page and download it in “Original fomat” in order to get the diff file I could use with patch.

    Looking forward to getting this working!
    Dan

  4. Posted January 12, 2008 at 01:55 | Permalink

    Hmmm… I entered in my OpenID in the website box but was then never taken to my OpenID provider to confirmallowing this site (perkypants.org) to use my identity. I also had to provide my Name and Mail, which seems redundant if I have an OpenID. (For me, part of the interest in OpenID is so that commenters *don’t* have to fill out those fields.)

    Am I missing something here? It didn’t work as I expected it would.

    Puzzled,
    Dan

  5. Posted January 12, 2008 at 02:01 | Permalink

    @Dan York: The plugin will only successfully monkeypatch themes that are based on, or similar to, Kubrick or sandbox. So yeah, you’ll probably have to muck around with your theme a bit.

    You should see the OpenID login box, though… and if you associate an OpenID with your user (Users > Your Identity URLs), you can even log in with it. :-)

    When you commented here the second time, you must’ve been logged in to your OpenID provider already, because it did work correctly (thus the OpenID logo next to your name).

    Thanks!

  6. Posted January 12, 2008 at 02:04 | Permalink

    Hmmm… curious. In my first comment, the OpenID URL I provided was for one of the blogs on my site. I’m using a *different* plugin to turn my WPMU site into a OpenID *provider*. I gave the URL of one of my blogs and it *didn’t* work here. However, I just gave the URL of my main WPMU site, blogs.voxeo.com, and I was correctly taken there to approve the access to identity information. (And I’m doing that again here with this comment.)

    What’s curious is that I *can* login to other OpenID sites using the OpenID URL of the same blog (and not the top-level site).

    Dan

  7. Posted January 12, 2008 at 02:07 | Permalink

    jdub, No, I *was* logged into my OpenID provider (my own site). With this post I’ll try again usingthe blog name as part of the OpenID URL. (And just a minute ago I tested commenting on a LiveJournal post with the exact same URL(of the blog site)( and it worked fine.)

  8. Posted January 12, 2008 at 02:09 | Permalink

    Nope, no OpenID when I use the blog name. I’ll try another. Strange, because these OpenIDs have worked fine on other sites.

  9. Posted January 12, 2008 at 02:10 | Permalink

    @Dan York: Ah, that may be due to a bug in the core of the WP-OpenID plugin at the moment — it can’t determine delegate endpoints properly, although it did a few micro releases ago. I have the same problem with perkypants.org (see link elements) vs. perkypants.org/openid (my OpenID server).

  10. Posted January 12, 2008 at 03:07 | Permalink

    Weird, but good… I’m no longer seeing any of these problems.

  11. Posted January 12, 2008 at 03:13 | Permalink

    @jdub - okay, something is wacky here now. When I enter a *valid* OpenID URL (in my case http://blogs.voxeo.com/ ) in your website field, I get sent to *your* site to login:

    http://perkypants.org/blog/wp-login.php?action=commentopenid&wordpressid=1017&redirect_to=http%3A%2F%2Fperkypants.org%2Fblog%2F2008%2F01%2F10%2Fwordpress-mu-openid%2F&janrain_nonce=2008-01-11T16%3A09%3A05Zcumsau&…..

    I never get to my OpenID provider to approve the use of the identity.

    Dan

    P.S. are you on Skype or another IM service? I’m glad to help look at the issue, but replying via blog comments doesn’t seem terribly efficient! ;-)

  12. Posted January 12, 2008 at 03:14 | Permalink

    @jdub - I’m not able to leave any comments for you now… with or without OpenID.

  13. Posted January 12, 2008 at 03:15 | Permalink

    Ha! Now I can! I’m glad to help with looking at this issue, but replying via blog comments doesn’t seem terribly efficient. Are you on Skype or other IM systems? You can contact me at “dyork@voxeo.com”

  14. Posted January 12, 2008 at 03:17 | Permalink

    @Dan York: I did a bit of version switching over the last half hour, to see what was going on. Should be working now.

  15. Posted January 12, 2008 at 03:27 | Permalink

    @jdub, Now when I try to login with a valid OpenID URL, I get redirected to login at *your* site. The URL starts like this:

    http://perkypants.org/blog/wp-login.php?action=commentopenid&wordpressid=1017&redirect_to=http%3A%2F%2Fperkypants.org%2Fblog%2F2008%2F01%2F10%2Fwordpress-mu-openid

    I’m glad to send you the whole URL in email.

    The net is that I never get to my site to approve use of my identity. (Hmm… actually, I’ve *already* approved use of my identity for this site - and I’m logged into that site.)

  16. Posted January 12, 2008 at 03:50 | Permalink

    Testing with an ID from claimid.com

  17. Posted January 12, 2008 at 03:52 | Permalink

    Hmmm… I used the wrong URL… let’s try this one.

  18. Posted January 12, 2008 at 03:53 | Permalink

    Testing login with the full LiveJournal url.

  19. Posted January 12, 2008 at 08:43 | Permalink

    Cool. Thanks.

  20. Posted January 12, 2008 at 09:12 | Permalink

    For those playing along at home, the bugs Dan kept hitting on this website were a result of running the WPMU-ready version of WP-OpenID on WordPress standalone (WPSO).

    I want to make sure the plugin works correctly with both versions, so while it’s doing fine on my WPMU test site and blogs.gnome.org, I have some work to do fixing it up on WPSO.

    The irony… I spent a lot of time porting it to WPMU, and now I have to port it back again! ;-)

  21. beerfan
    Posted January 13, 2008 at 07:34 | Permalink

    Awesome stuff jdub!

    That trac system doesn’t allow creating an account so I’ll comment here. The javascript part of the plugin wasn’t working for me either so I renamed the “files” directory to “resources” and updated js_setup() and style() in interface.php to point to that path. The use of javascript to modify the comment form and such is extremely undesirable though (because javascript is not required to login with openid and because it adds several more files/server connections to the page) so I’ll probably update the few themes we use instead before I deploy the plugin.

  22. Posted January 18, 2008 at 03:17 | Permalink

    i’ll try it too, thanks

  23. Posted February 12, 2008 at 16:59 | Permalink

    Thanks a lot

  24. Posted February 12, 2008 at 17:02 | Permalink

    Test

  25. Posted February 20, 2008 at 00:46 | Permalink

    congratulations jdub, it’s a great plugin. It was almost exactly the plugin I needed some months ago:

    http://wordpress.org/support/topic/150099?replies=5

    I made a small plugin for WPMU that allows providing an OpenID URL during registration, since the blogs I’m integrating with bigger webapps are exclusively ‘OpenID-enabled’. (Unfortunately, it’s impossible to have a totally OpenID-enabled blog without hacking the WP original code.)

    It’s just an idea for enhancing your plugin. I won’t publish my code, since it’s pretty ugly - I’m not too experienced with PHP & WordPress.

    Thanks for the plugin, and keep coding, it helps people a lot ;)

  26. Posted February 20, 2008 at 03:30 | Permalink

    testing :)

  27. Posted February 20, 2008 at 03:36 | Permalink

    Hi,

    I want to enable my site [wpmu] also open-id enable but want to restrict openid server from few Trusted list only.

    Is that possible.?

    -Raxit

  28. joseph mcnally
    Posted June 1, 2008 at 07:48 | Permalink

    Hi Jeff,

    do you have a compiled version of your edits of WP-OpenID-for-MU for those of us who don’t really know code?

    thanks..
    j.m.

  29. Gray
    Posted July 31, 2008 at 04:32 | Permalink

    after an hour, i only realized we had to edit the plugin for it to work with WPMU. but from this post, i assumed the plugin could automatically support both… “now ready”.

    and i agree with Joseph, can you provide the files to simply overide? otherwise everyone has to replicate your instructions…

3 Trackbacks

  1. […] As I noted in my last post about OpenID, the second and more difficult aspect of implementing OpenID is to enable this site to accept OpenID logins for comments. In the comments to that post, Jeff Waugh replied today indicating that he had ported WP-OpenID over to WordPress MU. […]

  2. […] 2 - WordPress MU + OpenID […]

  3. By TechLog: comunicazione di “servizio” on April 24, 2008 at 04:21

    […] funzionare WP Super Cache (che con Netsons ha dato un po’ di problemi), e ho in programma di abilitare anche OpenID. Se e quando avrò finito, scriverò senz’altro qualche post al […]

Post a Comment

Your email is never shared. Required fields are marked *

*
*

Comments will be sent to the moderation queue.