Ofline OpenID Development

I am working with an app that will utilize openid as the sole authentication protocol. I’m using Ben Curtis’ Sample App as a framework, but only using the openID authentication for now.

I would like to be able to operate in the development environment completely offline, but openID relies upon the ability to authenticate via remote authentication.

Has anyone constructed a means to authenticate locally for development purposes. The openid tests use Mocha, but I want to be able to walk through the UI myself rather than stricktly relying upon the testing framework to walk through it for me.

e.g. - I want to boot Mongrel in dev env and signon to my application using an openid while being offline.

(Sure I realize that this is a bit of a violation of TDD, but as a UI guy I like to SEE how my users will experience the environment.) :wink:

Ideas?

Thanks, guys.

David Andrew Thompson wrote:

I am working with an app that will utilize openid as the sole authentication protocol. I'm using Ben Curtis' Sample App <http://www.bencurtis.com/archives/2007/07/openid-sample-application-updated/> as a framework, but only using the openID authentication for now.

I would like to be able to operate in the development environment completely offline, but openID relies upon the ability to authenticate via remote authentication.

Hi David,

You will probably need to setup a OpenID server on your computer. I have never done this, but for someone to help you it would be good to mention the platform you are developing on (Windows, Linux, OSX).

Cheers,

Anthony

If your only using the offline environment for testing, you should probably setup a set of mock objects to pretend to be the Openid responder. To be safe you’ll want a few test cases that you can run only when online to test changes to server interaction or protocol updates, but the majority of your tests can simply bump up against a mock of some kind. See the mock seciton of this IBM article [1] for a brief intro.

Rob

[1] http://www.ibm.com/developerworks/web/library/wa-rails4/?ca=dgr-btw01RORTesting#N1014D