OpenID Server for MT 1.0

To go with OpenID Comments, here's OpenID Server for MT 1.0.

To install it, unzip the archive to your MT directory. (There are no static web assets to mess with.)

Before you can sign in, you have to set up your OpenID URL; I use my profile page for that right now. You can use your weblog or a similar sub-page of your site. Whatever you select, this will be the URL that shows up as your name when you sign in.

In your MT author profile, set your Website URL to your OpenID. Then, add this HTML tag to the head of the page that appears there:

<link rel="openid.server" href="<MTCGIPath>plugins/openid-server/server.cgi" />

That's it! Try to sign into LiveJournal with your new OpenID. (You'll have to sign out of your real account first, if you have one.)

This plugin uses the regular MT::App authentication, so it's much less technically interesting than OpenID Comments. However it is no less useful! OpenID Server for MT 1.0.

Comments

comment

Welp, no luck for me on the first try!

[Fri Aug 19 15:16:48 2005] [error] [client 24.94.43.3] Premature end of script headers: /home/newkaic/publichtml/mt/plugins/openid-server/server.cgi BEGIN failed—compilation aborted at /home/newkaic/publichtml/mt/plugins/openid-server/lib/MT/App/OpenID.pm line 7. BEGIN failed—compilation aborted at /home/newkaic/publichtml/mt/plugins/openid-server/lib/Net/OpenID/Server.pm line 48. Can’t locate Crypt/DH.pm in @INC (@INC contains: /home/newkaic/publichtml/mt/plugins/openid-server/lib /home/newkaic/publichtml/mt/extlib /home/newkaic/publichtml/mt/lib /usr/lib/perl5/5.8.4/i686-linux /usr/lib/perl5/5.8.4 /usr/lib/perl5/siteperl/5.8.4/i686-linux /usr/lib/perl5/siteperl/5.8.4 /usr/lib/perl5/siteperl/5.8.0 /usr/lib/perl5/siteperl .) at /home/newkaic/public_html/mt/plugins/openid-server/lib/Net/OpenID/Server.pm line 48.

I’m probably missing something pearly.

comment

Ugh, I didn’t realize it needed that module. wtf.

comment

I was actually just giving it another shot, using the OpenID signin here on your site… It came up with the MT login screen, I tried to log in and got rejected. Then I realized… I had been redirected to your MT login screen, not mine!

comment

Hello, hope you can help!

I just upgraded to MT 3.2, and saw this neat little OpenID feature (which I think is great btw, I no longer had to comment as anonymous in my friends’ LJ’s.

So anyways, I install 3.2, works great, and I install OpenID server, and it works good at first, but for some reason it just magically stopped. I’m getting this:

Your account is not authorized to assert the requested identity.

I set it up for both my root (bulius.com), as well as the direct link to my actual blog (sam.bulius.com).

Any ideas? This is driving me crazy! :( Thanks in advance.

comment

The plugin uses the Website URL in your author profile to know what URLs it can say are yours. That error means the URL you gave when signing in doesn’t match the one in your profile. The URL you put in should be either exactly the same or up one or more directories from the URL you put in.

Your Website URL should be one of these two:

http://www.bulius.com/samiam/

http://www.bulius.com/

Because OpenID consumers look at redirects, you can still sign in as sam.bulius.com, though it will show up to the consumer (like LiveJournal) as www.bulius.com/samiam/.

comment

For some reason, it’s really picky to what I put in… I put in just http://bulius.com/ then magically it works. Sorry for being a bother. And thanks for all the help!

comment

That’s all right!

Because http://bulius.com/ doesn’t redirect anywhere, if you want to sign in as bulius.com, yeah, you’d need http://bulius.com/ for the Website URL. HTH!

comment

I’m stuck in the same position. I’m the only author in my distro right now, and I made sure the URL in my author profile is set for http://www.dimensionsix.net so when I try to use www.dimensionsix.net in LJ, I get the exact same error. I even retyped the URL in my autor profile to make sure I didn’t mispell something.