rack-oauth2 0.6.1 → 0.6.2

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.1
1
+ 0.6.2
@@ -15,9 +15,9 @@ module Rack
15
15
  self.realm ||= DEFAULT_REALM
16
16
  header = response.header['WWW-Authenticate'] = "#{scheme} realm=\"#{realm}\""
17
17
  if ErrorMethods::DEFAULT_DESCRIPTION.keys.include?(error)
18
- header << " error=\"#{error}\""
19
- header << " error_description=\"#{description}\"" if description.present?
20
- header << " error_uri=\"#{uri}\"" if uri.present?
18
+ header << ",error=\"#{error}\""
19
+ header << ",error_description=\"#{description}\"" if description.present?
20
+ header << ",error_uri=\"#{uri}\"" if uri.present?
21
21
  end
22
22
  end
23
23
  end
@@ -43,7 +43,7 @@ describe Rack::OAuth2::Server::Resource::Unauthorized do
43
43
  status, header, response = error_with_scheme.finish
44
44
  status.should == 401
45
45
  header['Content-Type'].should == 'application/json'
46
- header['WWW-Authenticate'].should == "Scheme realm=\"#{realm}\" error=\"invalid_token\""
46
+ header['WWW-Authenticate'].should == "Scheme realm=\"#{realm}\",error=\"invalid_token\""
47
47
  response.body.should == ['{"error":"invalid_token"}']
48
48
  end
49
49
 
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: 5
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 1
10
- version: 0.6.1
9
+ - 2
10
+ version: 0.6.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - nov matake