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. 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 Thompson http://dathompson.blogspot.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 On 8/23/07, Anthony Richardson <anthony-fLWHnXb90il4ktuDPxIMMA@public.gmane.org> wrote:> > > 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 > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---