cerner-oauth1a 2.1.0 → 2.2.0

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: cd0cf4f52bc3f90e247bc8c507415f540ababac1483da4c626294328857dc270
4
- data.tar.gz: 2ae54c85c1ab06b6a3d9581cc062fae1a4a3857037131fbcb479812474f72756
3
+ metadata.gz: 7468ed060ebc8d1eb4f59a5f923a637e88a8ab7ddeac271f9a1850ad2a8cc37d
4
+ data.tar.gz: d6c61bcf252e4740a72c189f2cfaff78282a1e8e4a86510fbd3613b529e140ae
5
5
  SHA512:
6
- metadata.gz: 429eb27f3433283a68643968c83ab8ff0b0322bd751ac8da475bb62978922dd4e78d110e3561128b91010a8998070b06d286ebd2ccaa87f730f72943340d69e6
7
- data.tar.gz: 3ada2c0200c845f5710a7eacbf77fbea95a3171a9ca56dc1270265a5d2511c7ee7de62fb58371f23f7eb960ce846ba3b762cce0a9d1292938280eae0177be872
6
+ metadata.gz: 25930e4cd757e995a2e2766bd9ec8abeaa451300399bfc27e5d49674e6adade90a63f55bd83c396b8483f455b29d60ac0c7a304ed95a537a0460cb2caa508fa0
7
+ data.tar.gz: 98ce7733b5b2c23721f098acb70e5b4d6290fe7ace38bcb0aaf7e01ab5fc03e88b641822cb7d5cf6a9bda773f47832b1980edfb283c53b11433124ffca36aa51
@@ -1,5 +1,8 @@
1
+ # v2.2.0
2
+ Renamed the cache key prefixes from 'cerner-oauth' cache prefixes to 'cerner-oauth1a'.
3
+
1
4
  # v2.1.0
2
- Added an attribute for the Protection Realm to Cerner::OAuth1a::AccessTokenAgent,
5
+ Added an attribute for the Protection Realm to Cerner::OAuth1a::AccessTokenAgent,
3
6
  Cerner::OAuth1a::AccessToken, and Cerner::OAuth1a::OAuthError. This value will be
4
7
  parsed as the canonical root URI of the agent's configured access_token_url. When
5
8
  this value is available, it will be added to errors and generated authorization
data/NOTICE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2018 Cerner Innovation, Inc.
1
+ Copyright 2019 Cerner Innovation, Inc.
2
2
 
3
3
  Licensed under the Apache License, Version 2.0 (the "License");
4
4
  you may not use this file except in compliance with the License.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Cerner OAuth 1.0a Consumer and Service Provider Library
2
2
 
3
- [![Build Status](https://api.travis-ci.org/cerner/cerner-oauth1a.svg)](https://travis-ci.org/cerner/cerner-oauth1a)
3
+ [![Build Status](https://api.travis-ci.com/cerner/cerner-oauth1a.svg)](https://travis-ci.com/cerner/cerner-oauth1a)
4
4
  [![Gem Version](http://img.shields.io/gem/v/cerner-oauth1a.svg)](https://rubygems.org/gems/cerner-oauth1a)
5
5
  [![Code Climate](http://img.shields.io/codeclimate/github/cerner/cerner-oauth1a.svg)](https://codeclimate.com/github/cerner/cerner-oauth1a)
6
6
 
@@ -129,6 +129,12 @@ To analyze the project's style and lint, run the following:
129
129
 
130
130
  bin/rubocop
131
131
 
132
+ ## Bundler Audit
133
+
134
+ To analyze the project's dependency vulnerabilities, run the following:
135
+
136
+ bin/bundle audit
137
+
132
138
  # Availability
133
139
 
134
140
  This RubyGem will be available on https://rubygems.org/.
@@ -143,7 +149,7 @@ See [CONTRIBUTING.md](CONTRIBUTING.md)
143
149
 
144
150
  # LICENSE
145
151
 
146
- Copyright 2018 Cerner Innovation, Inc.
152
+ Copyright 2019 Cerner Innovation, Inc.
147
153
 
148
154
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
149
155
 
@@ -102,14 +102,14 @@ module Cerner
102
102
  raise ArgumentError, 'keys_version is nil' unless keys_version
103
103
 
104
104
  if @keys_cache && !ignore_cache
105
- cache_entry = @keys_cache.get('cerner-oauth/keys', keys_version)
105
+ cache_entry = @keys_cache.get('cerner-oauth1a/keys', keys_version)
106
106
  return cache_entry.value if cache_entry
107
107
  end
108
108
 
109
109
  request = retrieve_keys_prepare_request(keys_version)
110
110
  response = http_client.request(request)
111
111
  keys = retrieve_keys_handle_response(keys_version, response)
112
- @keys_cache&.put('cerner-oauth/keys', keys_version, Cache::KeysEntry.new(keys, Cache::TWENTY_FOUR_HOURS))
112
+ @keys_cache&.put('cerner-oauth1a/keys', keys_version, Cache::KeysEntry.new(keys, Cache::TWENTY_FOUR_HOURS))
113
113
  keys
114
114
  end
115
115
 
@@ -130,7 +130,7 @@ module Cerner
130
130
  def retrieve(principal: nil, ignore_cache: false)
131
131
  cache_key = "#{@consumer_key}&#{principal}"
132
132
  if @access_token_cache && !ignore_cache
133
- cache_entry = @access_token_cache.get('cerner-oauth/access-tokens', cache_key)
133
+ cache_entry = @access_token_cache.get('cerner-oauth1a/access-tokens', cache_key)
134
134
  return cache_entry.value if cache_entry
135
135
  end
136
136
 
@@ -142,7 +142,7 @@ module Cerner
142
142
  request = retrieve_prepare_request(timestamp, nonce, accessor_secret, principal)
143
143
  response = http_client.request(request)
144
144
  access_token = retrieve_handle_response(response, timestamp, nonce, accessor_secret)
145
- @access_token_cache&.put('cerner-oauth/access-tokens', cache_key, Cache::AccessTokenEntry.new(access_token))
145
+ @access_token_cache&.put('cerner-oauth1a/access-tokens', cache_key, Cache::AccessTokenEntry.new(access_token))
146
146
  access_token
147
147
  end
148
148
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Cerner
4
4
  module OAuth1a
5
- VERSION = '2.1.0'
5
+ VERSION = '2.2.0'
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.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Beyer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-01 00:00:00.000000000 Z
11
+ date: 2019-04-17 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