gds-sso 15.0.1 → 15.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,14 @@
1
+ require "rails"
2
+ require "spec_helper"
3
+
4
+ RSpec.describe GDS::SSO::Railtie do
5
+ let(:cache) { double(:cache) }
6
+
7
+ it "re-uses the Rails cache" do
8
+ expect(GDS::SSO::Config.cache).to eq Rails.cache
9
+ end
10
+
11
+ it "honours API only setting" do
12
+ expect(GDS::SSO::Config.api_only).to eq false
13
+ end
14
+ end
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: 15.0.1
4
+ version: 15.1.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: 2020-07-28 00:00:00.000000000 Z
11
+ date: 2020-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '3.2'
69
+ - !ruby/object:Gem::Dependency
70
+ name: plek
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '4.0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '4.0'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: rails
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -245,6 +259,7 @@ files:
245
259
  - lib/gds-sso/failure_app.rb
246
260
  - lib/gds-sso/lint/user_spec.rb
247
261
  - lib/gds-sso/lint/user_test.rb
262
+ - lib/gds-sso/railtie.rb
248
263
  - lib/gds-sso/user.rb
249
264
  - lib/gds-sso/version.rb
250
265
  - lib/gds-sso/warden_config.rb
@@ -273,6 +288,7 @@ files:
273
288
  - spec/unit/bearer_token_spec.rb
274
289
  - spec/unit/config_spec.rb
275
290
  - spec/unit/mock_bearer_token_spec.rb
291
+ - spec/unit/railtie_spec.rb
276
292
  - spec/unit/session_serialisation_spec.rb
277
293
  - spec/unit/user_spec.rb
278
294
  homepage: https://github.com/alphagov/gds-sso
@@ -294,35 +310,36 @@ required_rubygems_version: !ruby/object:Gem::Requirement
294
310
  - !ruby/object:Gem::Version
295
311
  version: '0'
296
312
  requirements: []
297
- rubygems_version: 3.1.2
313
+ rubygems_version: 3.1.4
298
314
  signing_key:
299
315
  specification_version: 4
300
316
  summary: Client for GDS' OAuth 2-based SSO
301
317
  test_files:
302
- - spec/requests/end_to_end_spec.rb
303
- - spec/spec_helper.rb
304
- - spec/unit/api_access_spec.rb
305
- - spec/unit/bearer_token_spec.rb
306
- - spec/unit/config_spec.rb
307
- - spec/unit/mock_bearer_token_spec.rb
308
- - spec/unit/session_serialisation_spec.rb
309
- - spec/unit/user_spec.rb
318
+ - spec/controller/controller_methods_spec.rb
319
+ - spec/controller/api_user_controller_spec.rb
320
+ - spec/internal/config/storage.yml
321
+ - spec/internal/config/routes.rb
322
+ - spec/internal/config/database.yml
323
+ - spec/internal/config/initializers/gds-sso.rb
324
+ - spec/internal/public/favicon.ico
310
325
  - spec/internal/app/assets/config/manifest.js
311
326
  - spec/internal/app/controllers/application_controller.rb
312
327
  - spec/internal/app/controllers/example_controller.rb
313
328
  - spec/internal/app/models/user.rb
314
- - spec/internal/config/routes.rb
315
- - spec/internal/config/storage.yml
316
- - spec/internal/config/database.yml
317
- - spec/internal/config/initializers/gds-sso.rb
318
329
  - spec/internal/log/test.log
319
- - spec/internal/public/favicon.ico
320
330
  - spec/internal/db/schema.rb
321
331
  - spec/internal/db/combustion_test.sqlite
322
- - spec/support/timecop.rb
323
332
  - spec/support/backport_controller_test_params.rb
324
333
  - spec/support/signon_integration_helpers.rb
325
- - spec/fixtures/integration/signon.sql
334
+ - spec/support/timecop.rb
335
+ - spec/spec_helper.rb
336
+ - spec/unit/config_spec.rb
337
+ - spec/unit/bearer_token_spec.rb
338
+ - spec/unit/mock_bearer_token_spec.rb
339
+ - spec/unit/api_access_spec.rb
340
+ - spec/unit/railtie_spec.rb
341
+ - spec/unit/session_serialisation_spec.rb
342
+ - spec/unit/user_spec.rb
326
343
  - spec/fixtures/integration/authorize_api_users.sql
327
- - spec/controller/api_user_controller_spec.rb
328
- - spec/controller/controller_methods_spec.rb
344
+ - spec/fixtures/integration/signon.sql
345
+ - spec/requests/end_to_end_spec.rb