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 +4 -4
- data/CHANGELOG.md +11 -0
- data/CONTRIBUTORS.md +1 -0
- data/lib/cerner/oauth1a/access_token.rb +3 -1
- data/lib/cerner/oauth1a/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0dfb4c9bf4b9fa35f52b7fad741f860bde8fd792412bbd33e0715371019dd130
|
4
|
+
data.tar.gz: ea584dbe2eb91a9965249c2f1330cdaa315fba73a4d5e6665e9fd27506ff1dd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
@@ -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
|
-
|
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]
|
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.
|
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:
|
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
|
-
|
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.
|