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 +4 -4
- data/Gemfile.lock +1 -1
- data/docs/CHANGELOG.md +22 -1
- data/lib/omniauth/nitro_id/version.rb +1 -1
- data/lib/omniauth/strategies/base_strategy.rb +3 -3
- data/omniauth-nitro-id.gemspec +2 -2
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 540e118532d588bc53abb1346f9e6cad405b9085ce9d064ecc42141253455b4b
|
4
|
+
data.tar.gz: d3453b838a6ce0f7d5d70628ae3804c5b14016b1c684f1205d5fbdad88848c93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d2454b3f4b512fa259815a51ddc0cb2ac78e2638cbdc0e723c0e78a10c1cee91e776b3b12476f89529a82e7517792d90492c019c959752511ebfcb0a01865a7
|
7
|
+
data.tar.gz: 75086290105abdebc251644ec3027826f1f9c6a6fd3bee9632d7de3c4cf8d9368be8c262b28d873e13fea98f531f2b92a2bea9f80c202ad6490a81c2f57efea1
|
data/Gemfile.lock
CHANGED
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.
|
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
|
@@ -32,7 +32,7 @@ module OmniAuth
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def self.fetch_jwks
|
35
|
-
key = ::OpenIDConnect.http_client.get("#{
|
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("#{
|
48
|
+
response = ::OpenIDConnect.http_client.post("#{options[:issuer]}/api/tokens/introspect", **options)
|
49
49
|
|
50
|
-
raise APIError, "#{
|
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
|
data/omniauth-nitro-id.gemspec
CHANGED
@@ -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.
|
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-
|
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: []
|