Coldfusion OpenID Consumer Actionpack for ModelGlue

For those of you who haven’t been listening, OpenID seems to be hitting a tipping point lately — with the developer/tech savvy crowd that is. ClaimID reported 10,000 users a month ago, OpenID posts on Digg have hit the homepage three times in the last week too! Once for a screencast showing some openID logins, another by SixApart about it’s growing momentum and the one that I added to my blog right away about How to turn your blog in to an OpenID. It’s too early to see the results of this saturation to the community overnight (except perhaps if you’re an openID Server), but people and developers are taking notice. As a long time Livejournal user, I’d been exposed to it, but only recently started to appreciate it myself.

Well the Coldfusion community is taking notice too! There are a handful of full consumer/clients out there, but none for Coldfusion. The java one is open source though, so writing a Coldfusion wrapper for it wouldn’t be reinventing the wheel, and assuming the interface stays the same, we’d benefit from all their future development.

But in the meantime, I’ve been messing around with creating an OpenID consumer in Coldfusion as a ModelGlue Actionpack. It’s coming along nicely so far, but it’s far from completed or polished. The actual coding required to make an OpenID Consumer is surprisingly easy though:

That probably sounds like a lot of work, but each of the requests is extremely simple. It’s also stateless, so any request can happen at any time. The actionpack takes in a few coldspring parameters, such as what event to send the user to if they deny (cancel) or approve, which fields to make optional, which to make required, and the http timeout. Basically adding a message broadcast to any event of “openidVerify” is all that’s needed, assuming a field of “openid_url” is available (the openid standard for this form field name). You can read the actionpack install file for more details. After a successful lookup, the actionpack will throw a structure in the viewstate with all data provided by the OpenID server easily available. Screenshot below to make things easier. I’m still working on this myself, but would love to create a full server/client in Coldfusion. First steps taken!

No zip’d up download at the moment, but it’s in my public repository under /modelglue/actionpacks/openid and /modelglue/modelgluesamples/openid.
OpenID Login screenOpenID Approved Screen

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments

[...] OpenID Project on RiaForge Published January 18th, 2007 in None, Coldfusion and Identity. Tags: Coldfusion, OpenID. Looks like OpenID is getting a little more attention in the Coldfusion community! There’s been a few questions about it on the CF Talk, the OpenID actionpack for Model Glue and now a RiaForge project! Dmitry Yakhnov has started an OpenID project on Riaforge containing a full OpenID consumer and an example. It’s a lot easier to read over to get an understanding of how OpenID works than my actionpack, as the files are more easily traceable without the disguise of a framework. It helped hammer out how to do the verification call to the server, which I had previously misread as a GET request when it should be a POST. [...]

Hi ,I want user information from openid server to store in my local database.But for this i am unable to download your actionpack install file.404 error is coming when i am downloading the file.

@Sanjeet
Sorry about that! Decided to reorganize my repo so it was only a matter of time before something like that happend. Links should be fixed now. However this example doesn’t include the second contact to the openID server to verify the information, so i’d only use it as a starter point for actionpacks. Something like the OpenID project on Riaforge.org is a little more complete at this point I believe.

[...] to one new project I’m very interested in. CFOpenID, not to be confused with OpenID or the OpenID Actionpack for Model-Glue, is a new project released January 18th, 2007 which managed to stay under the radar. Unfortunately [...]

Any updates on getting this thing ready for Openid 2.0? Running in a few issues with the 1.0 standards.

Regards

@Grover
Sorry, it’s fallen quite a bit behind. It was more a proof of concept than an entire 1.0 implementation anyways. There are other projects on Riaforge that offer a little more functionality for this, aalthough they’re implemented as their own projects rather than plugins so they reach a wider crowd.

Leave a comment

(required)

(required)