omniauth-entra-id 3.1.0 → 3.1.1
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/CHANGELOG.md +4 -0
- data/lib/omniauth/entra_id/version.rb +2 -2
- data/lib/omniauth/strategies/entra_id.rb +10 -3
- data/omniauth-entra-id.gemspec +2 -2
- metadata +11 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f88d4d932a03e4edf7a69461140c83eab2a408c1c61798acc5e26bedfdf0519f
|
4
|
+
data.tar.gz: 78928ac033c9a312d47491c7414f0fee3962144d97bbae3150a519ff7226c6bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1333c75cc62116751fbb81277b8139597cc8cb776f17cfd6acae367b4d2d9f94ad8e00cafdac68ec26bd1ac8a2157333246da52b07e3145c3ca44d74d4a3865
|
7
|
+
data.tar.gz: f9b3ab664ca1275af9d6b8bfbe3714c47080d3c506a2188833bfa9adbc5ee32c77fed8e2f758ee22071c7d503e45c601913cbb9c19ef6e15f2ddf3b828369bbb
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## v3.1.1 (2025-09-12)
|
4
|
+
|
5
|
+
* Validates the JWT `iss` (issuer) claim for `consumers` tenants properly, using the global GUID for that use case, resolving #51 (reported by @2called-chaos)
|
6
|
+
|
3
7
|
## v3.1.0 (2025-06-17)
|
4
8
|
|
5
9
|
* Provides a way to ignore TID when constructing a user UID, easing migration from v2.x, via the new `ignore_tid` option, resolving #42 (reported by @s-andringa)
|
@@ -12,9 +12,12 @@ module OmniAuth
|
|
12
12
|
option :ignore_tid, false
|
13
13
|
option :jwt_leeway, 60
|
14
14
|
|
15
|
-
DEFAULT_SCOPE
|
16
|
-
COMMON_TENANT_ID
|
17
|
-
AD_FS_TENANT_ID
|
15
|
+
DEFAULT_SCOPE = 'openid profile email'
|
16
|
+
COMMON_TENANT_ID = 'common'
|
17
|
+
AD_FS_TENANT_ID = 'adfs'
|
18
|
+
ORGANIZATIONS_TENANT_ID = 'organizations'
|
19
|
+
CONSUMERS_TENANT_ID = 'consumers'
|
20
|
+
CONSUMERS_TENANT_GUID = '9188040d-6c67-4c5b-b112-36a304b66dad'
|
18
21
|
|
19
22
|
# The tenant_provider argument is how the provider class is eventually
|
20
23
|
# passed to us, if one is used instead of an options Hash.
|
@@ -160,6 +163,8 @@ module OmniAuth
|
|
160
163
|
# for AD FS local instances, as we don't put a valid tenant ID in its
|
161
164
|
# place, but "adfs" (see AD_FS_TENANT_ID) instead.
|
162
165
|
#
|
166
|
+
# TODO: Unclear about approach to use for ORGANIZATIONS_TENANT_ID.
|
167
|
+
#
|
163
168
|
do_not_verify = (
|
164
169
|
options.tenant_id.nil? ||
|
165
170
|
options.tenant_id == COMMON_TENANT_ID ||
|
@@ -168,6 +173,8 @@ module OmniAuth
|
|
168
173
|
|
169
174
|
issuer = if do_not_verify
|
170
175
|
nil
|
176
|
+
elsif options.tenant_id == CONSUMERS_TENANT_ID
|
177
|
+
"#{options.base_url || BASE_URL}/#{CONSUMERS_TENANT_GUID}/v2.0"
|
171
178
|
else
|
172
179
|
"#{options.base_url || BASE_URL}/#{options.tenant_id}/v2.0"
|
173
180
|
end
|
data/omniauth-entra-id.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.authors = [ 'RIPA Global' ]
|
15
15
|
s.email = [ 'dev@ripaglobal.com' ]
|
16
16
|
s.licenses = [ 'MIT' ]
|
17
|
-
s.homepage = 'https://github.com/pond/
|
17
|
+
s.homepage = 'https://github.com/pond/omniauth-entra-id'
|
18
18
|
|
19
19
|
s.required_ruby_version = Gem::Requirement.new('>= 3.0.0')
|
20
20
|
s.require_paths = ['lib']
|
@@ -48,7 +48,7 @@ Gem::Specification.new do |s|
|
|
48
48
|
s.add_runtime_dependency 'jwt', '>= 2.9.2'
|
49
49
|
s.add_runtime_dependency 'omniauth-oauth2', '~> 1.8'
|
50
50
|
|
51
|
-
s.add_development_dependency 'debug', '~> 1.
|
51
|
+
s.add_development_dependency 'debug', '~> 1.11'
|
52
52
|
s.add_development_dependency 'rake', '~> 13.3'
|
53
53
|
s.add_development_dependency 'rspec', '~> 3.13'
|
54
54
|
end
|
metadata
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-entra-id
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- RIPA Global
|
8
|
+
autorequire:
|
8
9
|
bindir: exe
|
9
10
|
cert_chain: []
|
10
|
-
date: 2025-
|
11
|
+
date: 2025-09-12 00:00:00.000000000 Z
|
11
12
|
dependencies:
|
12
13
|
- !ruby/object:Gem::Dependency
|
13
14
|
name: jwt
|
@@ -43,14 +44,14 @@ dependencies:
|
|
43
44
|
requirements:
|
44
45
|
- - "~>"
|
45
46
|
- !ruby/object:Gem::Version
|
46
|
-
version: '1.
|
47
|
+
version: '1.11'
|
47
48
|
type: :development
|
48
49
|
prerelease: false
|
49
50
|
version_requirements: !ruby/object:Gem::Requirement
|
50
51
|
requirements:
|
51
52
|
- - "~>"
|
52
53
|
- !ruby/object:Gem::Version
|
53
|
-
version: '1.
|
54
|
+
version: '1.11'
|
54
55
|
- !ruby/object:Gem::Dependency
|
55
56
|
name: rake
|
56
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -79,6 +80,7 @@ dependencies:
|
|
79
80
|
- - "~>"
|
80
81
|
- !ruby/object:Gem::Version
|
81
82
|
version: '3.13'
|
83
|
+
description:
|
82
84
|
email:
|
83
85
|
- dev@ripaglobal.com
|
84
86
|
executables: []
|
@@ -98,14 +100,15 @@ files:
|
|
98
100
|
- lib/omniauth/entra_id/version.rb
|
99
101
|
- lib/omniauth/strategies/entra_id.rb
|
100
102
|
- omniauth-entra-id.gemspec
|
101
|
-
homepage: https://github.com/pond/
|
103
|
+
homepage: https://github.com/pond/omniauth-entra-id
|
102
104
|
licenses:
|
103
105
|
- MIT
|
104
106
|
metadata:
|
105
|
-
homepage_uri: https://github.com/pond/
|
107
|
+
homepage_uri: https://github.com/pond/omniauth-entra-id
|
106
108
|
bug_tracker_uri: https://github.com/pond/omniauth-entra-id/issues/
|
107
109
|
changelog_uri: https://github.com/pond/omniauth-entra-id/blob/master/CHANGELOG.md
|
108
110
|
source_code_uri: https://github.com/pond/omniauth-entra-id
|
111
|
+
post_install_message:
|
109
112
|
rdoc_options: []
|
110
113
|
require_paths:
|
111
114
|
- lib
|
@@ -120,7 +123,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
123
|
- !ruby/object:Gem::Version
|
121
124
|
version: '0'
|
122
125
|
requirements: []
|
123
|
-
rubygems_version: 3.
|
126
|
+
rubygems_version: 3.5.16
|
127
|
+
signing_key:
|
124
128
|
specification_version: 4
|
125
129
|
summary: OAuth 2 authentication with the Entra ID API.
|
126
130
|
test_files: []
|