jwk-loader 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.release-please-manifest.json +3 -0
- data/CHANGELOG.md +14 -7
- data/Gemfile +3 -4
- data/README.md +6 -3
- data/lib/jwk_loader/config/config.rb +1 -1
- data/lib/jwk_loader/version.rb +1 -1
- data/release-please-config.json +9 -0
- metadata +10 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e77eb1ce66789b0d37f9d200ae80d5af43b7de7745f00bfe0548b87301120c79
|
4
|
+
data.tar.gz: 5d71e2e2cc5f4caa96b076c7528e03e6e257e306176f935e2683d3781cb1f8db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3d808d24e6c331db89d5cd8cad4bce5ce94e36e9d8ad99c2a18588bcb8043416b04239da6a0b899d4c193591e6736cee0198358bbb5abc163b007251e445397
|
7
|
+
data.tar.gz: 025ce184c452c2d8dcf632ee823d98e215a80c011db6d75bd253d44ad4a66e8a4f95dd1eb013fd2fdb51a6dbc1540ea59fbaef931e8239a8b18951da327b86f1
|
data/CHANGELOG.md
CHANGED
@@ -1,14 +1,21 @@
|
|
1
|
-
|
1
|
+
# Changelog
|
2
2
|
|
3
|
-
## [1.
|
3
|
+
## [1.1.0](https://github.com/anakinj/jwk-loader/compare/v1.0.0...v1.1.0) (2024-08-10)
|
4
|
+
|
5
|
+
|
6
|
+
### Features
|
7
|
+
|
8
|
+
* Official support for Ruby 3.2 and 3.3 ([2f6079f](https://github.com/anakinj/jwk-loader/commit/2f6079fd490a4918524974ffb1d897abbf875787))
|
9
|
+
|
10
|
+
## [1.0.0](https://github.com/anakinj/jwk-loader/compare/v0.1.1...v1.0.0) (2023-12-28)
|
11
|
+
|
12
|
+
### Features
|
4
13
|
|
5
14
|
- `jwk_loader/test` for convenience for testing without external dependencies. [#6](https://github.com/anakinj/jwk-loader/pull/6) ([@anakinj](https://github.com/anakinj))
|
6
15
|
- Serialize the cached key sets into `JWT::JWK:Set` to avoid generating OpenSSL PKeys for each time the keys are used. [#6](https://github.com/anakinj/jwk-loader/pull/6) ([@anakinj](https://github.com/anakinj))
|
7
16
|
|
8
|
-
## [0.1.1
|
9
|
-
|
10
|
-
- make sure 'net/http' is required [#2](https://github.com/anakinj/jwk-loader/pull/2) ([@lukad](https://github.com/lukad)).
|
17
|
+
## [1.0.0](https://github.com/anakinj/jwk-loader/compare/v0.1.0...v0.1.1) (2022-08-26)
|
11
18
|
|
12
|
-
|
19
|
+
### Fixes
|
13
20
|
|
14
|
-
-
|
21
|
+
- make sure 'net/http' is required [#2](https://github.com/anakinj/jwk-loader/pull/2) ([@lukad](https://github.com/lukad)).
|
data/Gemfile
CHANGED
@@ -2,12 +2,11 @@
|
|
2
2
|
|
3
3
|
source "https://rubygems.org"
|
4
4
|
|
5
|
-
# Specify your gem's dependencies in jwk-loader.gemspec
|
6
5
|
gemspec
|
7
6
|
|
8
|
-
gem "rake"
|
9
|
-
gem "rspec"
|
10
|
-
gem "rubocop"
|
7
|
+
gem "rake"
|
8
|
+
gem "rspec"
|
9
|
+
gem "rubocop"
|
11
10
|
gem "simplecov"
|
12
11
|
gem "vcr"
|
13
12
|
gem "webmock"
|
data/README.md
CHANGED
@@ -1,6 +1,9 @@
|
|
1
|
-
#
|
1
|
+
# jwk-loader
|
2
2
|
|
3
|
-
|
3
|
+
[](https://badge.fury.io/rb/jwk-loader)
|
4
|
+
[](https://github.com/anakinj/jwk-loader/actions/workflows/test.yml)
|
5
|
+
|
6
|
+
This gem can be used in combination with the [ruby-jwt](https://rubygems.org/gems/jwt) gem as the mechanism to load and cache the JWKs.
|
4
7
|
|
5
8
|
## Installation
|
6
9
|
|
@@ -34,7 +37,7 @@ RSpec.describe 'GET /protected' do
|
|
34
37
|
include JwkLoader::Test
|
35
38
|
|
36
39
|
context 'when called with a valid token' do
|
37
|
-
let(:token) { sign_test_token(token_payload: { user_id:
|
40
|
+
let(:token) { sign_test_token(token_payload: { user_id: "user" }, jwk_endpoint: "https://url/to/public/jwks") }
|
38
41
|
subject(:response) { get('/protected', { 'HTTP_AUTHORIZATION' => "Bearer #{token}" }) }
|
39
42
|
|
40
43
|
it 'is a success' do
|
data/lib/jwk_loader/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jwk-loader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joakim Antman
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -38,13 +38,14 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '2.6'
|
41
|
-
description:
|
41
|
+
description:
|
42
42
|
email:
|
43
43
|
- antmanj@gmail.com
|
44
44
|
executables: []
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
+
- ".release-please-manifest.json"
|
48
49
|
- ".rspec"
|
49
50
|
- ".rubocop.yml"
|
50
51
|
- CHANGELOG.md
|
@@ -62,6 +63,7 @@ files:
|
|
62
63
|
- lib/jwk_loader/memory_cache.rb
|
63
64
|
- lib/jwk_loader/test.rb
|
64
65
|
- lib/jwk_loader/version.rb
|
66
|
+
- release-please-config.json
|
65
67
|
homepage: https://github.com/anakinj/jwk-loader
|
66
68
|
licenses:
|
67
69
|
- MIT
|
@@ -69,9 +71,9 @@ metadata:
|
|
69
71
|
allowed_push_host: https://rubygems.org
|
70
72
|
homepage_uri: https://github.com/anakinj/jwk-loader
|
71
73
|
source_code_uri: https://github.com/anakinj/jwk-loader
|
72
|
-
changelog_uri: https://github.com/anakinj/jwk-loader/blob/1.
|
74
|
+
changelog_uri: https://github.com/anakinj/jwk-loader/blob/1.1.0/CHANGELOG.md
|
73
75
|
rubygems_mfa_required: 'true'
|
74
|
-
post_install_message:
|
76
|
+
post_install_message:
|
75
77
|
rdoc_options: []
|
76
78
|
require_paths:
|
77
79
|
- lib
|
@@ -86,8 +88,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
88
|
- !ruby/object:Gem::Version
|
87
89
|
version: '0'
|
88
90
|
requirements: []
|
89
|
-
rubygems_version: 3.
|
90
|
-
signing_key:
|
91
|
+
rubygems_version: 3.5.11
|
92
|
+
signing_key:
|
91
93
|
specification_version: 4
|
92
94
|
summary: Tooling for handling JWK loading, parsing and caching
|
93
95
|
test_files: []
|