更新时间:2023-12-03 10:16:34
我最终根据我在网上找到的一些建议(请参阅最后的参考链接)推出了自己的解决方案.
I ended up rolling my own solution based on a few suggestions that I found on the web (see reference links at the end).
@keighl 的这个 GitHub Gist 是我的开始,这是迄今为止我发现的***的例子:https://gist.github.com/4336694
Railscast:保护 API:http://railscasts.com/episodes/352-securing-an-api
Railscast: Securing an API: http://railscasts.com/episodes/352-securing-an-api