gds-sso 16.0.1 → 17.0.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: 14cc3ecc61cecb2be99008673ba2852ce4a38385fc1721a420d9452eedcad495
4
- data.tar.gz: 629e3d7a45d9385ef258dffd115167e0ffa36a8a51d98309c5323a19ca3a772d
3
+ metadata.gz: 06dbf1fdc3985c8d779b3154021cf5a2ad78a51fcb83fa806a107c3d56b3144e
4
+ data.tar.gz: 67f750207a76325b141cdcc62c741831ecc30e798c040a6bb1cd12eb7e5873ac
5
5
  SHA512:
6
- metadata.gz: 3b8e46bb3acb7a9105001c7f8ec39f0914f60a89d9592df1f53c901b172bc575d584a7ff6019f6ebe4d7e8781029dcbdc5b71ecba0c8585e9697e4830ccdcf25
7
- data.tar.gz: e046ad091e5430b6ed6ba5011e5498723b943d7a7dfd1027cb346e15b7dbf14e3e083707aaa7646418c53530360fc755a2903b74bfc3662127ad553cbc446b1f
6
+ metadata.gz: e7e766717d3718271c84f10695288afb2aed6f1561a3684d1af95d94e1367f4b694345be3c164969d234260adb7ac9a1ee2b8f6d1afed137440d08cb5034e68e
7
+ data.tar.gz: 2a1b36ca0bb68cf8c3034c105ca506dc6e351b76ba1b1ac104e565de7dc6ff71d0baad87f9afe15a657f88569360edf0d78904fe5aa80b030c62b0c433845404
@@ -12,6 +12,6 @@ class AuthenticationsController < ActionController::Base
12
12
 
13
13
  def sign_out
14
14
  logout
15
- redirect_to "#{GDS::SSO::Config.oauth_root_url}/users/sign_out"
15
+ redirect_to "#{GDS::SSO::Config.oauth_root_url}/users/sign_out", allow_other_host: true
16
16
  end
17
17
  end
@@ -1,5 +1,5 @@
1
1
  module GDS
2
2
  module SSO
3
- VERSION = "16.0.1".freeze
3
+ VERSION = "17.0.0".freeze
4
4
  end
5
5
  end
data/lib/gds-sso.rb CHANGED
@@ -27,6 +27,8 @@ module GDS
27
27
  # TODO - check this one - Stolen from Devise because it looked sensible...
28
28
  config.before_eager_load(&:reload_routes!)
29
29
 
30
+ OmniAuth.config.allowed_request_methods = %i[post get]
31
+
30
32
  config.app_middleware.use ::OmniAuth::Builder do
31
33
  next if GDS::SSO::Config.api_only
32
34
 
@@ -1,7 +1,7 @@
1
1
  DELETE FROM `oauth_access_tokens`;
2
2
 
3
3
  INSERT INTO oauth_access_tokens (resource_owner_id, application_id, token, refresh_token, expires_in, created_at)
4
- VALUES (1, 1, 'caaeb53be5c7277fb0ef158181bfd1537b57f9e3b83eb795be3cd0af6e118b28', '1bc343797483954d7306d67e96687feccdfdaa8b23ed662ae23e2b03e6661d16', 307584000, '2012-06-27 13:57:47');
4
+ VALUES (1, 1, 'caaeb53be5c7277fb0ef158181bfd1537b57f9e3b83eb795be3cd0af6e118b28', '1bc343797483954d7306d67e96687feccdfdaa8b23ed662ae23e2b03e6661d16', POW(2, 31)-1, '2012-06-27 13:57:47');
5
5
 
6
6
  INSERT INTO oauth_access_tokens (resource_owner_id, application_id, token, refresh_token, expires_in, created_at)
7
- VALUES (1, 2, '98c72f4da02fdc43398e029d05567542944d2a9b0df3c20b0accd8bd6c5dc728', 'e2da0489a58219fd4f542139909737627874ceacd2af23f5c268ccecb36e85af', 307584000, '2014-07-14 09:06:14');
7
+ VALUES (1, 2, '98c72f4da02fdc43398e029d05567542944d2a9b0df3c20b0accd8bd6c5dc728', 'e2da0489a58219fd4f542139909737627874ceacd2af23f5c268ccecb36e85af', POW(2, 31)-1, '2014-07-14 09:06:14');
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gds-sso
3
3
  version: !ruby/object:Gem::Version
4
- version: 16.0.1
4
+ version: 17.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-10 00:00:00.000000000 Z
11
+ date: 2022-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json
@@ -28,30 +28,42 @@ dependencies:
28
28
  name: oauth2
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '1.0'
33
+ version: '1'
34
+ - - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: '3'
34
37
  type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
- - - "~>"
41
+ - - ">="
39
42
  - !ruby/object:Gem::Version
40
- version: '1.0'
43
+ version: '1'
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: '3'
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: omniauth
43
49
  requirement: !ruby/object:Gem::Requirement
44
50
  requirements:
45
- - - "~>"
51
+ - - ">="
46
52
  - !ruby/object:Gem::Version
47
53
  version: '1.2'
54
+ - - "<"
55
+ - !ruby/object:Gem::Version
56
+ version: '3.0'
48
57
  type: :runtime
49
58
  prerelease: false
50
59
  version_requirements: !ruby/object:Gem::Requirement
51
60
  requirements:
52
- - - "~>"
61
+ - - ">="
53
62
  - !ruby/object:Gem::Version
54
63
  version: '1.2'
64
+ - - "<"
65
+ - !ruby/object:Gem::Version
66
+ version: '3.0'
55
67
  - !ruby/object:Gem::Dependency
56
68
  name: omniauth-gds
57
69
  requirement: !ruby/object:Gem::Requirement
@@ -164,6 +176,20 @@ dependencies:
164
176
  - - ">="
165
177
  - !ruby/object:Gem::Version
166
178
  version: '0.9'
179
+ - !ruby/object:Gem::Dependency
180
+ name: net-smtp
181
+ requirement: !ruby/object:Gem::Requirement
182
+ requirements:
183
+ - - "~>"
184
+ - !ruby/object:Gem::Version
185
+ version: 0.3.1
186
+ type: :development
187
+ prerelease: false
188
+ version_requirements: !ruby/object:Gem::Requirement
189
+ requirements:
190
+ - - "~>"
191
+ - !ruby/object:Gem::Version
192
+ version: 0.3.1
167
193
  - !ruby/object:Gem::Dependency
168
194
  name: rake
169
195
  requirement: !ruby/object:Gem::Requirement
@@ -275,9 +301,7 @@ files:
275
301
  - spec/internal/config/initializers/gds-sso.rb
276
302
  - spec/internal/config/routes.rb
277
303
  - spec/internal/config/storage.yml
278
- - spec/internal/db/combustion_test.sqlite
279
304
  - spec/internal/db/schema.rb
280
- - spec/internal/log/test.log
281
305
  - spec/internal/public/favicon.ico
282
306
  - spec/requests/end_to_end_spec.rb
283
307
  - spec/spec_helper.rb
@@ -306,46 +330,44 @@ required_ruby_version: !ruby/object:Gem::Requirement
306
330
  requirements:
307
331
  - - ">="
308
332
  - !ruby/object:Gem::Version
309
- version: '2.6'
333
+ version: '2.7'
310
334
  required_rubygems_version: !ruby/object:Gem::Requirement
311
335
  requirements:
312
336
  - - ">="
313
337
  - !ruby/object:Gem::Version
314
338
  version: '0'
315
339
  requirements: []
316
- rubygems_version: 3.1.6
340
+ rubygems_version: 3.3.18
317
341
  signing_key:
318
342
  specification_version: 4
319
343
  summary: Client for GDS' OAuth 2-based SSO
320
344
  test_files:
321
- - spec/controller/controller_methods_spec.rb
322
- - spec/controller/api_user_controller_spec.rb
323
- - spec/internal/config/storage.yml
324
- - spec/internal/config/routes.rb
345
+ - spec/fixtures/integration/signon.sql
346
+ - spec/fixtures/integration/authorize_api_users.sql
347
+ - spec/requests/end_to_end_spec.rb
348
+ - spec/spec_helper.rb
349
+ - spec/internal/public/favicon.ico
325
350
  - spec/internal/config/database.yml
326
351
  - spec/internal/config/initializers/gds-sso.rb
327
- - spec/internal/public/favicon.ico
328
- - spec/internal/app/assets/config/manifest.js
352
+ - spec/internal/config/routes.rb
353
+ - spec/internal/config/storage.yml
354
+ - spec/internal/app/models/user.rb
329
355
  - spec/internal/app/controllers/application_controller.rb
330
356
  - spec/internal/app/controllers/example_controller.rb
331
- - spec/internal/app/models/user.rb
332
- - spec/internal/log/test.log
357
+ - spec/internal/app/assets/config/manifest.js
333
358
  - spec/internal/db/schema.rb
334
- - spec/internal/db/combustion_test.sqlite
335
- - spec/support/serializable_user.rb
336
- - spec/support/controller_spy.rb
337
- - spec/support/test_user.rb
338
- - spec/support/backport_controller_test_params.rb
339
- - spec/support/signon_integration_helpers.rb
340
- - spec/support/timecop.rb
341
- - spec/spec_helper.rb
359
+ - spec/unit/api_access_spec.rb
342
360
  - spec/unit/config_spec.rb
343
361
  - spec/unit/bearer_token_spec.rb
344
- - spec/unit/mock_bearer_token_spec.rb
345
- - spec/unit/api_access_spec.rb
346
362
  - spec/unit/railtie_spec.rb
347
- - spec/unit/session_serialisation_spec.rb
348
363
  - spec/unit/user_spec.rb
349
- - spec/fixtures/integration/authorize_api_users.sql
350
- - spec/fixtures/integration/signon.sql
351
- - spec/requests/end_to_end_spec.rb
364
+ - spec/unit/mock_bearer_token_spec.rb
365
+ - spec/unit/session_serialisation_spec.rb
366
+ - spec/support/test_user.rb
367
+ - spec/support/timecop.rb
368
+ - spec/support/signon_integration_helpers.rb
369
+ - spec/support/backport_controller_test_params.rb
370
+ - spec/support/controller_spy.rb
371
+ - spec/support/serializable_user.rb
372
+ - spec/controller/controller_methods_spec.rb
373
+ - spec/controller/api_user_controller_spec.rb