# Ofline OpenID Development

**URL:** <https://www.ruby-forum.com/t/ofline-openid-development/112751>\
**Category:** Rails\
**Created:** [August 22, 2007, 9:25pm UTC](https://www.ruby-forum.com/t/ofline-openid-development/112751 "2007-08-22T21:25:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidtl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/35a633/32.png) [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Post date:** [August 22, 2007, 9:25pm UTC](https://www.ruby-forum.com/t/ofline-openid-development/112751/1 "2007-08-22T21:25:13Z")

</div>

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/](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.

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.) 😉

Ideas?

Thanks, guys.

–  
David Andrew T.  
[http://dathompson.blogspot.com](http://dathompson.blogspot.com)

---

<div class="post-metadata">

**Author:** ![davidtl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/35a633/32.png) [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Post date:** [August 23, 2007, 9:29am UTC](https://www.ruby-forum.com/t/ofline-openid-development/112751/2 "2007-08-23T09:29:49Z")

</div>

David Andrew T. 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/](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

---

<div class="post-metadata">

**Author:** ![davidtl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/35a633/32.png) [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Post date:** [August 24, 2007, 10:07pm UTC](https://www.ruby-forum.com/t/ofline-openid-development/112751/3 "2007-08-24T22:07:08Z")

</div>

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](http://www.ibm.com/developerworks/web/library/wa-rails4/?ca=dgr-btw01RORTesting#N1014D)
