1

I am developing an App for iphone,android using PhoneGap for the client side. On the server side, i have a Restful API with Sinatra/Ruby(Not Rails). The App is free and anyone can access the services but i need to make sure the minimal level of security is implemented so my API is available 24/7.

I heard about oAuth but i am not sure if that is the way to go.

Maverick
  • 1,293
  • 1
  • 19
  • 39

1 Answers1

0

oAuth is a standard for authorization across different authorization domains (e.g. between services) and is probably not what you want.

The easiest way to secure a REST API is the usage of HTTPS. To secure Sinatra have a look at How to make Sinatra work over HTTPS/SSL?

Community
  • 1
  • 1
Florian Feldhaus
  • 5,567
  • 2
  • 38
  • 46