Sinatra - API - Authentication

后端 未结 3 1805
孤城傲影
孤城傲影 2020-12-22 17:28

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

3条回答
  •  鱼传尺愫
    2020-12-22 18:01

    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'
    

提交回复
热议问题