# Implementing ruby-openid 2.1.6 using TDD

**URL:** <https://www.ruby-forum.com/t/implementing-ruby-openid-2-1-6-using-tdd/167786>\
**Category:** Rails\
**Created:** [May 12, 2009, 2:56pm UTC](https://www.ruby-forum.com/t/implementing-ruby-openid-2-1-6-using-tdd/167786 "2009-05-12T14:56:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 12, 2009, 2:56pm UTC](https://www.ruby-forum.com/t/implementing-ruby-openid-2-1-6-using-tdd/167786/1 "2009-05-12T14:56:41Z")

</div>

I’m trying to implement ruby-openid 2.1.6 using TDD. Many of the  
resources I’ve been using to research the plugin  
open\_id\_authentication and RESTful-authentication were written back in  
2007 and don’t work, and also don’t have a test-driven approach.

Does anyone know where I can find some good resources that would  
explain and maybe have some examples with some tests and also how they  
are getting them to pass, that is also fairly current?

I know this is a lot to ask, but thanks for trying.  
Wayne

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 13, 2009, 4:33pm UTC](https://www.ruby-forum.com/t/implementing-ruby-openid-2-1-6-using-tdd/167786/2 "2009-05-13T16:33:58Z")

</div>

On May 12, 7:55 am, “removed\_email\_address@domain.invalid”  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I’m trying to implement ruby-openid 2.1.6 using TDD. Many of the  
> resources I’ve been using to research the plugin  
> open\_id\_authentication and RESTful-authentication were written back in  
> 2007 and don’t work, and also don’t have a test-driven approach.
> 
> Does anyone know where I can find some good resources that would  
> explain and maybe have some examples with some tests and also how they  
> are getting them to pass, that is also fairly current?  
> I found this I think I’ll try and work through:

[http://railsforum.com/viewtopic.php?id=14216&p=1](http://railsforum.com/viewtopic.php?id=14216&p=1)  
Restful Authentication with all the bells and whistles (new 9/05/08)

This is a new restful authentication tutorial based the lastest  
version of the plugin and edge rails as of 9/05/08. The original  
tutorial can be found at  
[http://railsforum.com/viewtopic.php?pid=74245#p74245](http://railsforum.com/viewtopic.php?pid=74245#p74245)

The source code is now available on [github.com](http://github.com) at  
[http://github.com/activefx/restful\_auth](http://github.com/activefx/restful_auth)  
… ree/master Since this new tutorial will be less of a step by step  
instruction guide and more of an overview and description of the files  
in the application, I suggest you grab the app from github to work  
with.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 13, 2009, 5:42pm UTC](https://www.ruby-forum.com/t/implementing-ruby-openid-2-1-6-using-tdd/167786/3 "2009-05-13T17:42:47Z")

</div>

On May 13, 9:44 am, Colin L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > > open\_id\_authentication and RESTful-authentication were written back in  
> > > Is that 8th May 2009, 5th Sept 2008 or 9th May 2008?  
> > > Good point. ==\>I’m pretty sure it was May, 2008.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 13, 2009, 5:46pm UTC](https://www.ruby-forum.com/t/implementing-ruby-openid-2-1-6-using-tdd/167786/4 "2009-05-13T17:46:20Z")

</div>

Wayne - sorry I misread your post, I thought you were announcing the  
tutorial, but I realise now you were quoting someone else.  
Colin

2009/5/13 WJSimacek [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 13, 2009, 4:45pm UTC](https://www.ruby-forum.com/t/implementing-ruby-openid-2-1-6-using-tdd/167786/5 "2009-05-13T16:45:44Z")

</div>

2009/5/13 WJSimacek [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

> > Does anyone know where I can find some good resources that would  
> > explain and maybe have some examples with some tests and also how they  
> > are getting them to pass, that is also fairly current?  
> > I found this I think I’ll try and work through:
> 
> [http://railsforum.com/viewtopic.php?id=14216&p=1](http://railsforum.com/viewtopic.php?id=14216&p=1)  
> Restful Authentication with all the bells and whistles (new 9/05/08)

Is that 8th May 2009, 5th Sept 2008 or 9th May 2008?  
Colin
