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.

  • email
  • Print
  • Twitter
  • Identi.ca
  • del.icio.us
  • Facebook
  • Digg
This entry was posted in General and tagged OpenID, WordPress, WordPress MU, WPMU. Bookmark the permalink.

29 Responses to WordPress MU + OpenID

  1. Thanks a lot for your work on this Jeff!

  2. jdub says:

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

  3. Dan York says:

    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. Dan York says:

    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. jdub says:

    @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. Dan York says:

    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. Dan York says:

    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. Dan York says:

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

  9. jdub says:

    @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. jdub says:

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

  11. Dan York says:

    @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. Dan York says:

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

  13. Dan York says:

    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. jdub says:

    @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. Dan York says:

    @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. Dan York says:

    Testing with an ID from claimid.com

  17. Dan York says:

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

  18. Dan York says:

    Testing login with the full LiveJournal url.

  19. jdub says:

    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! ;-)

  20. beerfan says:

    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.

  21. Antonio says:

    i’ll try it too, thanks

  22. 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 ;)

  23. Raxit says:

    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

  24. joseph mcnally says:

    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.

  25. Gray says:

    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…

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Comments will be sent to the moderation queue.