Example of Authentication and Authorization Using AngularJS and Sinatra