rack-oauth2 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/rack/oauth2/server/resource/mac.rb +1 -4
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.3
|
@@ -14,10 +14,7 @@ module Rack
|
|
14
14
|
attr_reader :timestamp, :nonce, :body_hash, :signature
|
15
15
|
|
16
16
|
def setup!
|
17
|
-
auth_params = @auth_header.params
|
18
|
-
key, value = pair.scan(/^(.*)=\"(.*)\"/).flatten
|
19
|
-
auth_params.merge!(key => value)
|
20
|
-
end.with_indifferent_access
|
17
|
+
auth_params = Rack::Auth::Digest::Params.parse(@auth_header.params).with_indifferent_access
|
21
18
|
@access_token = auth_params[:token]
|
22
19
|
@timestamp = auth_params[:timestamp]
|
23
20
|
@nonce = auth_params[:nonce]
|
metadata
CHANGED