token_auth_sample_app:使用 simple_authentication_token gem 的替代方法

时间:2021-06-04 21:29:13
【文件属性】:
文件名称:token_auth_sample_app:使用 simple_authentication_token gem 的替代方法
文件大小:431KB
文件格式:ZIP
更新时间:2021-06-04 21:29:13
Ruby 为什么 该回购包含大量使用基于一个简单的令牌认证策略一个示例应用程序通过创造者和Rails的核心贡献者 。 该应用程序试图替换我使用,我认为它必须用于如此简单和容易的任务的方式是一种矫枉过正。 导致我发表它的讨论从开始。 如何 启动并运行 PostgreSQL 服务器: postgres -D /usr/local/var/postgres 确认规格为绿色: bundle exec rspec spec 启动 Rails 服务器: bundle exec rails s 创建用户: $:> curl -X POST http://localhost:3000/users -H 'Content-Type: application/json' -d '{ "user": { "username": "danserrano", "password": "dani1234",
【文件预览】:
token_auth_sample_app-master
----log()
--------.keep(0B)
----bin()
--------rake(90B)
--------setup(805B)
--------rails(145B)
--------bundle(129B)
----vendor()
--------assets()
----config()
--------locales()
--------database.yml(3KB)
--------initializers()
--------application.rb(1KB)
--------routes.rb(2KB)
--------boot.rb(132B)
--------secrets.yml(964B)
--------environment.rb(150B)
--------environments()
----db()
--------seeds.rb(343B)
--------migrate()
--------schema.rb(2KB)
----Rakefile(249B)
----app()
--------models()
--------assets()
--------controllers()
--------views()
--------mailers()
--------helpers()
----Gemfile(998B)
----Gemfile.lock(5KB)
----tmp()
--------cache()
----spec()
--------acceptance()
--------support()
--------acceptance_spec_helper.rb(127B)
--------integration_spec_helper.rb(354B)
--------rails_helper.rb(487B)
--------integration()
--------spec_helper.rb(288B)
----lib()
--------tasks()
--------assets()
--------repositories()
----public()
--------404.html(2KB)
--------robots.txt(202B)
--------500.html(1KB)
--------422.html(2KB)
--------favicon.ico(0B)
----README.md(2KB)
----config.ru(153B)

网友评论