For usage example with Rails, see: github.com/myfreecomm/exemplo_passaporte_web_rails_3_2