Recovery API on Rails 3

How do I create an untrusted API in a rails 3 application? I would also like to know if there is a good way to implement quiet authentication.

+4
source share
4 answers

Restful API on rails 3? The rails are calm .. just use the routes [ guide ]

Regarding authentication, I highly recommend devise . This is also the only thing that I managed to get on rails 3.

+7
source

If you are looking for a way to authenticate applications using your API, look at the restful_api_authentication stone - https://rubygems.org/gems/restful_api_authentication

+2
source

The easiest way to create a RESTful check in Rails is to combine a user model and a session controller. Thus, you will have new (login), creation (authentication), destruction (logout) actions in the session controller. Depending on the application, it's quite easy to write your own authentication. This screencast shows how simple it is. Authentication in Rails 3.1

+1
source

You can use grape plugin

+1
source

Source: https://habr.com/ru/post/1344218/


All Articles