ruby authentication module for RestAuth