omniauth-nitro-id 1.3.2 → 1.4.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: f7d4793af4dcd6a40df7cf3185a92f7ebc010e967f4499948d8e7b315a23acf5
4
- data.tar.gz: 013e9cdf1c207fc29e2145a8459db480507be683ba02918438c530db46346133
3
+ metadata.gz: 540e118532d588bc53abb1346f9e6cad405b9085ce9d064ecc42141253455b4b
4
+ data.tar.gz: d3453b838a6ce0f7d5d70628ae3804c5b14016b1c684f1205d5fbdad88848c93
5
5
  SHA512:
6
- metadata.gz: f9ffadaba1ac4caeb00b464a434983ac80613981f4bc1dd85d51d8025ed948bcd1aa2489ccbf2384fc487d5bcdf5092a8d37b6a92b4642b173cfac0492eee340
7
- data.tar.gz: 1226568d0bb6a3397c7dd0b90592917bfa7ec589bcf2c5e5a7c994aaf294d8a4dad7ac9713b362dd0ab11b5d36bffa0bee499458b7c1d6d56fe44c164e5ba121
6
+ metadata.gz: 7d2454b3f4b512fa259815a51ddc0cb2ac78e2638cbdc0e723c0e78a10c1cee91e776b3b12476f89529a82e7517792d90492c019c959752511ebfcb0a01865a7
7
+ data.tar.gz: 75086290105abdebc251644ec3027826f1f9c6a6fd3bee9632d7de3c4cf8d9368be8c262b28d873e13fea98f531f2b92a2bea9f80c202ad6490a81c2f57efea1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- omniauth-nitro-id (1.3.2)
4
+ omniauth-nitro-id (1.4.0)
5
5
  omniauth-rails_csrf_protection (= 1.0.1)
6
6
  omniauth_openid_connect (~> 0.4.0)
7
7
 
data/docs/CHANGELOG.md CHANGED
@@ -7,6 +7,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.4.0]
11
+
12
+ ### Changed
13
+
14
+ * Use dynamic issuer for JWK discovery and token introspection
15
+
16
+ ## [1.3.3] - 2024-07-01
17
+
18
+ ### Fixed
19
+
20
+ * Correct URLs for JWK discovery and token introspection. PR [#43](https://github.com/powerhome/omniauth-nitro-id/pull/43)
21
+
22
+ ## [1.3.2] - 2024-06-30
23
+
24
+ ### Fixed
25
+
26
+ * Correct default issuer value for nitro-id and tempo-id strategies. PR [#41](https://github.com/powerhome/omniauth-nitro-id/pull/41)
27
+
10
28
  ## [1.3.1] - 2023-09-21
11
29
 
12
30
  * Display better error message for missing credentials. PR [#27](https://github.com/powerhome/omniauth-nitro-id/pull/27)
@@ -47,7 +65,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
47
65
 
48
66
  * Initial release
49
67
 
50
- [Unreleased]: https://github.com/powerhome/omniauth-nitro-id/compare/v1.3.1...HEAD
68
+ [Unreleased]: https://github.com/powerhome/omniauth-nitro-id/compare/v1.4.0...HEAD
69
+ [1.4.0]: https://github.com/powerhome/omniauth-nitro-id/releases/tag/v1.4.0
70
+ [1.3.3]: https://github.com/powerhome/omniauth-nitro-id/releases/tag/v1.3.3
71
+ [1.3.2]: https://github.com/powerhome/omniauth-nitro-id/releases/tag/v1.3.2
51
72
  [1.3.1]: https://github.com/powerhome/omniauth-nitro-id/releases/tag/v1.3.1
52
73
  [1.3.0]: https://github.com/powerhome/omniauth-nitro-id/releases/tag/v1.3.0
53
74
  [1.2.1]: https://github.com/powerhome/omniauth-nitro-id/releases/tag/v1.2.1
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module NitroId
5
- VERSION = "1.3.2"
5
+ VERSION = "1.4.0"
6
6
  end
7
7
  end
@@ -32,7 +32,7 @@ module OmniAuth
32
32
  end
33
33
 
34
34
  def self.fetch_jwks
35
- key = ::OpenIDConnect.http_client.get("#{default_options[:issuer]}.well-known/jwks.json").body
35
+ key = ::OpenIDConnect.http_client.get("#{options[:issuer]}/.well-known/jwks.json").body
36
36
  json = key.is_a?(String) ? JSON.parse(key) : key
37
37
  return JSON::JWK::Set.new(json["keys"]) if json.key?("keys")
38
38
 
@@ -45,9 +45,9 @@ module OmniAuth
45
45
  body: { token: token },
46
46
  }
47
47
 
48
- response = ::OpenIDConnect.http_client.post("#{default_options[:issuer]}api/tokens/introspect", **options)
48
+ response = ::OpenIDConnect.http_client.post("#{options[:issuer]}/api/tokens/introspect", **options)
49
49
 
50
- raise APIError, "#{default_options[:name]} error: #{response.status}" if response.status.to_i >= 400
50
+ raise APIError, "#{options[:name]} error: #{response.status}" if response.status.to_i >= 400
51
51
 
52
52
  JSON.parse(response.body)
53
53
  end
@@ -5,8 +5,8 @@ require File.expand_path("lib/omniauth/nitro_id/version", __dir__)
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "omniauth-nitro-id"
7
7
  spec.version = OmniAuth::NitroId::VERSION
8
- spec.authors = ["Stephen Greer"]
9
- spec.email = ["stephen.greer@powerhrg.com"]
8
+ spec.authors = ["Stephen Greer", "Katie Edgar"]
9
+ spec.email = ["stephen.greer@powerhrg.com", "k.weber0893@gmail.com"]
10
10
  spec.summary = "NitroID Strategy for OmniAuth."
11
11
  spec.description = "NitroID Strategy for OmniAuth."
12
12
  spec.homepage = "https://github.com/powerhome/omniauth-nitro-id"
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-nitro-id
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Greer
8
+ - Katie Edgar
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2024-07-01 00:00:00.000000000 Z
12
+ date: 2024-12-18 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: omniauth_openid_connect
@@ -167,6 +168,7 @@ dependencies:
167
168
  description: NitroID Strategy for OmniAuth.
168
169
  email:
169
170
  - stephen.greer@powerhrg.com
171
+ - k.weber0893@gmail.com
170
172
  executables: []
171
173
  extensions: []
172
174
  extra_rdoc_files: []