google-id-token 1.4.0 → 1.4.2

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
  SHA1:
3
- metadata.gz: 24089c2c4e9bb86822d3c8530b92d91b43d5d9c1
4
- data.tar.gz: '068251a4ac9a3e856881b8d6babeb36865145c4e'
3
+ metadata.gz: a775771925aca78d0abe25612d8ec20703f6e02e
4
+ data.tar.gz: e1f78c06c81b465e6527337356a3374ea92bf875
5
5
  SHA512:
6
- metadata.gz: 332ef6d84f3a1b2cb008a8931d2d8389bd605f4d670ea7821cc8fd6cc31044fde7581f0d3d85a1417df34d06ec1b2fbc92a4af4e1db2d093ee7edce5467a8310
7
- data.tar.gz: 27dd06d5c1b686699acb96b819c926a1f22a729d1b7c1a534821c6941a1f0c160112c4aca72ffe68f923affa940f5e0fb018d8d5c43e6f5826d0f94f14e6e9f9
6
+ metadata.gz: c17f9de0a359c7fc97c1f0c8cb65796a660d521bfc6cccac8046366bff54fb606df893e8fc3102b6e622859688721e9d863b3592511c3c4702315683f4491c0a
7
+ data.tar.gz: 68b9a51f3da0e5b8643e720566b731039c946467234ff391eebe71956503308f520be3f70e846e612ae8027b5bcadd3815eb2f06f32d7858595d8f3eeaa8ec34
@@ -0,0 +1,25 @@
1
+ # Ruby CircleCI 2.0 configuration file
2
+ #
3
+ # Check https://circleci.com/docs/2.0/language-ruby/ for more details
4
+ #
5
+ version: 2
6
+ jobs:
7
+ build:
8
+ docker:
9
+ - image: circleci/ruby:2.4.1-node-browsers
10
+
11
+ working_directory: ~/google-id-token
12
+
13
+ steps:
14
+ - checkout
15
+
16
+ - run:
17
+ name: install dependencies
18
+ command: |
19
+ bundle install
20
+
21
+ # run tests!
22
+ - run:
23
+ name: run tests
24
+ command: |
25
+ bundle exec rake
@@ -1,4 +1,15 @@
1
- ## [1.4.0] - 2017-01-20
1
+ # Change Log
2
+
3
+ ## [1.4.2] - 2017-09-11
4
+ ### Fxied
5
+ - Updated `*.rb` files' file permissions.
6
+
7
+ ## [1.4.1] - 2017-09-06
8
+ ### Added
9
+ - Add compatibility with `jwt` gem `v2.0`.
10
+
11
+
12
+ ## [1.4.0] - 2017-09-01
2
13
  ### Added
3
14
  - Add `expiry` option to the `Validator` which defines the time after which the certificates cache should be renewed. This prevents continuously fetching them in case of constant decoding errors.
4
15
 
@@ -112,7 +112,7 @@ module GoogleIDToken
112
112
  @certs.detect do |key, cert|
113
113
  begin
114
114
  public_key = cert.public_key
115
- decoded_token = JWT.decode(token, public_key, !!public_key)
115
+ decoded_token = JWT.decode(token, public_key, !!public_key, { :algorithm => 'RS256' })
116
116
  payload = decoded_token.first
117
117
 
118
118
  # in Feb 2013, the 'cid' claim became the 'azp' claim per changes
@@ -1,3 +1,3 @@
1
1
  module GoogleIDToken
2
- VERSION = "1.4.0".freeze
2
+ VERSION = "1.4.2".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-id-token
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Bray
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-09-01 00:00:00.000000000 Z
12
+ date: 2017-09-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jwt
@@ -87,6 +87,7 @@ executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
+ - ".circleci/config.yml"
90
91
  - ".gitignore"
91
92
  - ".rspec"
92
93
  - CHANGELOG.md