【文件属性】:
文件名称:moguera-authentication:简单的 API 认证
文件大小:19KB
文件格式:ZIP
更新时间:2021-06-24 14:32:18
Ruby
Moguera::身份验证
简单的 REST API 身份验证。
要求
Ruby 2.1+
安装
将此行添加到应用程序的 Gemfile 中:
gem 'moguera-authentication'
然后执行:
$ bundle
或者自己安装:
$ gem install moguera-authentication
认证逻辑
使用参数
access_key
secret_access_key
request_path (env['REQUEST_PATH'])
request_method (env['REQUEST_METHOD'])
http_date (env['HTTP_DATE'])
content_type (env['CONTENT_TYPE'])
string_to_isgn = access_key + request_path + requ
【文件预览】:
moguera-authentication-master
----.gitignore(147B)
----sample()
--------config.ru(517B)
--------client-faraday.rb(624B)
--------credential.json(25B)
--------Gemfile(76B)
--------server.rb(888B)
--------client.rb(962B)
----.rspec(30B)
----moguera-authentication.gemspec(1KB)
----.travis.yml(80B)
----LICENSE.txt(1KB)
----spec()
--------rack()
--------authentication()
--------shared_context.rb(636B)
--------spec_helper.rb(627B)
----README.md(4KB)
----.coveralls.yml(24B)
----lib()
--------rails()
--------rack()
--------faraday()
--------moguera()
----Gemfile(263B)
----Rakefile(247B)