
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.






28 Comments
Thanks a lot for your work on this Jeff!
@Florent Thoumie: Wow, that was quick! Let me know how it goes, particularly if you run in to any problems.
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
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
@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!
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
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.)
Nope, no OpenID when I use the blog name. I’ll try another. Strange, because these OpenIDs have worked fine on other sites.
@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).
Weird, but good… I’m no longer seeing any of these problems.
@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!
@jdub - I’m not able to leave any comments for you now… with or without OpenID.
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”
@Dan York: I did a bit of version switching over the last half hour, to see what was going on. Should be working now.
@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.)
Testing with an ID from claimid.com
Hmmm… I used the wrong URL… let’s try this one.
Testing login with the full LiveJournal url.
Cool. Thanks.
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!
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.
i’ll try it too, thanks
Thanks a lot
Test
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
testing
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
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.
3 Trackbacks
[…] 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 - WordPress MU + OpenID […]
[…] 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 […]