signauth 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'uri'
|
2
|
+
|
1
3
|
module Signauth
|
2
4
|
module Signature
|
3
5
|
module Base
|
@@ -23,7 +25,7 @@ module Signauth
|
|
23
25
|
end
|
24
26
|
|
25
27
|
def encoded(name, value)
|
26
|
-
"#{URI.escape(name)}=#{URI.escape(value)}"
|
28
|
+
"#{URI.escape(name.to_s)}=#{URI.escape(value.to_s)}"
|
27
29
|
end
|
28
30
|
|
29
31
|
def validate_timestamp(timestamp, skew)
|
@@ -16,7 +16,7 @@ module Signauth
|
|
16
16
|
scheme, access_key_id, given = authorization_parts
|
17
17
|
raise Errors::MissingSecurityHeader if scheme.nil? || access_key_id.nil? || given.nil?
|
18
18
|
|
19
|
-
credentials = yield(access_key_id)
|
19
|
+
credentials = yield(access_key_id, scheme)
|
20
20
|
validate_signature(given, signature(credentials))
|
21
21
|
true
|
22
22
|
end
|
data/lib/signauth/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: signauth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-12-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -84,7 +84,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
84
84
|
version: '0'
|
85
85
|
segments:
|
86
86
|
- 0
|
87
|
-
hash:
|
87
|
+
hash: 300640047
|
88
88
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
89
|
none: false
|
90
90
|
requirements:
|
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
93
|
version: '0'
|
94
94
|
segments:
|
95
95
|
- 0
|
96
|
-
hash:
|
96
|
+
hash: 300640047
|
97
97
|
requirements: []
|
98
98
|
rubyforge_project:
|
99
99
|
rubygems_version: 1.8.24
|