omniauth_openid_connect 0.7.1 → 0.8.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4c2be6aafa448af62c29c2183954e27a374018d270ac09137b04eb6b5e0aaeba
4
- data.tar.gz: 3254e1780018a43ee507d7a43ad310dcbec9abe4c0de20ba7e93f78f22c61067
3
+ metadata.gz: e630092823855b6fb561de02b219d62dca82105d50fdca797d3fefe27264e226
4
+ data.tar.gz: 79ece00e7e487bc9e2c8148280db0075c839c5a204dd10866be4e260d8c1fafc
5
5
  SHA512:
6
- metadata.gz: 00060df4350aad1ed5a402e24562a4e774ef43fcba0cf501286e8d8f25a6d3d35a15b7c3f61541adb316b213fea64bab41ab3dea2a53eebaf9a84f427ea11a5e
7
- data.tar.gz: 9bdfc6dae8d63c6831611514e02c5108a5f3e417a2409f0e859a1c5262eb0d2939a476d4b70f8582c70bf5f6084e3f84301e9c9cbe7441691aa2b0e076dfc783
6
+ metadata.gz: 8ed0861179c73cbcf9fc984e6aee573acec861fbde25eda634c1d627dc2f330871ee9f3d70408288ec3cbbfec869460392e6c60814978cfe06ef9423a6278e76
7
+ data.tar.gz: 05a978c33013699ab45cd58121f63aea8d5e98975e7176f0afa656fdf0102a296101747e6dd1fedc227dad62a461e61f6b3cbc4856f75b06e7a9e5c4c92028d8
@@ -14,12 +14,12 @@ jobs:
14
14
  strategy:
15
15
  fail-fast: false
16
16
  matrix:
17
- ruby: ["2.7", "3.0", "3.1", "3.2"]
17
+ ruby: ["2.7", "3.0", "3.1", "3.2", "3.3", "3.4", "4.0", "jruby-10"]
18
18
  name: Ruby ${{ matrix.ruby }}
19
19
 
20
20
  steps:
21
21
  - name: Checkout code
22
- uses: actions/checkout@v3
22
+ uses: actions/checkout@v6
23
23
 
24
24
  - name: Setup Ruby
25
25
  uses: ruby/setup-ruby@v1
@@ -51,7 +51,7 @@ jobs:
51
51
  runs-on: ubuntu-latest
52
52
  steps:
53
53
  - name: Checkout code
54
- uses: actions/checkout@v3
54
+ uses: actions/checkout@v6
55
55
 
56
56
  - name: Setup Ruby
57
57
  uses: ruby/setup-ruby@v1
data/CHANGELOG.md CHANGED
@@ -1,25 +1,33 @@
1
1
  # Unreleased
2
2
 
3
- # v0.7.1 (26.04.2023)
3
+ # v0.8.1 (2026-11-27)
4
+
5
+ - Prefer the session nonce over the `nonce` callback parameter when verifying ID tokens (https://github.com/omniauth/omniauth_openid_connect/security/advisories/GHSA-f933-58j6-h68w)
6
+
7
+ # v0.8.0 (2024-07-04)
8
+
9
+ - Add `send_state` parameter to disable sending of state (https://github.com/omniauth/omniauth_openid_connect/pull/182)
10
+
11
+ # v0.7.1 (2023-04-26)
4
12
 
5
13
  - Fix handling of JWKS response (https://github.com/omniauth/omniauth_openid_connect/pull/157)
6
14
 
7
- # v0.7.0 (25.04.2023)
15
+ # v0.7.0 (2023-04-25)
8
16
 
9
17
  - Update openid_connect to 2.2 (https://github.com/omniauth/omniauth_openid_connect/pull/153)
10
18
  - Drop Ruby 2.5 and 2.6 CI support (https://github.com/omniauth/omniauth_openid_connect/pull/154)
11
19
  - Improvements to README (https://github.com/omniauth/omniauth_openid_connect/pull/152, https://github.com/omniauth/omniauth_openid_connect/pull/151)
12
20
  - Add option `logout_path` (https://github.com/omniauth/omniauth_openid_connect/pull/143)
13
21
 
14
- # v0.6.1 (22.02.2023)
22
+ # v0.6.1 (2023-02-22)
15
23
 
16
24
  - Fix uninitialized constant error (https://github.com/omniauth/omniauth_openid_connect/pull/147)
17
25
 
18
- # v0.6.0 (21.01.2023)
26
+ # v0.6.0 (2023-01-22)
19
27
 
20
28
  - Support verification of HS256-signed JWTs (https://github.com/omniauth/omniauth_openid_connect/pull/134)
21
29
 
22
- # v0.5.0 (26.12.2022)
30
+ # v0.5.0 (2022-12-26)
23
31
 
24
32
  - Support the "nonce" parameter forwarding without a session [#130](https://github.com/omniauth/omniauth_openid_connect/pull/130)
25
33
  - Fetch key from JWKS URI if available [#133](https://github.com/omniauth/omniauth_openid_connect/pull/133)
@@ -27,7 +35,7 @@
27
35
  - Add email_verified claim in user info [#131](https://github.com/omniauth/omniauth_openid_connect/pull/131)
28
36
  - Add PKCE verification support [#128](https://github.com/omniauth/omniauth_openid_connect/pull/128)
29
37
 
30
- # v0.4.0 (06.02.2022)
38
+ # v0.4.0 (2022-02-06)
31
39
 
32
40
  - Support dynamic parameters to the authorize URI [#90](https://github.com/omniauth/omniauth_openid_connect/pull/90)
33
41
  - Upgrade Faker and replace Travis with Github Actions [#102](https://github.com/omniauth/omniauth_openid_connect/pull/102)
@@ -35,12 +43,12 @@
35
43
  - Fall back to the discovered jwks when no key specified [#97](https://github.com/omniauth/omniauth_openid_connect/pull/97)
36
44
  - Allow updating to omniauth v2 [#88](https://github.com/omniauth/omniauth_openid_connect/pull/88)
37
45
 
38
- # v0.3.5 (07.06.2020)
46
+ # v0.3.5 (2020-06-07)
39
47
 
40
48
  - bugfix: Info from decoded id_token is not exposed into `request.env['omniauth.auth']` [#61](https://github.com/m0n9oose/omniauth_openid_connect/pull/61)
41
49
  - bugfix: NoMethodError (`undefined method 'count' for #<OpenIDConnect::ResponseObject::IdToken>`) [#60](https://github.com/m0n9oose/omniauth_openid_connect/pull/60)
42
50
 
43
- # v0.3.4 (21.05.2020)
51
+ # v0.3.4 (2020-05-21)
44
52
 
45
53
  - Try to verify id_token when response_type is code [#44](https://github.com/m0n9oose/omniauth_openid_connect/pull/44)
46
54
  - Provide more information on error [#49](https://github.com/m0n9oose/omniauth_openid_connect/pull/49)
@@ -49,7 +57,7 @@
49
57
  - refactor: take uid_field from raw_attributes [#54](https://github.com/m0n9oose/omniauth_openid_connect/pull/54)
50
58
  - chore(ci): add 2.7, ruby-head and jruby-head [#55](https://github.com/m0n9oose/omniauth_openid_connect/pull/55)
51
59
 
52
- # v0.3.3 (09.11.2019)
60
+ # v0.3.3 (2019-11-09)
53
61
 
54
62
  - Pass `acr_values` to authorize url [#43](https://github.com/m0n9oose/omniauth_openid_connect/pull/43)
55
63
  - Add raw info for id token [#42](https://github.com/m0n9oose/omniauth_openid_connect/pull/42)
@@ -59,17 +67,17 @@
59
67
  - Fix gemspec homepage [#33](https://github.com/m0n9oose/omniauth_openid_connect/pull/33)
60
68
  - Add support for `response_type` `id_token` [#32](https://github.com/m0n9oose/omniauth_openid_connect/pull/32)
61
69
 
62
- # v0.3.2 (03.08.2019)
70
+ # v0.3.2 (2019-08-03)
63
71
 
64
72
  - Use response_mode in `authorize_uri` if the option is defined [#30](https://github.com/m0n9oose/omniauth_openid_connect/pull/30)
65
73
  - Move verification of `id_token` to before accessing tokens [#28](https://github.com/m0n9oose/omniauth_openid_connect/pull/28)
66
74
  - Update omniauth dependency [#26](https://github.com/m0n9oose/omniauth_openid_connect/pull/26)
67
75
 
68
- # v0.3.1 (08.06.2019)
76
+ # v0.3.1 (2019-06-08)
69
77
 
70
78
  - Set default OmniAuth name to openid_connect [#23](https://github.com/m0n9oose/omniauth_openid_connect/pull/23)
71
79
 
72
- # v0.3.0 (27.04.2019)
80
+ # v0.3.0 (2019-04-07)
73
81
 
74
82
  - RP-Initiated Logout phase [#5](https://github.com/m0n9oose/omniauth_openid_connect/pull/5)
75
83
  - Allows `ui_locales`, `claims_locales` and `login_hint` as request params [#6](https://github.com/m0n9oose/omniauth_openid_connect/pull/6)
@@ -78,7 +86,7 @@
78
86
  - Handle errors when fetching access_token at callback_phase [#17](https://github.com/m0n9oose/omniauth_openid_connect/pull/17)
79
87
  - Allow state method to receive env [#19](https://github.com/m0n9oose/omniauth_openid_connect/pull/19)
80
88
 
81
- # v0.2.4 (06.01.2019)
89
+ # v0.2.4 (2019-01-06)
82
90
 
83
91
  - Prompt and login hint [#4](https://github.com/m0n9oose/omniauth_openid_connect/pull/4)
84
92
  - Bump openid_connect dependency [#9](https://github.com/m0n9oose/omniauth_openid_connect/pull/9)
data/README.md CHANGED
@@ -23,7 +23,7 @@ Or install it yourself as:
23
23
 
24
24
  ## Supported Ruby Versions
25
25
 
26
- OmniAuth::OpenIDConnect is tested under 2.7, 3.0, 3.1, 3.2
26
+ OmniAuth::OpenIDConnect is tested under 2.7, 3.0, 3.1, 3.2, 3.3, 3.4
27
27
 
28
28
  ## Usage
29
29
 
@@ -70,30 +70,32 @@ end
70
70
 
71
71
  ### Options Overview
72
72
 
73
- | Field | Description | Required | Default | Example/Options |
74
- |------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|-------------------------------|-----------------------------------------------------|
75
- | name | Arbitrary string to identify connection and identify it from other openid_connect providers | no | String: openid_connect | :my_idp |
76
- | issuer | Root url for the authorization server | yes | | https://myprovider.com |
77
- | discovery | Should OpenID discovery be used. This is recommended if the IDP provides a discovery endpoint. See client config for how to manually enter discovered values. | no | false | one of: true, false |
78
- | client_auth_method | Which authentication method to use to authenticate your app with the authorization server | no | Sym: basic | "basic", "jwks" |
79
- | scope | Which OpenID scopes to include (:openid is always required) | no | Array<sym> [:openid] | [:openid, :profile, :email] |
80
- | response_type | Which OAuth2 response type to use with the authorization request | no | String: code | one of: 'code', 'id_token' |
81
- | state | A value to be used for the OAuth2 state parameter on the authorization request. Can be a proc that generates a string. | no | Random 16 character string | Proc.new { SecureRandom.hex(32) } |
82
- | require_state | Should state param be verified - this is recommended, not required by the OIDC specification | no | true | false |
83
- | response_mode | The response mode per [spec](https://openid.net/specs/oauth-v2-form-post-response-mode-1_0.html) | no | nil | one of: :query, :fragment, :form_post, :web_message |
84
- | display | An optional parameter to the authorization request to determine how the authorization and consent page | no | nil | one of: :page, :popup, :touch, :wap |
85
- | prompt | An optional parameter to the authrization request to determine what pages the user will be shown | no | nil | one of: :none, :login, :consent, :select_account |
86
- | send_scope_to_token_endpoint | Should the scope parameter be sent to the authorization token endpoint? | no | true | one of: true, false |
87
- | post_logout_redirect_uri | The logout redirect uri to use per the [session management draft](https://openid.net/specs/openid-connect-session-1_0.html) | no | empty | https://myapp.com/logout/callback |
88
- | uid_field | The field of the user info response to be used as a unique id | no | 'sub' | "sub", "preferred_username" |
89
- | extra_authorize_params | A hash of extra fixed parameters that will be merged to the authorization request | no | Hash | {"tenant" => "common"} |
90
- | allow_authorize_params | A list of allowed dynamic parameters that will be merged to the authorization request | no | Array | [:screen_name] |
91
- | pkce | Enable [PKCE flow](https://oauth.net/2/pkce/) | no | false | one of: true, false |
92
- | pkce_verifier | Specify a custom PKCE verifier code. | no | A random 128-char string | Proc.new { SecureRandom.hex(64) } |
93
- | pkce_options | Specify a custom implementation of the PKCE code challenge/method. | no | SHA256(code_challenge) in hex | Proc to customise the code challenge generation |
94
- | client_options | A hash of client options detailed in its own section | yes | | |
95
- | jwt_secret_base64 | For HMAC with SHA2 (e.g. HS256) signing algorithms, specify the base64-encoded secret used to sign the JWT token. Defaults to the OAuth2 client secret if not specified. | no | client_options.secret | "bXlzZWNyZXQ=\n"
96
- | logout_path | The log out is only triggered when the request path ends on this path | no | '/logout' | '/sign_out'
73
+ | Field | Description | Required | Default | Example/Options |
74
+ |------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|-------------------------------|-----------------------------------------------------|
75
+ | name | Arbitrary string to identify connection and identify it from other openid_connect providers | no | String: openid_connect | :my_idp |
76
+ | issuer | Root url for the authorization server | yes | | https://myprovider.com |
77
+ | discovery | Should OpenID discovery be used. This is recommended if the IDP provides a discovery endpoint. See client config for how to manually enter discovered values. | no | false | one of: true, false |
78
+ | client_auth_method | Which authentication method to use to authenticate your app with the authorization server | no | Sym: basic | "basic", "jwks" |
79
+ | scope | Which OpenID scopes to include (:openid is always required) | no | Array<sym> [:openid] | [:openid, :profile, :email] |
80
+ | response_type | Which OAuth2 response type to use with the authorization request | no | String: code | one of: 'code', 'id_token' |
81
+ | state | A value to be used for the OAuth2 state parameter on the authorization request. Can be a proc that generates a string. | no | Random 16 character string | Proc.new { SecureRandom.hex(32) } |
82
+ | require_state | Should the callback phase require that a state is present. If `send_state` is true, then the callback state must match the authorize state. This is recommended, not required by the OIDC specification. | no | true | false |
83
+ | send_state | Should the authorize phase send a `state` parameter - this is recommended, not required by the OIDC specification | no | true | false |
84
+ | response_mode | The response mode per [spec](https://openid.net/specs/oauth-v2-form-post-response-mode-1_0.html) | no | nil | one of: :query, :fragment, :form_post, :web_message |
85
+ | display | An optional parameter to the authorization request to determine how the authorization and consent page | no | nil | one of: :page, :popup, :touch, :wap |
86
+ | prompt | An optional parameter to the authorization request to determine what pages the user will be shown | no | nil | one of: :none, :login, :consent, :select_account |
87
+ | send_scope_to_token_endpoint | Should the scope parameter be sent to the authorization token endpoint? | no | true | one of: true, false |
88
+ | post_logout_redirect_uri | The logout redirect uri to use per the [session management draft](https://openid.net/specs/openid-connect-session-1_0.html) | no | empty | https://myapp.com/logout/callback |
89
+ | uid_field | The field of the user info response to be used as a unique id | no | 'sub' | "sub", "preferred_username" |
90
+ | extra_authorize_params | A hash of extra fixed parameters that will be merged to the authorization request | no | Hash | {"tenant" => "common"} |
91
+ | allow_authorize_params | A list of allowed dynamic parameters that will be merged to the authorization request | no | Array | [:screen_name] |
92
+ | pkce | Enable [PKCE flow](https://oauth.net/2/pkce/) | no | false | one of: true, false |
93
+ | pkce_verifier | Specify a custom PKCE verifier code. | no | A random 128-char string | Proc.new { SecureRandom.hex(64) } |
94
+ | pkce_options | Specify a custom implementation of the PKCE code challenge/method. | no | SHA256(code_challenge) in hex | Proc to customise the code challenge generation |
95
+ | client_options | A hash of client options detailed in its own section | yes | | |
96
+ | jwt_secret_base64 | For HMAC with SHA2 (e.g. HS256) signing algorithms, specify the base64-encoded secret used to sign the JWT token. Defaults to the OAuth2 client secret if not specified. | no | client_options.secret | "bXlzZWNyZXQ=\n" |
97
+ | logout_path | The log out is only triggered when the request path ends on this path | no | '/logout' | '/sign_out' |
98
+ | acr_values | Authentication Class Reference (ACR) values to be passed to the authorize_uri to enforce a specific level, see [RFC9470](https://www.rfc-editor.org/rfc/rfc9470.html) | no | nil | "c1 c2" |
97
99
 
98
100
  ### Client Config Options
99
101
 
@@ -107,6 +109,7 @@ These are the configuration options for the client_options hash of the configura
107
109
  | scheme | The http scheme to use | https | |
108
110
  | host | The host of the authorization server | nil | |
109
111
  | port | The port for the authorization server | 443 | |
112
+ | audience | The intended consumer (`aud` field) of the id_token | nil | |
110
113
  | authorization_endpoint | The authorize endpoint on the authorization server | /authorize | yes |
111
114
  | token_endpoint | The token endpoint on the authorization server | /token | yes |
112
115
  | userinfo_endpoint | The user info endpoint on the authorization server | /userinfo | yes |
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module OpenIDConnect
5
- VERSION = '0.7.1'
5
+ VERSION = '0.8.1'
6
6
  end
7
7
  end
@@ -28,6 +28,7 @@ module OmniAuth
28
28
  scheme: 'https',
29
29
  host: nil,
30
30
  port: 443,
31
+ audience: nil,
31
32
  authorization_endpoint: '/authorize',
32
33
  token_endpoint: '/token',
33
34
  userinfo_endpoint: '/userinfo',
@@ -42,6 +43,7 @@ module OmniAuth
42
43
  option :client_x509_signing_key
43
44
  option :scope, [:openid]
44
45
  option :response_type, 'code' # ['code', 'id_token']
46
+ option :send_state, true
45
47
  option :require_state, true
46
48
  option :state
47
49
  option :response_mode # [:query, :fragment, :form_post, :web_message]
@@ -120,7 +122,12 @@ module OmniAuth
120
122
  def callback_phase
121
123
  error = params['error_reason'] || params['error']
122
124
  error_description = params['error_description'] || params['error_reason']
123
- invalid_state = (options.require_state && params['state'].to_s.empty?) || params['state'] != stored_state
125
+ invalid_state =
126
+ if options.send_state
127
+ (options.require_state && params['state'].to_s.empty?) || params['state'] != stored_state
128
+ else
129
+ false
130
+ end
124
131
 
125
132
  raise CallbackError, error: params['error'], reason: error_description, uri: params['error_uri'] if error
126
133
  raise CallbackError, error: :csrf_detected, reason: "Invalid 'state' parameter" if invalid_state
@@ -169,13 +176,12 @@ module OmniAuth
169
176
  end_session_uri.to_s
170
177
  end
171
178
 
172
- def authorize_uri
179
+ def authorize_uri # rubocop:disable Metrics/AbcSize
173
180
  client.redirect_uri = redirect_uri
174
181
  opts = {
175
182
  response_type: options.response_type,
176
183
  response_mode: options.response_mode,
177
184
  scope: options.scope,
178
- state: new_state,
179
185
  login_hint: params['login_hint'],
180
186
  ui_locales: params['ui_locales'],
181
187
  claims_locales: params['claims_locales'],
@@ -185,6 +191,7 @@ module OmniAuth
185
191
  acr_values: options.acr_values,
186
192
  }
187
193
 
194
+ opts[:state] = new_state if options.send_state
188
195
  opts.merge!(options.extra_authorize_params) unless options.extra_authorize_params.empty?
189
196
 
190
197
  options.allow_authorize_params.each do |key|
@@ -464,9 +471,14 @@ module OmniAuth
464
471
  def verify_id_token!(id_token)
465
472
  return unless id_token
466
473
 
467
- decode_id_token(id_token).verify!(issuer: options.issuer,
468
- client_id: client_options.identifier,
469
- nonce: params['nonce'].presence || stored_nonce)
474
+ verify_kwargs = {
475
+ issuer: options.issuer,
476
+ client_id: client_options.identifier,
477
+ nonce: stored_nonce.presence || params['nonce'].presence,
478
+ }
479
+ verify_kwargs.merge!(audience: client_options.audience) if client_options.audience
480
+
481
+ decode_id_token(id_token).verify!(**verify_kwargs)
470
482
  end
471
483
 
472
484
  class CallbackError < StandardError
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
  spec.email = ['jjbohn@gmail.com', 'm0n9oose@gmail.com']
12
12
  spec.summary = 'OpenID Connect Strategy for OmniAuth'
13
13
  spec.description = 'OpenID Connect Strategy for OmniAuth.'
14
- spec.homepage = 'https://github.com/m0n9oose/omniauth_openid_connect'
14
+ spec.homepage = 'https://github.com/omniauth/omniauth_openid_connect'
15
15
  spec.license = 'MIT'
16
16
 
17
17
  spec.files = `git ls-files -z`.split("\x0")
@@ -20,21 +20,22 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ['lib']
21
21
 
22
22
  spec.metadata = {
23
- 'bug_tracker_uri' => 'https://github.com/m0n9oose/omniauth_openid_connect/issues',
24
- 'changelog_uri' => 'https://github.com/m0n9oose/omniauth_openid_connect/releases',
25
- 'documentation_uri' => "https://github.com/m0n9oose/omniauth_openid_connect/tree/v#{spec.version}#readme",
26
- 'source_code_uri' => "https://github.com/m0n9oose/omniauth_openid_connect/tree/v#{spec.version}",
23
+ 'bug_tracker_uri' => 'https://github.com/omniauth/omniauth_openid_connect/issues',
24
+ 'changelog_uri' => 'https://github.com/omniauth/omniauth_openid_connect/releases',
25
+ 'documentation_uri' => "https://github.com/omniauth/omniauth_openid_connect/tree/v#{spec.version}#readme",
26
+ 'source_code_uri' => "https://github.com/omniauth/omniauth_openid_connect/tree/v#{spec.version}",
27
27
  'rubygems_mfa_required' => 'true',
28
28
  }
29
29
 
30
30
  spec.add_dependency 'omniauth', '>= 1.9', '< 3'
31
31
  spec.add_dependency 'openid_connect', '~> 2.2'
32
+ spec.add_dependency 'ostruct', '~> 0.6.3'
32
33
  spec.add_development_dependency 'faker', '~> 2.0'
33
34
  spec.add_development_dependency 'guard', '~> 2.14'
34
35
  spec.add_development_dependency 'guard-bundler', '~> 2.2'
35
36
  spec.add_development_dependency 'guard-minitest', '~> 2.4'
36
- spec.add_development_dependency 'minitest', '~> 5.1'
37
- spec.add_development_dependency 'mocha', '~> 1.7'
37
+ spec.add_development_dependency 'minitest', '~> 5.20'
38
+ spec.add_development_dependency 'mocha', '~> 2.1'
38
39
  spec.add_development_dependency 'rake', '~> 12.0'
39
40
  spec.add_development_dependency 'rubocop', '~> 1.12'
40
41
  spec.add_development_dependency 'simplecov', '~> 0.21'
@@ -248,6 +248,27 @@ module OmniAuth
248
248
  strategy.callback_phase
249
249
  end
250
250
 
251
+ def test_callback_phase_with_audience
252
+ state = SecureRandom.hex(16)
253
+ strategy.options.response_type = 'id_token'
254
+ strategy.options.issuer = 'example.com'
255
+ strategy.options.client_options.audience = 'my_audience'
256
+
257
+ id_token = stub('OpenIDConnect::ResponseObject::IdToken')
258
+ id_token.expects(:verify!).with(issuer: strategy.options.issuer, client_id: @identifier, audience: 'my_audience',
259
+ nonce: nonce).returns(true)
260
+ id_token.stubs(:raw_attributes, :to_h).returns(payload)
261
+
262
+ request.stubs(:params).returns('state' => state, 'nounce' => nonce, 'id_token' => id_token)
263
+ request.stubs(:path).returns('')
264
+
265
+ strategy.stubs(:decode_id_token).returns(id_token)
266
+ strategy.stubs(:stored_state).returns(state)
267
+
268
+ strategy.call!('rack.session' => { 'omniauth.state' => state, 'omniauth.nonce' => nonce })
269
+ strategy.callback_phase
270
+ end
271
+
251
272
  def test_callback_phase_with_id_token_and_param_provided_nonce # rubocop:disable Metrics/AbcSize
252
273
  code = SecureRandom.hex(16)
253
274
  state = SecureRandom.hex(16)
@@ -280,6 +301,65 @@ module OmniAuth
280
301
  strategy.callback_phase
281
302
  end
282
303
 
304
+ def test_callback_phase_with_id_token_rejects_param_nonce_when_session_has_nonce
305
+ state = SecureRandom.hex(16)
306
+ request.stubs(:params).returns('id_token' => jwt.to_s, 'state' => state, 'nonce' => nonce)
307
+ request.stubs(:path).returns('')
308
+
309
+ strategy.options.issuer = issuer
310
+ strategy.options.client_signing_alg = :RS256
311
+ strategy.options.client_jwk_signing_key = jwks.to_json
312
+ strategy.options.response_type = 'id_token'
313
+
314
+ strategy.call!('rack.session' => { 'omniauth.state' => state, 'omniauth.nonce' => SecureRandom.hex(16) })
315
+
316
+ assert_raises ::OpenIDConnect::ResponseObject::IdToken::InvalidNonce do
317
+ strategy.callback_phase
318
+ end
319
+ end
320
+
321
+ def test_callback_phase_with_code_rejects_param_nonce_when_session_has_nonce
322
+ state = SecureRandom.hex(16)
323
+ request.stubs(:params).returns('code' => SecureRandom.hex(16), 'state' => state, 'nonce' => nonce)
324
+ request.stubs(:path).returns('')
325
+
326
+ strategy.options.issuer = issuer
327
+ strategy.options.client_signing_alg = :RS256
328
+ strategy.options.client_jwk_signing_key = jwks.to_json
329
+ strategy.options.response_type = 'code'
330
+ strategy.stubs(:discover!)
331
+
332
+ access_token = stub('OpenIDConnect::AccessToken')
333
+ access_token.stubs(:access_token)
334
+ access_token.stubs(:refresh_token)
335
+ access_token.stubs(:expires_in)
336
+ access_token.stubs(:scope)
337
+ access_token.stubs(:id_token).returns(jwt.to_s)
338
+ client.stubs(:access_token!).returns(access_token)
339
+
340
+ strategy.call!('rack.session' => { 'omniauth.state' => state, 'omniauth.nonce' => SecureRandom.hex(16) })
341
+
342
+ assert_raises ::OpenIDConnect::ResponseObject::IdToken::InvalidNonce do
343
+ strategy.callback_phase
344
+ end
345
+ end
346
+
347
+ def test_callback_phase_with_id_token_accepts_param_nonce_without_session
348
+ request.stubs(:params).returns('id_token' => jwt.to_s, 'nonce' => nonce)
349
+ request.stubs(:path).returns('')
350
+
351
+ strategy.options.issuer = issuer
352
+ strategy.options.client_signing_alg = :RS256
353
+ strategy.options.client_jwk_signing_key = jwks.to_json
354
+ strategy.options.response_type = 'id_token'
355
+ strategy.options.send_state = false
356
+
357
+ strategy.call!('rack.session' => {})
358
+ strategy.callback_phase
359
+
360
+ assert_equal payload[:sub], strategy.env['omniauth.auth']['uid']
361
+ end
362
+
283
363
  def test_callback_phase_with_id_token_no_kid
284
364
  other_rsa_private = OpenSSL::PKey::RSA.generate(2048)
285
365
 
@@ -453,6 +533,50 @@ module OmniAuth
453
533
  strategy.callback_phase
454
534
  end
455
535
 
536
+ def test_callback_phase_with_send_state_disabled # rubocop:disable Metrics/AbcSize
537
+ code = SecureRandom.hex(16)
538
+
539
+ strategy.options.client_options.host = 'example.com'
540
+ strategy.options.require_state = true
541
+ strategy.options.send_state = false
542
+ strategy.options.discovery = true
543
+ refute_match(/state/, strategy.authorize_uri, 'URI must not contain state')
544
+
545
+ request.stubs(:params).returns('code' => code)
546
+ request.stubs(:path).returns('')
547
+
548
+ issuer = stub('OpenIDConnect::Discovery::Issuer')
549
+ issuer.stubs(:issuer).returns('https://example.com/')
550
+ ::OpenIDConnect::Discovery::Provider.stubs(:discover!).returns(issuer)
551
+
552
+ config = stub('OpenIDConnect::Discovery::Provder::Config')
553
+ config.stubs(:authorization_endpoint).returns('https://example.com/authorization')
554
+ config.stubs(:token_endpoint).returns('https://example.com/token')
555
+ config.stubs(:userinfo_endpoint).returns('https://example.com/userinfo')
556
+ config.stubs(:jwks_uri).returns('https://example.com/jwks')
557
+ config.stubs(:jwks).returns(JSON::JWK::Set.new(jwks['keys']))
558
+
559
+ ::OpenIDConnect::Discovery::Provider::Config.stubs(:discover!).with('https://example.com/').returns(config)
560
+
561
+ id_token = stub('OpenIDConnect::ResponseObject::IdToken')
562
+ id_token.stubs(:raw_attributes).returns('sub' => 'sub', 'name' => 'name', 'email' => 'email')
563
+ id_token.stubs(:verify!).with(issuer: 'https://example.com/', client_id: @identifier, nonce: nonce).returns(true)
564
+ ::OpenIDConnect::ResponseObject::IdToken.stubs(:decode).returns(id_token)
565
+
566
+ strategy.unstub(:user_info)
567
+ access_token = stub('OpenIDConnect::AccessToken')
568
+ access_token.stubs(:access_token)
569
+ access_token.stubs(:refresh_token)
570
+ access_token.stubs(:expires_in)
571
+ access_token.stubs(:scope)
572
+ access_token.stubs(:id_token).returns(jwt.to_s)
573
+ client.expects(:access_token!).at_least_once.returns(access_token)
574
+ access_token.expects(:userinfo!).returns(user_info)
575
+
576
+ strategy.call!('rack.session' => { 'omniauth.nonce' => nonce })
577
+ strategy.callback_phase
578
+ end
579
+
456
580
  def test_callback_phase_with_no_state_without_state_verification # rubocop:disable Metrics/AbcSize
457
581
  code = SecureRandom.hex(16)
458
582
 
@@ -878,8 +1002,8 @@ module OmniAuth
878
1002
  # test pkce disabled
879
1003
  strategy.options.pkce = false
880
1004
 
881
- assert((strategy.authorize_uri !~ /code_challenge=/), 'URI must not contain code challenge param')
882
- assert((strategy.authorize_uri !~ /code_challenge_method=/), 'URI must not contain code challenge method param')
1005
+ assert(strategy.authorize_uri !~ /code_challenge=/, 'URI must not contain code challenge param')
1006
+ assert(strategy.authorize_uri !~ /code_challenge_method=/, 'URI must not contain code challenge method param')
883
1007
 
884
1008
  # test pkce enabled with default opts
885
1009
  strategy.options.pkce = true
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class StrategyTestCase < MiniTest::Test
3
+ class StrategyTestCase < Minitest::Test
4
4
  class DummyApp
5
5
  def call(env); end
6
6
  end
metadata CHANGED
@@ -1,262 +1,305 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth_openid_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
- - John Bohn
8
- - Ilya Shcherbinin
9
- autorequire:
7
+ - John Bohn
8
+ - Ilya Shcherbinin
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2023-04-26 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
13
12
  dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: omniauth
16
- requirement: !ruby/object:Gem::Requirement
17
- requirements:
18
- - - ">="
19
- - !ruby/object:Gem::Version
20
- version: '1.9'
21
- - - "<"
22
- - !ruby/object:Gem::Version
23
- version: '3'
24
- type: :runtime
25
- prerelease: false
26
- version_requirements: !ruby/object:Gem::Requirement
27
- requirements:
28
- - - ">="
29
- - !ruby/object:Gem::Version
30
- version: '1.9'
31
- - - "<"
32
- - !ruby/object:Gem::Version
33
- version: '3'
34
- - !ruby/object:Gem::Dependency
35
- name: openid_connect
36
- requirement: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '2.2'
41
- type: :runtime
42
- prerelease: false
43
- version_requirements: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '2.2'
48
- - !ruby/object:Gem::Dependency
49
- name: faker
50
- requirement: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '2.0'
55
- type: :development
56
- prerelease: false
57
- version_requirements: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '2.0'
62
- - !ruby/object:Gem::Dependency
63
- name: guard
64
- requirement: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '2.14'
69
- type: :development
70
- prerelease: false
71
- version_requirements: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '2.14'
76
- - !ruby/object:Gem::Dependency
77
- name: guard-bundler
78
- requirement: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '2.2'
83
- type: :development
84
- prerelease: false
85
- version_requirements: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '2.2'
90
- - !ruby/object:Gem::Dependency
91
- name: guard-minitest
92
- requirement: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '2.4'
97
- type: :development
98
- prerelease: false
99
- version_requirements: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '2.4'
104
- - !ruby/object:Gem::Dependency
105
- name: minitest
106
- requirement: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '5.1'
111
- type: :development
112
- prerelease: false
113
- version_requirements: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: '5.1'
118
- - !ruby/object:Gem::Dependency
119
- name: mocha
120
- requirement: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: '1.7'
125
- type: :development
126
- prerelease: false
127
- version_requirements: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: '1.7'
132
- - !ruby/object:Gem::Dependency
133
- name: rake
134
- requirement: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - "~>"
137
- - !ruby/object:Gem::Version
138
- version: '12.0'
139
- type: :development
140
- prerelease: false
141
- version_requirements: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - "~>"
144
- - !ruby/object:Gem::Version
145
- version: '12.0'
146
- - !ruby/object:Gem::Dependency
147
- name: rubocop
148
- requirement: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - "~>"
151
- - !ruby/object:Gem::Version
152
- version: '1.12'
153
- type: :development
154
- prerelease: false
155
- version_requirements: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - "~>"
158
- - !ruby/object:Gem::Version
159
- version: '1.12'
160
- - !ruby/object:Gem::Dependency
161
- name: simplecov
162
- requirement: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - "~>"
165
- - !ruby/object:Gem::Version
166
- version: '0.21'
167
- type: :development
168
- prerelease: false
169
- version_requirements: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - "~>"
172
- - !ruby/object:Gem::Version
173
- version: '0.21'
174
- - !ruby/object:Gem::Dependency
175
- name: simplecov-lcov
176
- requirement: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - "~>"
179
- - !ruby/object:Gem::Version
180
- version: '0.8'
181
- type: :development
182
- prerelease: false
183
- version_requirements: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - "~>"
186
- - !ruby/object:Gem::Version
187
- version: '0.8'
188
- - !ruby/object:Gem::Dependency
189
- name: webmock
190
- requirement: !ruby/object:Gem::Requirement
191
- requirements:
192
- - - "~>"
193
- - !ruby/object:Gem::Version
194
- version: '3.18'
195
- type: :development
196
- prerelease: false
197
- version_requirements: !ruby/object:Gem::Requirement
198
- requirements:
199
- - - "~>"
200
- - !ruby/object:Gem::Version
201
- version: '3.18'
13
+ - !ruby/object:Gem::Dependency
14
+ name: omniauth
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ -
18
+ - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: "1.9"
21
+ -
22
+ - "<"
23
+ - !ruby/object:Gem::Version
24
+ version: "3"
25
+ type: :runtime
26
+ prerelease: false
27
+ version_requirements: !ruby/object:Gem::Requirement
28
+ requirements:
29
+ -
30
+ - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: "1.9"
33
+ -
34
+ - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: "3"
37
+ - !ruby/object:Gem::Dependency
38
+ name: openid_connect
39
+ requirement: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ -
42
+ - ~>
43
+ - !ruby/object:Gem::Version
44
+ version: "2.2"
45
+ type: :runtime
46
+ prerelease: false
47
+ version_requirements: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ -
50
+ - ~>
51
+ - !ruby/object:Gem::Version
52
+ version: "2.2"
53
+ - !ruby/object:Gem::Dependency
54
+ name: ostruct
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ -
58
+ - ~>
59
+ - !ruby/object:Gem::Version
60
+ version: 0.6.3
61
+ type: :runtime
62
+ prerelease: false
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ -
66
+ - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: 0.6.3
69
+ - !ruby/object:Gem::Dependency
70
+ name: faker
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ -
74
+ - ~>
75
+ - !ruby/object:Gem::Version
76
+ version: "2.0"
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ -
82
+ - ~>
83
+ - !ruby/object:Gem::Version
84
+ version: "2.0"
85
+ - !ruby/object:Gem::Dependency
86
+ name: guard
87
+ requirement: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ -
90
+ - ~>
91
+ - !ruby/object:Gem::Version
92
+ version: "2.14"
93
+ type: :development
94
+ prerelease: false
95
+ version_requirements: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ -
98
+ - ~>
99
+ - !ruby/object:Gem::Version
100
+ version: "2.14"
101
+ - !ruby/object:Gem::Dependency
102
+ name: guard-bundler
103
+ requirement: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ -
106
+ - ~>
107
+ - !ruby/object:Gem::Version
108
+ version: "2.2"
109
+ type: :development
110
+ prerelease: false
111
+ version_requirements: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ -
114
+ - ~>
115
+ - !ruby/object:Gem::Version
116
+ version: "2.2"
117
+ - !ruby/object:Gem::Dependency
118
+ name: guard-minitest
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ -
122
+ - ~>
123
+ - !ruby/object:Gem::Version
124
+ version: "2.4"
125
+ type: :development
126
+ prerelease: false
127
+ version_requirements: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ -
130
+ - ~>
131
+ - !ruby/object:Gem::Version
132
+ version: "2.4"
133
+ - !ruby/object:Gem::Dependency
134
+ name: minitest
135
+ requirement: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ -
138
+ - ~>
139
+ - !ruby/object:Gem::Version
140
+ version: "5.20"
141
+ type: :development
142
+ prerelease: false
143
+ version_requirements: !ruby/object:Gem::Requirement
144
+ requirements:
145
+ -
146
+ - ~>
147
+ - !ruby/object:Gem::Version
148
+ version: "5.20"
149
+ - !ruby/object:Gem::Dependency
150
+ name: mocha
151
+ requirement: !ruby/object:Gem::Requirement
152
+ requirements:
153
+ -
154
+ - ~>
155
+ - !ruby/object:Gem::Version
156
+ version: "2.1"
157
+ type: :development
158
+ prerelease: false
159
+ version_requirements: !ruby/object:Gem::Requirement
160
+ requirements:
161
+ -
162
+ - ~>
163
+ - !ruby/object:Gem::Version
164
+ version: "2.1"
165
+ - !ruby/object:Gem::Dependency
166
+ name: rake
167
+ requirement: !ruby/object:Gem::Requirement
168
+ requirements:
169
+ -
170
+ - ~>
171
+ - !ruby/object:Gem::Version
172
+ version: "12.0"
173
+ type: :development
174
+ prerelease: false
175
+ version_requirements: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ -
178
+ - ~>
179
+ - !ruby/object:Gem::Version
180
+ version: "12.0"
181
+ - !ruby/object:Gem::Dependency
182
+ name: rubocop
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ -
186
+ - ~>
187
+ - !ruby/object:Gem::Version
188
+ version: "1.12"
189
+ type: :development
190
+ prerelease: false
191
+ version_requirements: !ruby/object:Gem::Requirement
192
+ requirements:
193
+ -
194
+ - ~>
195
+ - !ruby/object:Gem::Version
196
+ version: "1.12"
197
+ - !ruby/object:Gem::Dependency
198
+ name: simplecov
199
+ requirement: !ruby/object:Gem::Requirement
200
+ requirements:
201
+ -
202
+ - ~>
203
+ - !ruby/object:Gem::Version
204
+ version: "0.21"
205
+ type: :development
206
+ prerelease: false
207
+ version_requirements: !ruby/object:Gem::Requirement
208
+ requirements:
209
+ -
210
+ - ~>
211
+ - !ruby/object:Gem::Version
212
+ version: "0.21"
213
+ - !ruby/object:Gem::Dependency
214
+ name: simplecov-lcov
215
+ requirement: !ruby/object:Gem::Requirement
216
+ requirements:
217
+ -
218
+ - ~>
219
+ - !ruby/object:Gem::Version
220
+ version: "0.8"
221
+ type: :development
222
+ prerelease: false
223
+ version_requirements: !ruby/object:Gem::Requirement
224
+ requirements:
225
+ -
226
+ - ~>
227
+ - !ruby/object:Gem::Version
228
+ version: "0.8"
229
+ - !ruby/object:Gem::Dependency
230
+ name: webmock
231
+ requirement: !ruby/object:Gem::Requirement
232
+ requirements:
233
+ -
234
+ - ~>
235
+ - !ruby/object:Gem::Version
236
+ version: "3.18"
237
+ type: :development
238
+ prerelease: false
239
+ version_requirements: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ -
242
+ - ~>
243
+ - !ruby/object:Gem::Version
244
+ version: "3.18"
202
245
  description: OpenID Connect Strategy for OmniAuth.
203
246
  email:
204
- - jjbohn@gmail.com
205
- - m0n9oose@gmail.com
247
+ - jjbohn@gmail.com
248
+ - m0n9oose@gmail.com
206
249
  executables: []
207
250
  extensions: []
208
251
  extra_rdoc_files: []
209
252
  files:
210
- - ".github/stale.yml"
211
- - ".github/workflows/main.yml"
212
- - ".gitignore"
213
- - ".rubocop.yml"
214
- - CHANGELOG.md
215
- - Gemfile
216
- - Guardfile
217
- - LICENSE.txt
218
- - README.md
219
- - Rakefile
220
- - lib/omniauth/openid_connect.rb
221
- - lib/omniauth/openid_connect/errors.rb
222
- - lib/omniauth/openid_connect/version.rb
223
- - lib/omniauth/strategies/openid_connect.rb
224
- - lib/omniauth_openid_connect.rb
225
- - omniauth_openid_connect.gemspec
226
- - test/fixtures/test.crt
227
- - test/lib/omniauth/strategies/openid_connect_test.rb
228
- - test/strategy_test_case.rb
229
- - test/test_helper.rb
230
- homepage: https://github.com/m0n9oose/omniauth_openid_connect
253
+ - .github/stale.yml
254
+ - .github/workflows/main.yml
255
+ - .gitignore
256
+ - .rubocop.yml
257
+ - CHANGELOG.md
258
+ - Gemfile
259
+ - Guardfile
260
+ - LICENSE.txt
261
+ - README.md
262
+ - Rakefile
263
+ - lib/omniauth/openid_connect.rb
264
+ - lib/omniauth/openid_connect/errors.rb
265
+ - lib/omniauth/openid_connect/version.rb
266
+ - lib/omniauth/strategies/openid_connect.rb
267
+ - lib/omniauth_openid_connect.rb
268
+ - omniauth_openid_connect.gemspec
269
+ - test/fixtures/test.crt
270
+ - test/lib/omniauth/strategies/openid_connect_test.rb
271
+ - test/strategy_test_case.rb
272
+ - test/test_helper.rb
273
+ homepage: "https://github.com/omniauth/omniauth_openid_connect"
231
274
  licenses:
232
- - MIT
275
+ - MIT
233
276
  metadata:
234
- bug_tracker_uri: https://github.com/m0n9oose/omniauth_openid_connect/issues
235
- changelog_uri: https://github.com/m0n9oose/omniauth_openid_connect/releases
236
- documentation_uri: https://github.com/m0n9oose/omniauth_openid_connect/tree/v0.7.1#readme
237
- source_code_uri: https://github.com/m0n9oose/omniauth_openid_connect/tree/v0.7.1
238
- rubygems_mfa_required: 'true'
239
- post_install_message:
277
+ bug_tracker_uri: "https://github.com/omniauth/omniauth_openid_connect/issues"
278
+ changelog_uri: "https://github.com/omniauth/omniauth_openid_connect/releases"
279
+ documentation_uri: "https://github.com/omniauth/omniauth_openid_connect/tree/v0.8.1#readme"
280
+ source_code_uri: "https://github.com/omniauth/omniauth_openid_connect/tree/v0.8.1"
281
+ rubygems_mfa_required: "true"
240
282
  rdoc_options: []
241
283
  require_paths:
242
- - lib
284
+ - lib
243
285
  required_ruby_version: !ruby/object:Gem::Requirement
244
286
  requirements:
245
- - - ">="
246
- - !ruby/object:Gem::Version
247
- version: '0'
287
+ -
288
+ - ">="
289
+ - !ruby/object:Gem::Version
290
+ version: "0"
248
291
  required_rubygems_version: !ruby/object:Gem::Requirement
249
292
  requirements:
250
- - - ">="
251
- - !ruby/object:Gem::Version
252
- version: '0'
293
+ -
294
+ - ">="
295
+ - !ruby/object:Gem::Version
296
+ version: "0"
253
297
  requirements: []
254
- rubygems_version: 3.4.12
255
- signing_key:
298
+ rubygems_version: 4.1.1
256
299
  specification_version: 4
257
300
  summary: OpenID Connect Strategy for OmniAuth
258
301
  test_files:
259
- - test/fixtures/test.crt
260
- - test/lib/omniauth/strategies/openid_connect_test.rb
261
- - test/strategy_test_case.rb
262
- - test/test_helper.rb
302
+ - test/fixtures/test.crt
303
+ - test/lib/omniauth/strategies/openid_connect_test.rb
304
+ - test/strategy_test_case.rb
305
+ - test/test_helper.rb