rack-oauth2 0.6.2 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.2
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.split(',').inject({}) do |auth_params, pair|
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
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-oauth2
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 2
10
- version: 0.6.2
9
+ - 3
10
+ version: 0.6.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - nov matake