gds-sso 3.1.1 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +6 -5
- data/lib/gds-sso.rb +1 -1
- data/lib/gds-sso/config.rb +0 -7
- data/lib/gds-sso/failure_app.rb +0 -1
- data/lib/gds-sso/user.rb +0 -24
- data/lib/gds-sso/version.rb +1 -1
- data/lib/gds-sso/warden_config.rb +10 -46
- data/spec/controller/api_user_controller_spec.rb +10 -3
- data/spec/internal/config/initializers/gds-sso.rb +0 -2
- data/spec/internal/db/combustion_test.sqlite +0 -0
- data/spec/internal/log/test.log +1143 -0
- data/spec/requests/end_to_end_spec.rb +0 -24
- metadata +4 -4
@@ -149,30 +149,6 @@ describe "Integration of client using GDS-SSO with signonotron" do
|
|
149
149
|
end
|
150
150
|
end
|
151
151
|
|
152
|
-
describe "Old-style (HTTP Basic) API client accesses" do
|
153
|
-
before :each do
|
154
|
-
page.driver.header 'accept', 'application/json'
|
155
|
-
end
|
156
|
-
|
157
|
-
specify "access to a restricted page for an api client requires basic auth" do
|
158
|
-
visit "http://#{@client_host}/restricted"
|
159
|
-
page.driver.response.status.should == 401
|
160
|
-
page.driver.response.headers["WWW-Authenticate"].should == 'Basic realm="API Access"'
|
161
|
-
|
162
|
-
page.driver.browser.authorize 'test_api_user', 'api_user_password'
|
163
|
-
visit "http://#{@client_host}/restricted"
|
164
|
-
|
165
|
-
page.should have_content('restricted kablooie')
|
166
|
-
end
|
167
|
-
|
168
|
-
specify "access to a page that requires signin permission granted (without basic auth users having permissions)" do
|
169
|
-
page.driver.browser.authorize 'test_api_user', 'api_user_password'
|
170
|
-
visit "http://#{@client_host}/this_requires_signin_permission"
|
171
|
-
|
172
|
-
page.should have_content('you have signin permission')
|
173
|
-
end
|
174
|
-
end
|
175
|
-
|
176
152
|
describe "OAuth based API client accesses" do
|
177
153
|
before :each do
|
178
154
|
page.driver.header 'accept', 'application/json'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gds-sso
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-10-
|
13
|
+
date: 2013-10-31 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -315,7 +315,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
315
315
|
version: '0'
|
316
316
|
segments:
|
317
317
|
- 0
|
318
|
-
hash:
|
318
|
+
hash: -3519837502807078883
|
319
319
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
320
320
|
none: false
|
321
321
|
requirements:
|
@@ -324,7 +324,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
324
324
|
version: '0'
|
325
325
|
segments:
|
326
326
|
- 0
|
327
|
-
hash:
|
327
|
+
hash: -3519837502807078883
|
328
328
|
requirements: []
|
329
329
|
rubyforge_project: gds-sso
|
330
330
|
rubygems_version: 1.8.23
|