Ruby Support

From RavenWiki
Jump to navigationJump to search
The Raven-related software described on this page is NOT supported or maintained by University Information Services. It is provided here in the hope that it may be useful, but it may contain bugs and security vulnerabilities. It may be supported and maintained by others. You should evaluate whether it meets you particular needs before using it.

CGI

raven.rb is a Ruby library implimented by Thomas Counsell ( tamc2@cam.ac.uk) that allows a Ruby CGI program to protect itself using Raven. It is currently a beta release.

I also have ruby scripts to authenticate via raven using a webrick server and for ruby on rails applications. Contact tamc2 if you need them (I will clean them up and post them at some point).

Furthermore, I have various ruby on rails sites working with Raven. Contact tamc2 if you would like to see the code.

Ruby on Rails

There is an OmniAuth strategy written by Charlie Jonas (charlie@charliejonas.co.uk) for authenticating against Raven available on RubyGems under the name omniauth-ucam-raven. The code and documentation are available on Github.

This is primarily intended for use with the Ruby on Rails framework, however it should also work well for Sinatra applications and anything which utilises Rack middleware.