Sinatra - API - Authentication

Viewed 14780

We going to develop a little API application in Sinatra. What are the authentication options available to secure the API calls?

3 Answers

Update

Nowadays Token Based Authentication are getting popular. I'd recommend to use the ruby implementation of the JWT Standard by ruby-jwt for simple authentication and authorization.

gem 'jwt'
Related