gds-sso 13.6.0 → 14.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,7 +32,7 @@ describe "Integration of client using GDS-SSO with signon" do
32
32
  visit "http://#{@client_host}/restricted"
33
33
  expect(page).to have_content("Sign in")
34
34
  fill_in "Email", :with => "test@example-client.com"
35
- fill_in "Passphrase", :with => "q1w2e3r4t5y6u7i8o9p0"
35
+ fill_in "Password", :with => "q1w2e3r4t5y6u7i8o9p0"
36
36
  click_on "Sign in"
37
37
 
38
38
  expect(page).to have_content('restricted kablooie')
@@ -42,7 +42,7 @@ describe "Integration of client using GDS-SSO with signon" do
42
42
  # First we login to authorise the app
43
43
  visit "http://#{@client_host}/restricted"
44
44
  fill_in "Email", :with => "test@example-client.com"
45
- fill_in "Passphrase", :with => "q1w2e3r4t5y6u7i8o9p0"
45
+ fill_in "Password", :with => "q1w2e3r4t5y6u7i8o9p0"
46
46
  click_on "Sign in"
47
47
 
48
48
  # At this point the app should be authorised, we reset the session to simulate a new browser visit.
@@ -53,7 +53,7 @@ describe "Integration of client using GDS-SSO with signon" do
53
53
  expect(page).to have_content("Sign in")
54
54
 
55
55
  fill_in "Email", :with => "test@example-client.com"
56
- fill_in "Passphrase", :with => "q1w2e3r4t5y6u7i8o9p0"
56
+ fill_in "Password", :with => "q1w2e3r4t5y6u7i8o9p0"
57
57
  click_on "Sign in"
58
58
 
59
59
  expect(page).to have_content('restricted kablooie')
@@ -63,7 +63,7 @@ describe "Integration of client using GDS-SSO with signon" do
63
63
  # First we login to authorise the app
64
64
  visit "http://#{@client_host}/this_requires_signin_permission"
65
65
  fill_in "Email", :with => "test@example-client.com"
66
- fill_in "Passphrase", :with => "q1w2e3r4t5y6u7i8o9p0"
66
+ fill_in "Password", :with => "q1w2e3r4t5y6u7i8o9p0"
67
67
  click_on "Sign in"
68
68
 
69
69
  # At this point the app should be authorised, we reset the session to simulate a new browser visit.
@@ -74,7 +74,7 @@ describe "Integration of client using GDS-SSO with signon" do
74
74
  expect(page).to have_content("Sign in")
75
75
 
76
76
  fill_in "Email", :with => "test@example-client.com"
77
- fill_in "Passphrase", :with => "q1w2e3r4t5y6u7i8o9p0"
77
+ fill_in "Password", :with => "q1w2e3r4t5y6u7i8o9p0"
78
78
  click_on "Sign in"
79
79
 
80
80
  expect(page).to have_content('you have signin permission')
@@ -85,7 +85,7 @@ describe "Integration of client using GDS-SSO with signon" do
85
85
  # First we login and authorise the app
86
86
  visit "http://#{@client_host}/restricted"
87
87
  fill_in "Email", :with => "test@example-client.com"
88
- fill_in "Passphrase", :with => "q1w2e3r4t5y6u7i8o9p0"
88
+ fill_in "Password", :with => "q1w2e3r4t5y6u7i8o9p0"
89
89
  click_on "Sign in"
90
90
 
91
91
  page.driver.header 'accept', 'text/html'
@@ -105,7 +105,7 @@ describe "Integration of client using GDS-SSO with signon" do
105
105
  # be redirected to signon
106
106
  expect(page).to have_content('GOV.UK Signon')
107
107
  fill_in "Email", :with => "test@example-client.com"
108
- fill_in "Passphrase", :with => "q1w2e3r4t5y6u7i8o9p0"
108
+ fill_in "Password", :with => "q1w2e3r4t5y6u7i8o9p0"
109
109
  click_on "Sign in"
110
110
 
111
111
  # then back again to the restricted page
@@ -118,7 +118,7 @@ describe "Integration of client using GDS-SSO with signon" do
118
118
  visit "http://#{@client_host}/restricted"
119
119
  expect(page).to have_content("Sign in")
120
120
  fill_in "Email", :with => "test@example-client.com"
121
- fill_in "Passphrase", :with => "q1w2e3r4t5y6u7i8o9p0"
121
+ fill_in "Password", :with => "q1w2e3r4t5y6u7i8o9p0"
122
122
  click_on "Sign in"
123
123
 
124
124
  expect(page).to have_content('restricted kablooie')
@@ -136,7 +136,7 @@ describe "Integration of client using GDS-SSO with signon" do
136
136
  visit "http://#{@client_host}/restricted"
137
137
  expect(page).to have_content("Sign in")
138
138
  fill_in "Email", :with => "test@example-client.com"
139
- fill_in "Passphrase", :with => "q1w2e3r4t5y6u7i8o9p0"
139
+ fill_in "Password", :with => "q1w2e3r4t5y6u7i8o9p0"
140
140
  click_on "Sign in"
141
141
 
142
142
  expect(page).to have_content('restricted kablooie')
@@ -153,7 +153,7 @@ describe "Integration of client using GDS-SSO with signon" do
153
153
  visit "http://#{@client_host}/restricted"
154
154
  expect(page).to have_content("Sign in")
155
155
  fill_in "Email", :with => "test@example-client.com"
156
- fill_in "Passphrase", :with => "q1w2e3r4t5y6u7i8o9p0"
156
+ fill_in "Password", :with => "q1w2e3r4t5y6u7i8o9p0"
157
157
  click_on "Sign in"
158
158
 
159
159
  expect(page).to have_content('restricted kablooie')
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: 13.6.0
4
+ version: 14.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: 2018-02-08 00:00:00.000000000 Z
11
+ date: 2018-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 4.2.4
19
+ version: '4'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 4.2.4
26
+ version: '4'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: warden
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -112,114 +112,100 @@ dependencies:
112
112
  name: rake
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
- version: 0.9.2.2
117
+ version: '0.9'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
- version: 0.9.2.2
124
+ version: '0.9'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: capybara
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '='
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
- version: 2.8.0
131
+ version: '2'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '='
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
- version: 2.8.0
138
+ version: '2'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rspec-rails
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - '='
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
- version: 3.5.2
145
+ version: '3'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - '='
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
- version: 3.5.2
152
+ version: '3'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: capybara-mechanize
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - '='
157
+ - - ">="
158
158
  - !ruby/object:Gem::Version
159
- version: 1.5.0
159
+ version: '1'
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - '='
164
+ - - ">="
165
165
  - !ruby/object:Gem::Version
166
- version: 1.5.0
166
+ version: '1'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: combustion
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - '='
172
- - !ruby/object:Gem::Version
173
- version: 0.5.4
174
- type: :development
175
- prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - '='
179
- - !ruby/object:Gem::Version
180
- version: 0.5.4
181
- - !ruby/object:Gem::Dependency
182
- name: gem_publisher
183
- requirement: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - '='
171
+ - - ">="
186
172
  - !ruby/object:Gem::Version
187
- version: 1.0.0
173
+ version: '0.9'
188
174
  type: :development
189
175
  prerelease: false
190
176
  version_requirements: !ruby/object:Gem::Requirement
191
177
  requirements:
192
- - - '='
178
+ - - ">="
193
179
  - !ruby/object:Gem::Version
194
- version: 1.0.0
180
+ version: '0.9'
195
181
  - !ruby/object:Gem::Dependency
196
182
  name: sqlite3
197
183
  requirement: !ruby/object:Gem::Requirement
198
184
  requirements:
199
- - - '='
185
+ - - ">="
200
186
  - !ruby/object:Gem::Version
201
- version: 1.3.9
187
+ version: '1'
202
188
  type: :development
203
189
  prerelease: false
204
190
  version_requirements: !ruby/object:Gem::Requirement
205
191
  requirements:
206
- - - '='
192
+ - - ">="
207
193
  - !ruby/object:Gem::Version
208
- version: 1.3.9
194
+ version: '1'
209
195
  - !ruby/object:Gem::Dependency
210
196
  name: timecop
211
197
  requirement: !ruby/object:Gem::Requirement
212
198
  requirements:
213
- - - '='
199
+ - - ">="
214
200
  - !ruby/object:Gem::Version
215
- version: 0.3.5
201
+ version: '0.3'
216
202
  type: :development
217
203
  prerelease: false
218
204
  version_requirements: !ruby/object:Gem::Requirement
219
205
  requirements:
220
- - - '='
206
+ - - ">="
221
207
  - !ruby/object:Gem::Version
222
- version: 0.3.5
208
+ version: '0.3'
223
209
  description: Client for GDS' OAuth 2-based SSO
224
210
  email:
225
211
  - govuk-dev@digital.cabinet-office.gov.uk
@@ -293,33 +279,33 @@ required_rubygems_version: !ruby/object:Gem::Requirement
293
279
  version: '0'
294
280
  requirements: []
295
281
  rubyforge_project: gds-sso
296
- rubygems_version: 2.6.13
282
+ rubygems_version: 2.7.6
297
283
  signing_key:
298
284
  specification_version: 4
299
285
  summary: Client for GDS' OAuth 2-based SSO
300
286
  test_files:
301
- - spec/support/backport_controller_test_params.rb
287
+ - spec/fixtures/integration/signon.sql
288
+ - spec/fixtures/integration/authorize_api_users.sql
302
289
  - spec/support/timecop.rb
303
290
  - spec/support/signon_integration_helpers.rb
304
- - spec/unit/user_spec.rb
305
- - spec/unit/api_access_spec.rb
291
+ - spec/support/backport_controller_test_params.rb
292
+ - spec/controller/controller_methods_spec.rb
293
+ - spec/controller/api_user_controller_spec.rb
294
+ - spec/unit/bearer_token_spec.rb
306
295
  - spec/unit/mock_bearer_token_spec.rb
307
296
  - spec/unit/session_serialisation_spec.rb
308
297
  - spec/unit/config_spec.rb
309
- - spec/unit/bearer_token_spec.rb
310
- - spec/requests/end_to_end_spec.rb
298
+ - spec/unit/api_access_spec.rb
299
+ - spec/unit/user_spec.rb
311
300
  - spec/spec_helper.rb
312
- - spec/fixtures/integration/signon.sql
313
- - spec/fixtures/integration/authorize_api_users.sql
314
- - spec/controller/controller_methods_spec.rb
315
- - spec/controller/api_user_controller_spec.rb
301
+ - spec/requests/end_to_end_spec.rb
302
+ - spec/internal/app/controllers/application_controller.rb
303
+ - spec/internal/app/controllers/example_controller.rb
304
+ - spec/internal/app/models/user.rb
316
305
  - spec/internal/log/test.log
317
306
  - spec/internal/public/favicon.ico
318
307
  - spec/internal/config/database.yml
319
- - spec/internal/config/initializers/gds-sso.rb
320
308
  - spec/internal/config/routes.rb
321
- - spec/internal/app/models/user.rb
322
- - spec/internal/app/controllers/example_controller.rb
323
- - spec/internal/app/controllers/application_controller.rb
324
- - spec/internal/db/schema.rb
309
+ - spec/internal/config/initializers/gds-sso.rb
325
310
  - spec/internal/db/combustion_test.sqlite
311
+ - spec/internal/db/schema.rb