auth0-verifier 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +25 -0
- data/.rubocop.yml +1 -1
- data/Gemfile +5 -5
- data/Gemfile.lock +44 -42
- data/README.md +4 -4
- data/auth0-verifier.gemspec +2 -2
- data/lib/auth0/verifier.rb +2 -1
- data/lib/auth0/verifier/configuration.rb +1 -1
- data/lib/auth0/verifier/version.rb +1 -1
- metadata +7 -7
- data/.travis.yml +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e0d4e351e81ab7fe5d3f2259c0d2bc35a72334d62a2d5677fc15d93e600490b
|
4
|
+
data.tar.gz: e28cb47c82096489a5a74e3a99d7c91bb9533e2763cf6941062224f948a22c83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a87b1a401fe72eb355ac8a24305b9e42ebef782b7f95e61f4a2329f895d03029b29dfeb520956444f00375f4a4b04071c003cdd5628fe6f5b3b57f58cb690b16
|
7
|
+
data.tar.gz: d295efa388b94f1a4ae5f54559ee7091558cb9c4fb743b58c616a02a3963fbc6b249f80c7a2cf284fb5c46350ba08678d6662ee2cb8561efbf9e0cc0f2c16cf9
|
@@ -0,0 +1,25 @@
|
|
1
|
+
name: Test
|
2
|
+
|
3
|
+
on: [push]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
test:
|
7
|
+
strategy:
|
8
|
+
matrix:
|
9
|
+
ruby: [2.4, 2.5, 2.6]
|
10
|
+
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
|
13
|
+
steps:
|
14
|
+
- uses: actions/checkout@v1
|
15
|
+
- name: Set up Ruby ${{ matrix.ruby }}
|
16
|
+
uses: actions/setup-ruby@v1
|
17
|
+
with:
|
18
|
+
ruby-version: ${{ matrix.ruby }}
|
19
|
+
- name: Build and test with Rake
|
20
|
+
env:
|
21
|
+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
22
|
+
run: |
|
23
|
+
gem install bundler
|
24
|
+
bundle install --jobs 4 --retry 3
|
25
|
+
bundle exec rspec
|
data/.rubocop.yml
CHANGED
data/Gemfile
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
source 'https://rubygems.org'
|
4
4
|
|
5
5
|
group :development do
|
6
|
-
gem 'rubocop', '~> 0.
|
6
|
+
gem 'rubocop', '~> 0.76'
|
7
7
|
gem 'rubocop-rspec'
|
8
8
|
end
|
9
9
|
|
@@ -12,10 +12,10 @@ group :development, :test do
|
|
12
12
|
end
|
13
13
|
|
14
14
|
group :test do
|
15
|
-
gem '
|
16
|
-
gem 'rspec', '~> 3.
|
17
|
-
gem 'simplecov', '~> 0.
|
18
|
-
gem 'webmock', '~> 3.
|
15
|
+
gem 'codecov', require: false
|
16
|
+
gem 'rspec', '~> 3.9'
|
17
|
+
gem 'simplecov', '~> 0.17', require: false
|
18
|
+
gem 'webmock', '~> 3.7'
|
19
19
|
end
|
20
20
|
|
21
21
|
gemspec
|
data/Gemfile.lock
CHANGED
@@ -1,72 +1,73 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
auth0-verifier (0.
|
4
|
+
auth0-verifier (0.3.0)
|
5
5
|
jwt (>= 2.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
addressable (2.
|
11
|
-
public_suffix (>= 2.0.2, <
|
10
|
+
addressable (2.7.0)
|
11
|
+
public_suffix (>= 2.0.2, < 5.0)
|
12
12
|
ast (2.4.0)
|
13
|
+
codecov (0.1.16)
|
14
|
+
json
|
15
|
+
simplecov
|
16
|
+
url
|
13
17
|
coderay (1.1.2)
|
14
18
|
crack (0.4.3)
|
15
19
|
safe_yaml (~> 1.0.0)
|
16
20
|
diff-lcs (1.3)
|
17
|
-
docile (1.3.
|
18
|
-
hashdiff (0.
|
19
|
-
jaro_winkler (1.5.
|
21
|
+
docile (1.3.2)
|
22
|
+
hashdiff (1.0.0)
|
23
|
+
jaro_winkler (1.5.4)
|
20
24
|
json (2.2.0)
|
21
|
-
jwt (2.1
|
25
|
+
jwt (2.2.1)
|
22
26
|
method_source (0.9.2)
|
23
|
-
parallel (1.
|
24
|
-
parser (2.6.
|
27
|
+
parallel (1.18.0)
|
28
|
+
parser (2.6.5.0)
|
25
29
|
ast (~> 2.4.0)
|
26
|
-
powerpack (0.1.2)
|
27
30
|
pry (0.12.2)
|
28
31
|
coderay (~> 1.1.0)
|
29
32
|
method_source (~> 0.9.0)
|
30
|
-
|
31
|
-
public_suffix (3.0.3)
|
33
|
+
public_suffix (4.0.1)
|
32
34
|
rainbow (3.0.0)
|
33
|
-
rake (12.3.
|
34
|
-
rspec (3.
|
35
|
-
rspec-core (~> 3.
|
36
|
-
rspec-expectations (~> 3.
|
37
|
-
rspec-mocks (~> 3.
|
38
|
-
rspec-core (3.
|
39
|
-
rspec-support (~> 3.
|
40
|
-
rspec-expectations (3.
|
35
|
+
rake (12.3.3)
|
36
|
+
rspec (3.9.0)
|
37
|
+
rspec-core (~> 3.9.0)
|
38
|
+
rspec-expectations (~> 3.9.0)
|
39
|
+
rspec-mocks (~> 3.9.0)
|
40
|
+
rspec-core (3.9.0)
|
41
|
+
rspec-support (~> 3.9.0)
|
42
|
+
rspec-expectations (3.9.0)
|
41
43
|
diff-lcs (>= 1.2.0, < 2.0)
|
42
|
-
rspec-support (~> 3.
|
43
|
-
rspec-mocks (3.
|
44
|
+
rspec-support (~> 3.9.0)
|
45
|
+
rspec-mocks (3.9.0)
|
44
46
|
diff-lcs (>= 1.2.0, < 2.0)
|
45
|
-
rspec-support (~> 3.
|
46
|
-
rspec-support (3.
|
47
|
-
rubocop (0.
|
47
|
+
rspec-support (~> 3.9.0)
|
48
|
+
rspec-support (3.9.0)
|
49
|
+
rubocop (0.76.0)
|
48
50
|
jaro_winkler (~> 1.5.1)
|
49
51
|
parallel (~> 1.10)
|
50
|
-
parser (>= 2.
|
51
|
-
powerpack (~> 0.1)
|
52
|
-
psych (>= 3.1.0)
|
52
|
+
parser (>= 2.6)
|
53
53
|
rainbow (>= 2.2.2, < 4.0)
|
54
54
|
ruby-progressbar (~> 1.7)
|
55
|
-
unicode-display_width (
|
56
|
-
rubocop-rspec (1.
|
57
|
-
rubocop (>= 0.
|
58
|
-
ruby-progressbar (1.10.
|
55
|
+
unicode-display_width (>= 1.4.0, < 1.7)
|
56
|
+
rubocop-rspec (1.36.0)
|
57
|
+
rubocop (>= 0.68.1)
|
58
|
+
ruby-progressbar (1.10.1)
|
59
59
|
safe_yaml (1.0.5)
|
60
|
-
simplecov (0.
|
60
|
+
simplecov (0.17.1)
|
61
61
|
docile (~> 1.1)
|
62
62
|
json (>= 1.8, < 3)
|
63
63
|
simplecov-html (~> 0.10.0)
|
64
64
|
simplecov-html (0.10.2)
|
65
|
-
unicode-display_width (1.
|
66
|
-
|
65
|
+
unicode-display_width (1.6.0)
|
66
|
+
url (0.3.2)
|
67
|
+
webmock (3.7.6)
|
67
68
|
addressable (>= 2.3.6)
|
68
69
|
crack (>= 0.3.2)
|
69
|
-
hashdiff
|
70
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
70
71
|
|
71
72
|
PLATFORMS
|
72
73
|
ruby
|
@@ -74,13 +75,14 @@ PLATFORMS
|
|
74
75
|
DEPENDENCIES
|
75
76
|
auth0-verifier!
|
76
77
|
bundler (~> 2.0)
|
78
|
+
codecov
|
77
79
|
pry
|
78
|
-
rake
|
79
|
-
rspec (~> 3.
|
80
|
-
rubocop (~> 0.
|
80
|
+
rake (~> 12.0)
|
81
|
+
rspec (~> 3.9)
|
82
|
+
rubocop (~> 0.76)
|
81
83
|
rubocop-rspec
|
82
|
-
simplecov (~> 0.
|
83
|
-
webmock (~> 3.
|
84
|
+
simplecov (~> 0.17)
|
85
|
+
webmock (~> 3.7)
|
84
86
|
|
85
87
|
BUNDLED WITH
|
86
|
-
2.0.
|
88
|
+
2.0.2
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
Verify [Auth0][auth0] JWT token using RS256 with JWKS method.
|
4
4
|
|
5
5
|
[![Gem Version](https://img.shields.io/gem/v/auth0-verifier.svg?style=flat-square)][rubygems]
|
6
|
-
[![
|
6
|
+
[![Coverage Status](https://img.shields.io/codecov/c/github/jpalumickas/mailerlite-ruby?style=flat-square)][codecov]
|
7
7
|
|
8
8
|
## Installation
|
9
9
|
|
@@ -42,10 +42,9 @@ Auth0::Verifier.verify('my token')
|
|
42
42
|
|
43
43
|
## Supported Ruby Versions
|
44
44
|
|
45
|
-
This library aims to support and is [tested against][
|
45
|
+
This library aims to support and is [tested against][github_actions] the following Ruby
|
46
46
|
implementations:
|
47
47
|
|
48
|
-
* Ruby 2.3.0
|
49
48
|
* Ruby 2.4.0
|
50
49
|
* Ruby 2.5.0
|
51
50
|
* Ruby 2.6.0
|
@@ -63,7 +62,8 @@ Everyone interacting in the Auth0 Verifier project’s codebases, issue trackers
|
|
63
62
|
Copyright (c) 2019 Justas Palumickas. See [LICENSE][license] for details.
|
64
63
|
|
65
64
|
[rubygems]: https://rubygems.org/gems/auth0-verifier
|
66
|
-
[
|
65
|
+
[codecov]: https://codecov.io/gh/jpalumickas/auth0-verifier
|
66
|
+
[github_actions]: https://github.com/jpalumickas/auth0-verifier/actions
|
67
67
|
|
68
68
|
[license]: https://raw.githubusercontent.com/jpalumickas/auth0-verifie/master/LICENSE
|
69
69
|
[auth0]: https://auth0.com
|
data/auth0-verifier.gemspec
CHANGED
@@ -31,9 +31,9 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
32
32
|
spec.require_paths = ['lib']
|
33
33
|
|
34
|
-
spec.required_ruby_version = '>= 2.
|
34
|
+
spec.required_ruby_version = '>= 2.4.0'
|
35
35
|
|
36
36
|
spec.add_dependency 'jwt', '>= 2.0'
|
37
37
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
38
|
-
spec.add_development_dependency 'rake', '~>
|
38
|
+
spec.add_development_dependency 'rake', '~> 12.0'
|
39
39
|
end
|
data/lib/auth0/verifier.rb
CHANGED
@@ -15,7 +15,8 @@ module Auth0
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def verify!(options = {})
|
18
|
-
|
18
|
+
handler_options = options.dup.tap { |it| it.delete(:token) }
|
19
|
+
handler = Auth0::Verifier::Handler.new(handler_options)
|
19
20
|
handler.verify(options[:token])
|
20
21
|
end
|
21
22
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: auth0-verifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justas Palumickas
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '12.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '12.0'
|
55
55
|
description: Auth0 verifier for Auth0 JWT tokens for RS256
|
56
56
|
email:
|
57
57
|
- jpalumickas@gmail.com
|
@@ -59,10 +59,10 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
+
- ".github/workflows/test.yml"
|
62
63
|
- ".gitignore"
|
63
64
|
- ".rspec"
|
64
65
|
- ".rubocop.yml"
|
65
|
-
- ".travis.yml"
|
66
66
|
- CODE_OF_CONDUCT.md
|
67
67
|
- Gemfile
|
68
68
|
- Gemfile.lock
|
@@ -97,14 +97,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
97
97
|
requirements:
|
98
98
|
- - ">="
|
99
99
|
- !ruby/object:Gem::Version
|
100
|
-
version: 2.
|
100
|
+
version: 2.4.0
|
101
101
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
102
|
requirements:
|
103
103
|
- - ">="
|
104
104
|
- !ruby/object:Gem::Version
|
105
105
|
version: '0'
|
106
106
|
requirements: []
|
107
|
-
rubygems_version: 3.0.
|
107
|
+
rubygems_version: 3.0.6
|
108
108
|
signing_key:
|
109
109
|
specification_version: 4
|
110
110
|
summary: Auth0 token verifier
|
data/.travis.yml
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
---
|
2
|
-
sudo: false
|
3
|
-
bundler_args: --without development
|
4
|
-
|
5
|
-
language: ruby
|
6
|
-
|
7
|
-
cache: bundler
|
8
|
-
|
9
|
-
rvm:
|
10
|
-
- 2.3.0
|
11
|
-
- 2.4.0
|
12
|
-
- 2.5.0
|
13
|
-
- 2.6.0
|
14
|
-
- ruby-head
|
15
|
-
|
16
|
-
before_install:
|
17
|
-
- gem install bundler -v 2.0.1
|
18
|
-
|
19
|
-
script:
|
20
|
-
- bundle exec rspec
|
21
|
-
|
22
|
-
matrix:
|
23
|
-
allow_failures:
|
24
|
-
- rvm: ruby-head
|