grape_api_signature 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.consolerc +3 -0
- data/.gitignore +23 -0
- data/.rspec +2 -0
- data/.rubocop.yml +21 -0
- data/.rubocop_todo.yml +0 -0
- data/.travis.yml +6 -0
- data/.versions.conf +4 -0
- data/Gemfile +13 -0
- data/LICENSE.txt +22 -0
- data/README.md +146 -0
- data/Rakefile +14 -0
- data/app/assets/javascripts/aws-signature.js.coffee +177 -0
- data/grape_api_signature.gemspec +54 -0
- data/lib/grape_api_signature/authorization.rb +79 -0
- data/lib/grape_api_signature/aws_auth_parser.rb +57 -0
- data/lib/grape_api_signature/aws_authorization.rb +40 -0
- data/lib/grape_api_signature/aws_digester.rb +27 -0
- data/lib/grape_api_signature/aws_request.rb +63 -0
- data/lib/grape_api_signature/aws_signer.rb +76 -0
- data/lib/grape_api_signature/middleware/auth.rb +105 -0
- data/lib/grape_api_signature/middleware/grape_auth.rb +44 -0
- data/lib/grape_api_signature/rails/engine.rb +6 -0
- data/lib/grape_api_signature/rspec.rb +49 -0
- data/lib/grape_api_signature/version.rb +3 -0
- data/lib/grape_api_signature.rb +21 -0
- data/spec/acceptance/.gitkeep +0 -0
- data/spec/acceptance/lib/grape_api_signature/aws_request_spec.rb +39 -0
- data/spec/acceptance/lib/grape_api_signature/aws_signer_spec.rb +54 -0
- data/spec/acceptance/lib/grape_api_signature/middleware/auth_spec.rb +60 -0
- data/spec/acceptance/lib/grape_api_signature/middleware/grape_auth_spec.rb +83 -0
- data/spec/acceptance/support/.keep +0 -0
- data/spec/acceptance/support/api.rb +5 -0
- data/spec/acceptance/support/aws_helper.rb +30 -0
- data/spec/acceptance/support/feature.rb +31 -0
- data/spec/acceptance_spec_helper.rb +3 -0
- data/spec/fixtures/aws4_test_suite/fail/get-header-key-duplicate.authz +1 -0
- data/spec/fixtures/aws4_test_suite/fail/get-header-key-duplicate.creq +9 -0
- data/spec/fixtures/aws4_test_suite/fail/get-header-key-duplicate.req +7 -0
- data/spec/fixtures/aws4_test_suite/fail/get-header-key-duplicate.sreq +8 -0
- data/spec/fixtures/aws4_test_suite/fail/get-header-key-duplicate.sts +4 -0
- data/spec/fixtures/aws4_test_suite/fail/get-header-value-multiline.req +7 -0
- data/spec/fixtures/aws4_test_suite/fail/get-header-value-order.authz +1 -0
- data/spec/fixtures/aws4_test_suite/fail/get-header-value-order.creq +9 -0
- data/spec/fixtures/aws4_test_suite/fail/get-header-value-order.req +8 -0
- data/spec/fixtures/aws4_test_suite/fail/get-header-value-order.sreq +9 -0
- data/spec/fixtures/aws4_test_suite/fail/get-header-value-order.sts +4 -0
- data/spec/fixtures/aws4_test_suite/fail/post-vanilla-query-nonunreserved.authz +1 -0
- data/spec/fixtures/aws4_test_suite/fail/post-vanilla-query-nonunreserved.creq +8 -0
- data/spec/fixtures/aws4_test_suite/fail/post-vanilla-query-nonunreserved.req +4 -0
- data/spec/fixtures/aws4_test_suite/fail/post-vanilla-query-nonunreserved.sreq +5 -0
- data/spec/fixtures/aws4_test_suite/fail/post-vanilla-query-nonunreserved.sts +4 -0
- data/spec/fixtures/aws4_test_suite/fail/post-vanilla-query-space.authz +1 -0
- data/spec/fixtures/aws4_test_suite/fail/post-vanilla-query-space.creq +8 -0
- data/spec/fixtures/aws4_test_suite/fail/post-vanilla-query-space.req +4 -0
- data/spec/fixtures/aws4_test_suite/fail/post-vanilla-query-space.sreq +5 -0
- data/spec/fixtures/aws4_test_suite/fail/post-vanilla-query-space.sts +4 -0
- data/spec/fixtures/aws4_test_suite/pass/get-header-value-trim.authz +1 -0
- data/spec/fixtures/aws4_test_suite/pass/get-header-value-trim.creq +9 -0
- data/spec/fixtures/aws4_test_suite/pass/get-header-value-trim.req +5 -0
- data/spec/fixtures/aws4_test_suite/pass/get-header-value-trim.sreq +6 -0
- data/spec/fixtures/aws4_test_suite/pass/get-header-value-trim.sts +4 -0
- data/spec/fixtures/aws4_test_suite/pass/get-relative-relative.authz +1 -0
- data/spec/fixtures/aws4_test_suite/pass/get-relative-relative.creq +8 -0
- data/spec/fixtures/aws4_test_suite/pass/get-relative-relative.req +4 -0
- data/spec/fixtures/aws4_test_suite/pass/get-relative-relative.sreq +5 -0
- data/spec/fixtures/aws4_test_suite/pass/get-relative-relative.sts +4 -0
- data/spec/fixtures/aws4_test_suite/pass/get-relative.authz +1 -0
- data/spec/fixtures/aws4_test_suite/pass/get-relative.creq +8 -0
- data/spec/fixtures/aws4_test_suite/pass/get-relative.req +4 -0
- data/spec/fixtures/aws4_test_suite/pass/get-relative.sreq +5 -0
- data/spec/fixtures/aws4_test_suite/pass/get-relative.sts +4 -0
- data/spec/fixtures/aws4_test_suite/pass/get-slash-dot-slash.authz +1 -0
- data/spec/fixtures/aws4_test_suite/pass/get-slash-dot-slash.creq +8 -0
- data/spec/fixtures/aws4_test_suite/pass/get-slash-dot-slash.req +4 -0
- data/spec/fixtures/aws4_test_suite/pass/get-slash-dot-slash.sreq +5 -0
- data/spec/fixtures/aws4_test_suite/pass/get-slash-dot-slash.sts +4 -0
- data/spec/fixtures/aws4_test_suite/pass/get-slash-pointless-dot.authz +1 -0
- data/spec/fixtures/aws4_test_suite/pass/get-slash-pointless-dot.creq +8 -0
- data/spec/fixtures/aws4_test_suite/pass/get-slash-pointless-dot.req +4 -0
- data/spec/fixtures/aws4_test_suite/pass/get-slash-pointless-dot.sreq +5 -0
- data/spec/fixtures/aws4_test_suite/pass/get-slash-pointless-dot.sts +4 -0
- data/spec/fixtures/aws4_test_suite/pass/get-slash.authz +1 -0
- data/spec/fixtures/aws4_test_suite/pass/get-slash.creq +8 -0
- data/spec/fixtures/aws4_test_suite/pass/get-slash.req +4 -0
- data/spec/fixtures/aws4_test_suite/pass/get-slash.sreq +5 -0
- data/spec/fixtures/aws4_test_suite/pass/get-slash.sts +4 -0
- data/spec/fixtures/aws4_test_suite/pass/get-slashes.authz +1 -0
- data/spec/fixtures/aws4_test_suite/pass/get-slashes.creq +8 -0
- data/spec/fixtures/aws4_test_suite/pass/get-slashes.req +4 -0
- data/spec/fixtures/aws4_test_suite/pass/get-slashes.sreq +5 -0
- data/spec/fixtures/aws4_test_suite/pass/get-slashes.sts +4 -0
- data/spec/fixtures/aws4_test_suite/pass/get-space.authz +1 -0
- data/spec/fixtures/aws4_test_suite/pass/get-space.creq +8 -0
- data/spec/fixtures/aws4_test_suite/pass/get-space.req +4 -0
- data/spec/fixtures/aws4_test_suite/pass/get-space.sreq +5 -0
- data/spec/fixtures/aws4_test_suite/pass/get-space.sts +4 -0
- data/spec/fixtures/aws4_test_suite/pass/get-unreserved.authz +1 -0
- data/spec/fixtures/aws4_test_suite/pass/get-unreserved.creq +8 -0
- data/spec/fixtures/aws4_test_suite/pass/get-unreserved.req +4 -0
- data/spec/fixtures/aws4_test_suite/pass/get-unreserved.sreq +5 -0
- data/spec/fixtures/aws4_test_suite/pass/get-unreserved.sts +4 -0
- data/spec/fixtures/aws4_test_suite/pass/get-utf8.authz +1 -0
- data/spec/fixtures/aws4_test_suite/pass/get-utf8.creq +8 -0
- data/spec/fixtures/aws4_test_suite/pass/get-utf8.req +4 -0
- data/spec/fixtures/aws4_test_suite/pass/get-utf8.sreq +5 -0
- data/spec/fixtures/aws4_test_suite/pass/get-utf8.sts +4 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla-empty-query-key.authz +1 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla-empty-query-key.creq +8 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla-empty-query-key.req +4 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla-empty-query-key.sreq +5 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla-empty-query-key.sts +4 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-key-case.authz +1 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-key-case.creq +8 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-key-case.req +4 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-key-case.sreq +5 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-key-case.sts +4 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-key.authz +1 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-key.creq +8 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-key.req +4 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-key.sreq +5 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-key.sts +4 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-value.authz +1 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-value.creq +8 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-value.req +4 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-value.sreq +5 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-value.sts +4 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla-query-unreserved.authz +1 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla-query-unreserved.creq +8 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla-query-unreserved.req +4 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla-query-unreserved.sreq +5 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla-query-unreserved.sts +4 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla-query.authz +1 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla-query.creq +8 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla-query.req +4 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla-query.sreq +5 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla-query.sts +4 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla-ut8-query.authz +1 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla-ut8-query.creq +8 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla-ut8-query.req +4 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla-ut8-query.sreq +5 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla-ut8-query.sts +4 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla.authz +1 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla.creq +8 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla.req +4 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla.sreq +5 -0
- data/spec/fixtures/aws4_test_suite/pass/get-vanilla.sts +4 -0
- data/spec/fixtures/aws4_test_suite/pass/post-header-key-case.authz +1 -0
- data/spec/fixtures/aws4_test_suite/pass/post-header-key-case.creq +8 -0
- data/spec/fixtures/aws4_test_suite/pass/post-header-key-case.req +4 -0
- data/spec/fixtures/aws4_test_suite/pass/post-header-key-case.sreq +5 -0
- data/spec/fixtures/aws4_test_suite/pass/post-header-key-case.sts +4 -0
- data/spec/fixtures/aws4_test_suite/pass/post-header-key-sort.authz +1 -0
- data/spec/fixtures/aws4_test_suite/pass/post-header-key-sort.creq +9 -0
- data/spec/fixtures/aws4_test_suite/pass/post-header-key-sort.req +5 -0
- data/spec/fixtures/aws4_test_suite/pass/post-header-key-sort.sreq +6 -0
- data/spec/fixtures/aws4_test_suite/pass/post-header-key-sort.sts +4 -0
- data/spec/fixtures/aws4_test_suite/pass/post-header-value-case.authz +1 -0
- data/spec/fixtures/aws4_test_suite/pass/post-header-value-case.creq +9 -0
- data/spec/fixtures/aws4_test_suite/pass/post-header-value-case.req +5 -0
- data/spec/fixtures/aws4_test_suite/pass/post-header-value-case.sreq +6 -0
- data/spec/fixtures/aws4_test_suite/pass/post-header-value-case.sts +4 -0
- data/spec/fixtures/aws4_test_suite/pass/post-vanilla-empty-query-value.authz +1 -0
- data/spec/fixtures/aws4_test_suite/pass/post-vanilla-empty-query-value.creq +8 -0
- data/spec/fixtures/aws4_test_suite/pass/post-vanilla-empty-query-value.req +4 -0
- data/spec/fixtures/aws4_test_suite/pass/post-vanilla-empty-query-value.sreq +5 -0
- data/spec/fixtures/aws4_test_suite/pass/post-vanilla-empty-query-value.sts +4 -0
- data/spec/fixtures/aws4_test_suite/pass/post-vanilla-query.authz +1 -0
- data/spec/fixtures/aws4_test_suite/pass/post-vanilla-query.creq +8 -0
- data/spec/fixtures/aws4_test_suite/pass/post-vanilla-query.req +4 -0
- data/spec/fixtures/aws4_test_suite/pass/post-vanilla-query.sreq +5 -0
- data/spec/fixtures/aws4_test_suite/pass/post-vanilla-query.sts +4 -0
- data/spec/fixtures/aws4_test_suite/pass/post-vanilla.authz +1 -0
- data/spec/fixtures/aws4_test_suite/pass/post-vanilla.creq +8 -0
- data/spec/fixtures/aws4_test_suite/pass/post-vanilla.req +4 -0
- data/spec/fixtures/aws4_test_suite/pass/post-vanilla.sreq +5 -0
- data/spec/fixtures/aws4_test_suite/pass/post-vanilla.sts +4 -0
- data/spec/fixtures/aws4_test_suite/pass/post-x-www-form-urlencoded-parameters.authz +1 -0
- data/spec/fixtures/aws4_test_suite/pass/post-x-www-form-urlencoded-parameters.creq +9 -0
- data/spec/fixtures/aws4_test_suite/pass/post-x-www-form-urlencoded-parameters.req +6 -0
- data/spec/fixtures/aws4_test_suite/pass/post-x-www-form-urlencoded-parameters.sreq +7 -0
- data/spec/fixtures/aws4_test_suite/pass/post-x-www-form-urlencoded-parameters.sts +4 -0
- data/spec/fixtures/aws4_test_suite/pass/post-x-www-form-urlencoded.authz +1 -0
- data/spec/fixtures/aws4_test_suite/pass/post-x-www-form-urlencoded.creq +9 -0
- data/spec/fixtures/aws4_test_suite/pass/post-x-www-form-urlencoded.req +6 -0
- data/spec/fixtures/aws4_test_suite/pass/post-x-www-form-urlencoded.sreq +7 -0
- data/spec/fixtures/aws4_test_suite/pass/post-x-www-form-urlencoded.sts +4 -0
- data/spec/integration/.gitkeep +0 -0
- data/spec/integration/support/.keep +0 -0
- data/spec/integration_spec_helper.rb +3 -0
- data/spec/spec_helper.rb +45 -0
- data/spec/support/.gitkeep +0 -0
- data/spec/unit/.gitkeep +0 -0
- data/spec/unit/lib/grape_api_signature/authorization_spec.rb +79 -0
- data/spec/unit/lib/grape_api_signature/aws_auth_parser_spec.rb +25 -0
- data/spec/unit/support/.keep +0 -0
- data/spec/unit_spec_helper.rb +3 -0
- data/vendor/assets/javascripts/hmac-sha256.js +18 -0
- metadata +692 -0
metadata
ADDED
@@ -0,0 +1,692 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: grape_api_signature
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Dieter Späth
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-08-07 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rack
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.3.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.3.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rack-mount
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rack-accept
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: activesupport
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 4.1.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 4.1.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: bundler
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rake
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: grape
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: grape-entity
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: thin
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rack-test
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: rspec
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - '='
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '3.0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - '='
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '3.0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: fuubar
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: pry
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: pry-remote
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: pry-stack_explorer
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: pry-byebug
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - ">="
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0'
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - ">="
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '0'
|
237
|
+
- !ruby/object:Gem::Dependency
|
238
|
+
name: guard
|
239
|
+
requirement: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - ">="
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: '0'
|
244
|
+
type: :development
|
245
|
+
prerelease: false
|
246
|
+
version_requirements: !ruby/object:Gem::Requirement
|
247
|
+
requirements:
|
248
|
+
- - ">="
|
249
|
+
- !ruby/object:Gem::Version
|
250
|
+
version: '0'
|
251
|
+
- !ruby/object:Gem::Dependency
|
252
|
+
name: guard-rspec
|
253
|
+
requirement: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
255
|
+
- - ">="
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: '0'
|
258
|
+
type: :development
|
259
|
+
prerelease: false
|
260
|
+
version_requirements: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
262
|
+
- - ">="
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: '0'
|
265
|
+
- !ruby/object:Gem::Dependency
|
266
|
+
name: guard-bundler
|
267
|
+
requirement: !ruby/object:Gem::Requirement
|
268
|
+
requirements:
|
269
|
+
- - ">="
|
270
|
+
- !ruby/object:Gem::Version
|
271
|
+
version: '0'
|
272
|
+
type: :development
|
273
|
+
prerelease: false
|
274
|
+
version_requirements: !ruby/object:Gem::Requirement
|
275
|
+
requirements:
|
276
|
+
- - ">="
|
277
|
+
- !ruby/object:Gem::Version
|
278
|
+
version: '0'
|
279
|
+
- !ruby/object:Gem::Dependency
|
280
|
+
name: rb-fsevent
|
281
|
+
requirement: !ruby/object:Gem::Requirement
|
282
|
+
requirements:
|
283
|
+
- - ">="
|
284
|
+
- !ruby/object:Gem::Version
|
285
|
+
version: '0'
|
286
|
+
type: :development
|
287
|
+
prerelease: false
|
288
|
+
version_requirements: !ruby/object:Gem::Requirement
|
289
|
+
requirements:
|
290
|
+
- - ">="
|
291
|
+
- !ruby/object:Gem::Version
|
292
|
+
version: '0'
|
293
|
+
description: Add AWS Signature 4 style authentication to grape API's.
|
294
|
+
email:
|
295
|
+
- d.spaeth@faber.de
|
296
|
+
executables: []
|
297
|
+
extensions: []
|
298
|
+
extra_rdoc_files: []
|
299
|
+
files:
|
300
|
+
- ".consolerc"
|
301
|
+
- ".gitignore"
|
302
|
+
- ".rspec"
|
303
|
+
- ".rubocop.yml"
|
304
|
+
- ".rubocop_todo.yml"
|
305
|
+
- ".travis.yml"
|
306
|
+
- ".versions.conf"
|
307
|
+
- Gemfile
|
308
|
+
- LICENSE.txt
|
309
|
+
- README.md
|
310
|
+
- Rakefile
|
311
|
+
- app/assets/javascripts/aws-signature.js.coffee
|
312
|
+
- grape_api_signature.gemspec
|
313
|
+
- lib/grape_api_signature.rb
|
314
|
+
- lib/grape_api_signature/authorization.rb
|
315
|
+
- lib/grape_api_signature/aws_auth_parser.rb
|
316
|
+
- lib/grape_api_signature/aws_authorization.rb
|
317
|
+
- lib/grape_api_signature/aws_digester.rb
|
318
|
+
- lib/grape_api_signature/aws_request.rb
|
319
|
+
- lib/grape_api_signature/aws_signer.rb
|
320
|
+
- lib/grape_api_signature/middleware/auth.rb
|
321
|
+
- lib/grape_api_signature/middleware/grape_auth.rb
|
322
|
+
- lib/grape_api_signature/rails/engine.rb
|
323
|
+
- lib/grape_api_signature/rspec.rb
|
324
|
+
- lib/grape_api_signature/version.rb
|
325
|
+
- spec/acceptance/.gitkeep
|
326
|
+
- spec/acceptance/lib/grape_api_signature/aws_request_spec.rb
|
327
|
+
- spec/acceptance/lib/grape_api_signature/aws_signer_spec.rb
|
328
|
+
- spec/acceptance/lib/grape_api_signature/middleware/auth_spec.rb
|
329
|
+
- spec/acceptance/lib/grape_api_signature/middleware/grape_auth_spec.rb
|
330
|
+
- spec/acceptance/support/.keep
|
331
|
+
- spec/acceptance/support/api.rb
|
332
|
+
- spec/acceptance/support/aws_helper.rb
|
333
|
+
- spec/acceptance/support/feature.rb
|
334
|
+
- spec/acceptance_spec_helper.rb
|
335
|
+
- spec/fixtures/aws4_test_suite/fail/get-header-key-duplicate.authz
|
336
|
+
- spec/fixtures/aws4_test_suite/fail/get-header-key-duplicate.creq
|
337
|
+
- spec/fixtures/aws4_test_suite/fail/get-header-key-duplicate.req
|
338
|
+
- spec/fixtures/aws4_test_suite/fail/get-header-key-duplicate.sreq
|
339
|
+
- spec/fixtures/aws4_test_suite/fail/get-header-key-duplicate.sts
|
340
|
+
- spec/fixtures/aws4_test_suite/fail/get-header-value-multiline.req
|
341
|
+
- spec/fixtures/aws4_test_suite/fail/get-header-value-order.authz
|
342
|
+
- spec/fixtures/aws4_test_suite/fail/get-header-value-order.creq
|
343
|
+
- spec/fixtures/aws4_test_suite/fail/get-header-value-order.req
|
344
|
+
- spec/fixtures/aws4_test_suite/fail/get-header-value-order.sreq
|
345
|
+
- spec/fixtures/aws4_test_suite/fail/get-header-value-order.sts
|
346
|
+
- spec/fixtures/aws4_test_suite/fail/post-vanilla-query-nonunreserved.authz
|
347
|
+
- spec/fixtures/aws4_test_suite/fail/post-vanilla-query-nonunreserved.creq
|
348
|
+
- spec/fixtures/aws4_test_suite/fail/post-vanilla-query-nonunreserved.req
|
349
|
+
- spec/fixtures/aws4_test_suite/fail/post-vanilla-query-nonunreserved.sreq
|
350
|
+
- spec/fixtures/aws4_test_suite/fail/post-vanilla-query-nonunreserved.sts
|
351
|
+
- spec/fixtures/aws4_test_suite/fail/post-vanilla-query-space.authz
|
352
|
+
- spec/fixtures/aws4_test_suite/fail/post-vanilla-query-space.creq
|
353
|
+
- spec/fixtures/aws4_test_suite/fail/post-vanilla-query-space.req
|
354
|
+
- spec/fixtures/aws4_test_suite/fail/post-vanilla-query-space.sreq
|
355
|
+
- spec/fixtures/aws4_test_suite/fail/post-vanilla-query-space.sts
|
356
|
+
- spec/fixtures/aws4_test_suite/pass/get-header-value-trim.authz
|
357
|
+
- spec/fixtures/aws4_test_suite/pass/get-header-value-trim.creq
|
358
|
+
- spec/fixtures/aws4_test_suite/pass/get-header-value-trim.req
|
359
|
+
- spec/fixtures/aws4_test_suite/pass/get-header-value-trim.sreq
|
360
|
+
- spec/fixtures/aws4_test_suite/pass/get-header-value-trim.sts
|
361
|
+
- spec/fixtures/aws4_test_suite/pass/get-relative-relative.authz
|
362
|
+
- spec/fixtures/aws4_test_suite/pass/get-relative-relative.creq
|
363
|
+
- spec/fixtures/aws4_test_suite/pass/get-relative-relative.req
|
364
|
+
- spec/fixtures/aws4_test_suite/pass/get-relative-relative.sreq
|
365
|
+
- spec/fixtures/aws4_test_suite/pass/get-relative-relative.sts
|
366
|
+
- spec/fixtures/aws4_test_suite/pass/get-relative.authz
|
367
|
+
- spec/fixtures/aws4_test_suite/pass/get-relative.creq
|
368
|
+
- spec/fixtures/aws4_test_suite/pass/get-relative.req
|
369
|
+
- spec/fixtures/aws4_test_suite/pass/get-relative.sreq
|
370
|
+
- spec/fixtures/aws4_test_suite/pass/get-relative.sts
|
371
|
+
- spec/fixtures/aws4_test_suite/pass/get-slash-dot-slash.authz
|
372
|
+
- spec/fixtures/aws4_test_suite/pass/get-slash-dot-slash.creq
|
373
|
+
- spec/fixtures/aws4_test_suite/pass/get-slash-dot-slash.req
|
374
|
+
- spec/fixtures/aws4_test_suite/pass/get-slash-dot-slash.sreq
|
375
|
+
- spec/fixtures/aws4_test_suite/pass/get-slash-dot-slash.sts
|
376
|
+
- spec/fixtures/aws4_test_suite/pass/get-slash-pointless-dot.authz
|
377
|
+
- spec/fixtures/aws4_test_suite/pass/get-slash-pointless-dot.creq
|
378
|
+
- spec/fixtures/aws4_test_suite/pass/get-slash-pointless-dot.req
|
379
|
+
- spec/fixtures/aws4_test_suite/pass/get-slash-pointless-dot.sreq
|
380
|
+
- spec/fixtures/aws4_test_suite/pass/get-slash-pointless-dot.sts
|
381
|
+
- spec/fixtures/aws4_test_suite/pass/get-slash.authz
|
382
|
+
- spec/fixtures/aws4_test_suite/pass/get-slash.creq
|
383
|
+
- spec/fixtures/aws4_test_suite/pass/get-slash.req
|
384
|
+
- spec/fixtures/aws4_test_suite/pass/get-slash.sreq
|
385
|
+
- spec/fixtures/aws4_test_suite/pass/get-slash.sts
|
386
|
+
- spec/fixtures/aws4_test_suite/pass/get-slashes.authz
|
387
|
+
- spec/fixtures/aws4_test_suite/pass/get-slashes.creq
|
388
|
+
- spec/fixtures/aws4_test_suite/pass/get-slashes.req
|
389
|
+
- spec/fixtures/aws4_test_suite/pass/get-slashes.sreq
|
390
|
+
- spec/fixtures/aws4_test_suite/pass/get-slashes.sts
|
391
|
+
- spec/fixtures/aws4_test_suite/pass/get-space.authz
|
392
|
+
- spec/fixtures/aws4_test_suite/pass/get-space.creq
|
393
|
+
- spec/fixtures/aws4_test_suite/pass/get-space.req
|
394
|
+
- spec/fixtures/aws4_test_suite/pass/get-space.sreq
|
395
|
+
- spec/fixtures/aws4_test_suite/pass/get-space.sts
|
396
|
+
- spec/fixtures/aws4_test_suite/pass/get-unreserved.authz
|
397
|
+
- spec/fixtures/aws4_test_suite/pass/get-unreserved.creq
|
398
|
+
- spec/fixtures/aws4_test_suite/pass/get-unreserved.req
|
399
|
+
- spec/fixtures/aws4_test_suite/pass/get-unreserved.sreq
|
400
|
+
- spec/fixtures/aws4_test_suite/pass/get-unreserved.sts
|
401
|
+
- spec/fixtures/aws4_test_suite/pass/get-utf8.authz
|
402
|
+
- spec/fixtures/aws4_test_suite/pass/get-utf8.creq
|
403
|
+
- spec/fixtures/aws4_test_suite/pass/get-utf8.req
|
404
|
+
- spec/fixtures/aws4_test_suite/pass/get-utf8.sreq
|
405
|
+
- spec/fixtures/aws4_test_suite/pass/get-utf8.sts
|
406
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-empty-query-key.authz
|
407
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-empty-query-key.creq
|
408
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-empty-query-key.req
|
409
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-empty-query-key.sreq
|
410
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-empty-query-key.sts
|
411
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-key-case.authz
|
412
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-key-case.creq
|
413
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-key-case.req
|
414
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-key-case.sreq
|
415
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-key-case.sts
|
416
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-key.authz
|
417
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-key.creq
|
418
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-key.req
|
419
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-key.sreq
|
420
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-key.sts
|
421
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-value.authz
|
422
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-value.creq
|
423
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-value.req
|
424
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-value.sreq
|
425
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-value.sts
|
426
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-unreserved.authz
|
427
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-unreserved.creq
|
428
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-unreserved.req
|
429
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-unreserved.sreq
|
430
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-unreserved.sts
|
431
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query.authz
|
432
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query.creq
|
433
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query.req
|
434
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query.sreq
|
435
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query.sts
|
436
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-ut8-query.authz
|
437
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-ut8-query.creq
|
438
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-ut8-query.req
|
439
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-ut8-query.sreq
|
440
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-ut8-query.sts
|
441
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla.authz
|
442
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla.creq
|
443
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla.req
|
444
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla.sreq
|
445
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla.sts
|
446
|
+
- spec/fixtures/aws4_test_suite/pass/post-header-key-case.authz
|
447
|
+
- spec/fixtures/aws4_test_suite/pass/post-header-key-case.creq
|
448
|
+
- spec/fixtures/aws4_test_suite/pass/post-header-key-case.req
|
449
|
+
- spec/fixtures/aws4_test_suite/pass/post-header-key-case.sreq
|
450
|
+
- spec/fixtures/aws4_test_suite/pass/post-header-key-case.sts
|
451
|
+
- spec/fixtures/aws4_test_suite/pass/post-header-key-sort.authz
|
452
|
+
- spec/fixtures/aws4_test_suite/pass/post-header-key-sort.creq
|
453
|
+
- spec/fixtures/aws4_test_suite/pass/post-header-key-sort.req
|
454
|
+
- spec/fixtures/aws4_test_suite/pass/post-header-key-sort.sreq
|
455
|
+
- spec/fixtures/aws4_test_suite/pass/post-header-key-sort.sts
|
456
|
+
- spec/fixtures/aws4_test_suite/pass/post-header-value-case.authz
|
457
|
+
- spec/fixtures/aws4_test_suite/pass/post-header-value-case.creq
|
458
|
+
- spec/fixtures/aws4_test_suite/pass/post-header-value-case.req
|
459
|
+
- spec/fixtures/aws4_test_suite/pass/post-header-value-case.sreq
|
460
|
+
- spec/fixtures/aws4_test_suite/pass/post-header-value-case.sts
|
461
|
+
- spec/fixtures/aws4_test_suite/pass/post-vanilla-empty-query-value.authz
|
462
|
+
- spec/fixtures/aws4_test_suite/pass/post-vanilla-empty-query-value.creq
|
463
|
+
- spec/fixtures/aws4_test_suite/pass/post-vanilla-empty-query-value.req
|
464
|
+
- spec/fixtures/aws4_test_suite/pass/post-vanilla-empty-query-value.sreq
|
465
|
+
- spec/fixtures/aws4_test_suite/pass/post-vanilla-empty-query-value.sts
|
466
|
+
- spec/fixtures/aws4_test_suite/pass/post-vanilla-query.authz
|
467
|
+
- spec/fixtures/aws4_test_suite/pass/post-vanilla-query.creq
|
468
|
+
- spec/fixtures/aws4_test_suite/pass/post-vanilla-query.req
|
469
|
+
- spec/fixtures/aws4_test_suite/pass/post-vanilla-query.sreq
|
470
|
+
- spec/fixtures/aws4_test_suite/pass/post-vanilla-query.sts
|
471
|
+
- spec/fixtures/aws4_test_suite/pass/post-vanilla.authz
|
472
|
+
- spec/fixtures/aws4_test_suite/pass/post-vanilla.creq
|
473
|
+
- spec/fixtures/aws4_test_suite/pass/post-vanilla.req
|
474
|
+
- spec/fixtures/aws4_test_suite/pass/post-vanilla.sreq
|
475
|
+
- spec/fixtures/aws4_test_suite/pass/post-vanilla.sts
|
476
|
+
- spec/fixtures/aws4_test_suite/pass/post-x-www-form-urlencoded-parameters.authz
|
477
|
+
- spec/fixtures/aws4_test_suite/pass/post-x-www-form-urlencoded-parameters.creq
|
478
|
+
- spec/fixtures/aws4_test_suite/pass/post-x-www-form-urlencoded-parameters.req
|
479
|
+
- spec/fixtures/aws4_test_suite/pass/post-x-www-form-urlencoded-parameters.sreq
|
480
|
+
- spec/fixtures/aws4_test_suite/pass/post-x-www-form-urlencoded-parameters.sts
|
481
|
+
- spec/fixtures/aws4_test_suite/pass/post-x-www-form-urlencoded.authz
|
482
|
+
- spec/fixtures/aws4_test_suite/pass/post-x-www-form-urlencoded.creq
|
483
|
+
- spec/fixtures/aws4_test_suite/pass/post-x-www-form-urlencoded.req
|
484
|
+
- spec/fixtures/aws4_test_suite/pass/post-x-www-form-urlencoded.sreq
|
485
|
+
- spec/fixtures/aws4_test_suite/pass/post-x-www-form-urlencoded.sts
|
486
|
+
- spec/integration/.gitkeep
|
487
|
+
- spec/integration/support/.keep
|
488
|
+
- spec/integration_spec_helper.rb
|
489
|
+
- spec/spec_helper.rb
|
490
|
+
- spec/support/.gitkeep
|
491
|
+
- spec/unit/.gitkeep
|
492
|
+
- spec/unit/lib/grape_api_signature/authorization_spec.rb
|
493
|
+
- spec/unit/lib/grape_api_signature/aws_auth_parser_spec.rb
|
494
|
+
- spec/unit/support/.keep
|
495
|
+
- spec/unit_spec_helper.rb
|
496
|
+
- vendor/assets/javascripts/hmac-sha256.js
|
497
|
+
homepage: ''
|
498
|
+
licenses:
|
499
|
+
- MIT
|
500
|
+
metadata: {}
|
501
|
+
post_install_message:
|
502
|
+
rdoc_options: []
|
503
|
+
require_paths:
|
504
|
+
- lib
|
505
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
506
|
+
requirements:
|
507
|
+
- - ">="
|
508
|
+
- !ruby/object:Gem::Version
|
509
|
+
version: '0'
|
510
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
511
|
+
requirements:
|
512
|
+
- - ">="
|
513
|
+
- !ruby/object:Gem::Version
|
514
|
+
version: '0'
|
515
|
+
requirements: []
|
516
|
+
rubyforge_project:
|
517
|
+
rubygems_version: 2.2.1
|
518
|
+
signing_key:
|
519
|
+
specification_version: 4
|
520
|
+
summary: Add AWS Signature 4 style authentication to grape API's.
|
521
|
+
test_files:
|
522
|
+
- spec/acceptance/.gitkeep
|
523
|
+
- spec/acceptance/lib/grape_api_signature/aws_request_spec.rb
|
524
|
+
- spec/acceptance/lib/grape_api_signature/aws_signer_spec.rb
|
525
|
+
- spec/acceptance/lib/grape_api_signature/middleware/auth_spec.rb
|
526
|
+
- spec/acceptance/lib/grape_api_signature/middleware/grape_auth_spec.rb
|
527
|
+
- spec/acceptance/support/.keep
|
528
|
+
- spec/acceptance/support/api.rb
|
529
|
+
- spec/acceptance/support/aws_helper.rb
|
530
|
+
- spec/acceptance/support/feature.rb
|
531
|
+
- spec/acceptance_spec_helper.rb
|
532
|
+
- spec/fixtures/aws4_test_suite/fail/get-header-key-duplicate.authz
|
533
|
+
- spec/fixtures/aws4_test_suite/fail/get-header-key-duplicate.creq
|
534
|
+
- spec/fixtures/aws4_test_suite/fail/get-header-key-duplicate.req
|
535
|
+
- spec/fixtures/aws4_test_suite/fail/get-header-key-duplicate.sreq
|
536
|
+
- spec/fixtures/aws4_test_suite/fail/get-header-key-duplicate.sts
|
537
|
+
- spec/fixtures/aws4_test_suite/fail/get-header-value-multiline.req
|
538
|
+
- spec/fixtures/aws4_test_suite/fail/get-header-value-order.authz
|
539
|
+
- spec/fixtures/aws4_test_suite/fail/get-header-value-order.creq
|
540
|
+
- spec/fixtures/aws4_test_suite/fail/get-header-value-order.req
|
541
|
+
- spec/fixtures/aws4_test_suite/fail/get-header-value-order.sreq
|
542
|
+
- spec/fixtures/aws4_test_suite/fail/get-header-value-order.sts
|
543
|
+
- spec/fixtures/aws4_test_suite/fail/post-vanilla-query-nonunreserved.authz
|
544
|
+
- spec/fixtures/aws4_test_suite/fail/post-vanilla-query-nonunreserved.creq
|
545
|
+
- spec/fixtures/aws4_test_suite/fail/post-vanilla-query-nonunreserved.req
|
546
|
+
- spec/fixtures/aws4_test_suite/fail/post-vanilla-query-nonunreserved.sreq
|
547
|
+
- spec/fixtures/aws4_test_suite/fail/post-vanilla-query-nonunreserved.sts
|
548
|
+
- spec/fixtures/aws4_test_suite/fail/post-vanilla-query-space.authz
|
549
|
+
- spec/fixtures/aws4_test_suite/fail/post-vanilla-query-space.creq
|
550
|
+
- spec/fixtures/aws4_test_suite/fail/post-vanilla-query-space.req
|
551
|
+
- spec/fixtures/aws4_test_suite/fail/post-vanilla-query-space.sreq
|
552
|
+
- spec/fixtures/aws4_test_suite/fail/post-vanilla-query-space.sts
|
553
|
+
- spec/fixtures/aws4_test_suite/pass/get-header-value-trim.authz
|
554
|
+
- spec/fixtures/aws4_test_suite/pass/get-header-value-trim.creq
|
555
|
+
- spec/fixtures/aws4_test_suite/pass/get-header-value-trim.req
|
556
|
+
- spec/fixtures/aws4_test_suite/pass/get-header-value-trim.sreq
|
557
|
+
- spec/fixtures/aws4_test_suite/pass/get-header-value-trim.sts
|
558
|
+
- spec/fixtures/aws4_test_suite/pass/get-relative-relative.authz
|
559
|
+
- spec/fixtures/aws4_test_suite/pass/get-relative-relative.creq
|
560
|
+
- spec/fixtures/aws4_test_suite/pass/get-relative-relative.req
|
561
|
+
- spec/fixtures/aws4_test_suite/pass/get-relative-relative.sreq
|
562
|
+
- spec/fixtures/aws4_test_suite/pass/get-relative-relative.sts
|
563
|
+
- spec/fixtures/aws4_test_suite/pass/get-relative.authz
|
564
|
+
- spec/fixtures/aws4_test_suite/pass/get-relative.creq
|
565
|
+
- spec/fixtures/aws4_test_suite/pass/get-relative.req
|
566
|
+
- spec/fixtures/aws4_test_suite/pass/get-relative.sreq
|
567
|
+
- spec/fixtures/aws4_test_suite/pass/get-relative.sts
|
568
|
+
- spec/fixtures/aws4_test_suite/pass/get-slash-dot-slash.authz
|
569
|
+
- spec/fixtures/aws4_test_suite/pass/get-slash-dot-slash.creq
|
570
|
+
- spec/fixtures/aws4_test_suite/pass/get-slash-dot-slash.req
|
571
|
+
- spec/fixtures/aws4_test_suite/pass/get-slash-dot-slash.sreq
|
572
|
+
- spec/fixtures/aws4_test_suite/pass/get-slash-dot-slash.sts
|
573
|
+
- spec/fixtures/aws4_test_suite/pass/get-slash-pointless-dot.authz
|
574
|
+
- spec/fixtures/aws4_test_suite/pass/get-slash-pointless-dot.creq
|
575
|
+
- spec/fixtures/aws4_test_suite/pass/get-slash-pointless-dot.req
|
576
|
+
- spec/fixtures/aws4_test_suite/pass/get-slash-pointless-dot.sreq
|
577
|
+
- spec/fixtures/aws4_test_suite/pass/get-slash-pointless-dot.sts
|
578
|
+
- spec/fixtures/aws4_test_suite/pass/get-slash.authz
|
579
|
+
- spec/fixtures/aws4_test_suite/pass/get-slash.creq
|
580
|
+
- spec/fixtures/aws4_test_suite/pass/get-slash.req
|
581
|
+
- spec/fixtures/aws4_test_suite/pass/get-slash.sreq
|
582
|
+
- spec/fixtures/aws4_test_suite/pass/get-slash.sts
|
583
|
+
- spec/fixtures/aws4_test_suite/pass/get-slashes.authz
|
584
|
+
- spec/fixtures/aws4_test_suite/pass/get-slashes.creq
|
585
|
+
- spec/fixtures/aws4_test_suite/pass/get-slashes.req
|
586
|
+
- spec/fixtures/aws4_test_suite/pass/get-slashes.sreq
|
587
|
+
- spec/fixtures/aws4_test_suite/pass/get-slashes.sts
|
588
|
+
- spec/fixtures/aws4_test_suite/pass/get-space.authz
|
589
|
+
- spec/fixtures/aws4_test_suite/pass/get-space.creq
|
590
|
+
- spec/fixtures/aws4_test_suite/pass/get-space.req
|
591
|
+
- spec/fixtures/aws4_test_suite/pass/get-space.sreq
|
592
|
+
- spec/fixtures/aws4_test_suite/pass/get-space.sts
|
593
|
+
- spec/fixtures/aws4_test_suite/pass/get-unreserved.authz
|
594
|
+
- spec/fixtures/aws4_test_suite/pass/get-unreserved.creq
|
595
|
+
- spec/fixtures/aws4_test_suite/pass/get-unreserved.req
|
596
|
+
- spec/fixtures/aws4_test_suite/pass/get-unreserved.sreq
|
597
|
+
- spec/fixtures/aws4_test_suite/pass/get-unreserved.sts
|
598
|
+
- spec/fixtures/aws4_test_suite/pass/get-utf8.authz
|
599
|
+
- spec/fixtures/aws4_test_suite/pass/get-utf8.creq
|
600
|
+
- spec/fixtures/aws4_test_suite/pass/get-utf8.req
|
601
|
+
- spec/fixtures/aws4_test_suite/pass/get-utf8.sreq
|
602
|
+
- spec/fixtures/aws4_test_suite/pass/get-utf8.sts
|
603
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-empty-query-key.authz
|
604
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-empty-query-key.creq
|
605
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-empty-query-key.req
|
606
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-empty-query-key.sreq
|
607
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-empty-query-key.sts
|
608
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-key-case.authz
|
609
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-key-case.creq
|
610
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-key-case.req
|
611
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-key-case.sreq
|
612
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-key-case.sts
|
613
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-key.authz
|
614
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-key.creq
|
615
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-key.req
|
616
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-key.sreq
|
617
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-key.sts
|
618
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-value.authz
|
619
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-value.creq
|
620
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-value.req
|
621
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-value.sreq
|
622
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-order-value.sts
|
623
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-unreserved.authz
|
624
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-unreserved.creq
|
625
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-unreserved.req
|
626
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-unreserved.sreq
|
627
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query-unreserved.sts
|
628
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query.authz
|
629
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query.creq
|
630
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query.req
|
631
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query.sreq
|
632
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-query.sts
|
633
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-ut8-query.authz
|
634
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-ut8-query.creq
|
635
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-ut8-query.req
|
636
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-ut8-query.sreq
|
637
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla-ut8-query.sts
|
638
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla.authz
|
639
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla.creq
|
640
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla.req
|
641
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla.sreq
|
642
|
+
- spec/fixtures/aws4_test_suite/pass/get-vanilla.sts
|
643
|
+
- spec/fixtures/aws4_test_suite/pass/post-header-key-case.authz
|
644
|
+
- spec/fixtures/aws4_test_suite/pass/post-header-key-case.creq
|
645
|
+
- spec/fixtures/aws4_test_suite/pass/post-header-key-case.req
|
646
|
+
- spec/fixtures/aws4_test_suite/pass/post-header-key-case.sreq
|
647
|
+
- spec/fixtures/aws4_test_suite/pass/post-header-key-case.sts
|
648
|
+
- spec/fixtures/aws4_test_suite/pass/post-header-key-sort.authz
|
649
|
+
- spec/fixtures/aws4_test_suite/pass/post-header-key-sort.creq
|
650
|
+
- spec/fixtures/aws4_test_suite/pass/post-header-key-sort.req
|
651
|
+
- spec/fixtures/aws4_test_suite/pass/post-header-key-sort.sreq
|
652
|
+
- spec/fixtures/aws4_test_suite/pass/post-header-key-sort.sts
|
653
|
+
- spec/fixtures/aws4_test_suite/pass/post-header-value-case.authz
|
654
|
+
- spec/fixtures/aws4_test_suite/pass/post-header-value-case.creq
|
655
|
+
- spec/fixtures/aws4_test_suite/pass/post-header-value-case.req
|
656
|
+
- spec/fixtures/aws4_test_suite/pass/post-header-value-case.sreq
|
657
|
+
- spec/fixtures/aws4_test_suite/pass/post-header-value-case.sts
|
658
|
+
- spec/fixtures/aws4_test_suite/pass/post-vanilla-empty-query-value.authz
|
659
|
+
- spec/fixtures/aws4_test_suite/pass/post-vanilla-empty-query-value.creq
|
660
|
+
- spec/fixtures/aws4_test_suite/pass/post-vanilla-empty-query-value.req
|
661
|
+
- spec/fixtures/aws4_test_suite/pass/post-vanilla-empty-query-value.sreq
|
662
|
+
- spec/fixtures/aws4_test_suite/pass/post-vanilla-empty-query-value.sts
|
663
|
+
- spec/fixtures/aws4_test_suite/pass/post-vanilla-query.authz
|
664
|
+
- spec/fixtures/aws4_test_suite/pass/post-vanilla-query.creq
|
665
|
+
- spec/fixtures/aws4_test_suite/pass/post-vanilla-query.req
|
666
|
+
- spec/fixtures/aws4_test_suite/pass/post-vanilla-query.sreq
|
667
|
+
- spec/fixtures/aws4_test_suite/pass/post-vanilla-query.sts
|
668
|
+
- spec/fixtures/aws4_test_suite/pass/post-vanilla.authz
|
669
|
+
- spec/fixtures/aws4_test_suite/pass/post-vanilla.creq
|
670
|
+
- spec/fixtures/aws4_test_suite/pass/post-vanilla.req
|
671
|
+
- spec/fixtures/aws4_test_suite/pass/post-vanilla.sreq
|
672
|
+
- spec/fixtures/aws4_test_suite/pass/post-vanilla.sts
|
673
|
+
- spec/fixtures/aws4_test_suite/pass/post-x-www-form-urlencoded-parameters.authz
|
674
|
+
- spec/fixtures/aws4_test_suite/pass/post-x-www-form-urlencoded-parameters.creq
|
675
|
+
- spec/fixtures/aws4_test_suite/pass/post-x-www-form-urlencoded-parameters.req
|
676
|
+
- spec/fixtures/aws4_test_suite/pass/post-x-www-form-urlencoded-parameters.sreq
|
677
|
+
- spec/fixtures/aws4_test_suite/pass/post-x-www-form-urlencoded-parameters.sts
|
678
|
+
- spec/fixtures/aws4_test_suite/pass/post-x-www-form-urlencoded.authz
|
679
|
+
- spec/fixtures/aws4_test_suite/pass/post-x-www-form-urlencoded.creq
|
680
|
+
- spec/fixtures/aws4_test_suite/pass/post-x-www-form-urlencoded.req
|
681
|
+
- spec/fixtures/aws4_test_suite/pass/post-x-www-form-urlencoded.sreq
|
682
|
+
- spec/fixtures/aws4_test_suite/pass/post-x-www-form-urlencoded.sts
|
683
|
+
- spec/integration/.gitkeep
|
684
|
+
- spec/integration/support/.keep
|
685
|
+
- spec/integration_spec_helper.rb
|
686
|
+
- spec/spec_helper.rb
|
687
|
+
- spec/support/.gitkeep
|
688
|
+
- spec/unit/.gitkeep
|
689
|
+
- spec/unit/lib/grape_api_signature/authorization_spec.rb
|
690
|
+
- spec/unit/lib/grape_api_signature/aws_auth_parser_spec.rb
|
691
|
+
- spec/unit/support/.keep
|
692
|
+
- spec/unit_spec_helper.rb
|