A few caveats when running the ruby-openid server
ruby-openid comes with a sample Rails server and a consumer. However, the server has a few bugs out of the box. First, the server uses @params and @session, rather than the `params` and `session` methods respectively. This can be fixed with a simple search and replace. I was also getting the following errors:
TypeError (can't dump TCPSocket)
At this point I just decided to generate a new rails app, and copy over the relevant files from the server app included in the download. That eliminated those errors.
Finally, when I created an account on the server, and attempted to verify said account with the consumer, I was getting this error in the flash message:
As Zach Holt discovered this is the product of mongrel returning an incorrect status in the header. ulfurinn goes on to discover that the problem stems from the use of the depreciated `render_text` method in ServerController#render_response. The solution is to replace
with
And you should be in business.
Comments