omniauth-nitro-id 1.3.3 → 1.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 294482e9a6972a989ba82412afac94bf0b4c90ae6a075543cd255ee575960e1a
4
- data.tar.gz: 345613850b882aa3353232b0d3957a0ca13b75936e5ef22a2b2a1f5c78d07736
3
+ metadata.gz: 540e118532d588bc53abb1346f9e6cad405b9085ce9d064ecc42141253455b4b
4
+ data.tar.gz: d3453b838a6ce0f7d5d70628ae3804c5b14016b1c684f1205d5fbdad88848c93
5
5
  SHA512:
6
- metadata.gz: ebbe467922576ec19298431e96e0b740a24d0c582b5b869ad380a19404f876f7b608a8669394f666918618aa69370d5ed83d30d20756b5c2315baf85a6969946
7
- data.tar.gz: a037fafa951aa910f98e6c6d33659b0f0e26964395fa9e7d34e5aab16ae9af9839d896abc3c17e0ea32bc2af7c532145fef972dd8533ea27742056cc860d14e2
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.3)
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.3"
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.3
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: []