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 +4 -4
- data/.circleci/config.yml +25 -0
- data/CHANGELOG.md +12 -1
- data/lib/google-id-token.rb +1 -1
- data/lib/google-id-token/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a775771925aca78d0abe25612d8ec20703f6e02e
|
4
|
+
data.tar.gz: e1f78c06c81b465e6527337356a3374ea92bf875
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,15 @@
|
|
1
|
-
|
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
|
|
data/lib/google-id-token.rb
CHANGED
@@ -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
|
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.
|
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-
|
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
|