cerner-oauth1a 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 81d13fa0e77c87e04059f179454717f102e777d91177fab30038f590462b5f23
4
- data.tar.gz: 69b0c0b681b73a407d5c66018c04330b73eb84d9a76b765142509b55fae2d7c3
3
+ metadata.gz: 0dfb4c9bf4b9fa35f52b7fad741f860bde8fd792412bbd33e0715371019dd130
4
+ data.tar.gz: ea584dbe2eb91a9965249c2f1330cdaa315fba73a4d5e6665e9fd27506ff1dd3
5
5
  SHA512:
6
- metadata.gz: 34fd2bc0ed9bb207ece84a0da2f9968e01e907c8df58d800f00aad5ce2904147044a7a08cc6b54fdc5a8c3c9bad097039d9a57d4f974d12578589c970727acc9
7
- data.tar.gz: 0c3c6abd339b7e6336a4873c1f508513492914ef61a613cd230196080d87a050bce7f3d2c261a7af9f128c42ab1b34463231e8c27da18878cc1f34e91f0d116c
6
+ metadata.gz: 9371797cb286811967f7e3af33428fc525e4b464bebd1ab550e99ed28daba6a1878eee561959a0469af9937bdb405591548aed1aba9b317137080554fad97f54
7
+ data.tar.gz: 65398309db80afb19529f0d2d9988d4c1f061aedc6d6406b4f03eed5e9cae55e6da89605780d2f762532cb77a3964f5c1316868df10fa227f4c0e2c13b79cc3a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ # v2.0.1
2
+ Allow parsing authorization headers that do not include an oauth_version parameter as per
3
+ the spec:
4
+
5
+ ```
6
+ oauth_version:
7
+ OPTIONAL. If present, value MUST be 1.0 . Service Providers MUST assume the protocol
8
+ version to be 1.0 if this parameter is not present. Service Providers' response to
9
+ non-1.0 value is left undefined.
10
+ ```
11
+
1
12
  # v2.0.0
2
13
  Added APIs for authenticating Access Tokens, so that service providers can be implemented
3
14
  with this library. Additionally, caching mechanisms for AccessTokens and Keys has been
data/CONTRIBUTORS.md CHANGED
@@ -1,2 +1,3 @@
1
1
  * Cerner Corporation
2
2
  * Nathan Beyer [@nbeyer](https://github.com/nbeyer)
3
+ * John leacox [@johnlcox](https://github.com/johnlcox)
@@ -22,7 +22,9 @@ module Cerner
22
22
  def self.from_authorization_header(value)
23
23
  params = Protocol.parse_authorization_header(value)
24
24
 
25
- raise OAuthError.new('', nil, 'version_rejected') unless params[:oauth_version]&.eql?('1.0')
25
+ if params[:oauth_version] && !params[:oauth_version].eql?('1.0')
26
+ raise OAuthError.new('', nil, 'version_rejected')
27
+ end
26
28
 
27
29
  missing_params = []
28
30
  consumer_key = params[:oauth_consumer_key]
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Cerner
4
4
  module OAuth1a
5
- VERSION = '2.0.0'
5
+ VERSION = '2.0.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cerner-oauth1a
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Beyer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-17 00:00:00.000000000 Z
11
+ date: 2019-01-31 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  A minimal dependency library for interacting with a Cerner OAuth 1.0a Access
@@ -53,8 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  requirements: []
56
- rubyforge_project:
57
- rubygems_version: 2.7.7
56
+ rubygems_version: 3.0.2
58
57
  signing_key:
59
58
  specification_version: 4
60
59
  summary: Cerner OAuth 1.0a Consumer and Service Provider Library.