Capcode-oauth-example is a project mainly written in Ruby, it's free.
Example client/server code for oauth with Ruby and Capcode
404: Not Found