Update (2006-10-09): This has been supplanted by the WPOpenID plugin.
Threw together a quick’n'dirty plugin for Wordpress this afternoon, now accepting arbitrary local account creation for OpenID identities. Anyone with an LJ or other OpenID server should be able to login and comment on this post.
Update: As requested, you can download the wordpress openid plugin source. This should be decompressed into the /wp-content/plugins directory, yielding 2 files, wp-openid.php and config/consumer_class.php.
config/consumer_class.php is my set of classes which implement an OpenID consumer. Based heavily on the structure of Brad’s perl implementation. Requires the HTTP Pear package. Does not implement Diffie-Hellman.
wp-openid.php hooks into Wordpress to provide the login form and authentication.
12 Comments
Posting comment using my livejournal account.
I am a potateo salad! *poing!* Stay good! Stay good!
i figured it out
Hmmmm. But I don’t want to fill in an e-mail address :P.
Besides that, this is a nice feature.
I do however question the need to create a user beyond allowing them to specify real name/nick name/etc.
I know you have to store the relation between the ID and the nickname somehow, so you’re on the right track, but I think the WP user profile page is just a bit too much.
With the (seeming) limitations of Wordpress’ non-extensable user authentication methodology, I’m not sure where to go from here.
I like your OpenID implementation. Would you mind sharing the code? I’m a pretty bad coder; I’ve only had intro classes in Java and VB.net.. so right now this is pretty beyond me and I’ve spent a couple hours trying to figure out OpenID.
Testing new form
Testing new form #2
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis convallis. Nam odio. Nulla facilisi. Nulla placerat. Integer pulvinar tellus at turpis. Duis nec lectus eget dui interdum molestie. Quisque eros dolor, fringilla non, sagittis in, aliquet vel, tellus. Donec accumsan, nunc ut adipiscing hendrerit, diam libero vestibulum est, ut bibendum odio nulla ac arcu. Fusce varius leo. Vestibulum sed lectus tempor purus dignissim rutrum. Vestibulum malesuada dictum enim. Etiam bibendum lorem quis libero. Etiam pretium pretium leo.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis convallis. Nam odio. Nulla facilisi. Nulla placerat. Integer pulvinar tellus at turpis. Duis nec lectus eget dui interdum molestie. Quisque eros dolor, fringilla non, sagittis in, aliquet vel, tellus. Donec accumsan, nunc ut adipiscing hendrerit, diam libero vestibulum est, ut bibendum odio nulla ac arcu. Fusce varius leo. Vestibulum sed lectus tempor purus dignissim rutrum. Vestibulum malesuada dictum enim. Etiam bibendum lorem quis libero. Etiam pretium pretium leo.
This I say now.
Test55