gds-sso 0.7.8 → 0.7.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gds-sso/version.rb +1 -1
- data/lib/gds-sso/warden_config.rb +6 -0
- data/spec/internal/log/test.log +134 -0
- metadata +3 -3
data/lib/gds-sso/version.rb
CHANGED
@@ -85,8 +85,14 @@ Warden::Strategies.add(:mock_gds_sso) do
|
|
85
85
|
|
86
86
|
def authenticate!
|
87
87
|
Rails.logger.warn("Authenticating with mock_gds_sso strategy")
|
88
|
+
|
88
89
|
test_user = GDS::SSO.test_user || GDS::SSO::Config.user_klass.first
|
89
90
|
if test_user
|
91
|
+
# Brute force ensure test user has correct perms to signin
|
92
|
+
if ! test_user.has_permission?(GDS::SSO::Config.default_scope, "signin")
|
93
|
+
permissions = test_user.permissions || {}
|
94
|
+
test_user.update_attribute(:permissions, permissions.merge({ GDS::SSO::Config.default_scope => ["signin"] }))
|
95
|
+
end
|
90
96
|
success!(test_user)
|
91
97
|
else
|
92
98
|
if Rails.env.test? and ENV['GDS_SSO_MOCK_INVALID'] == '1'
|
data/spec/internal/log/test.log
CHANGED
@@ -3905,3 +3905,137 @@ Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-07-06 09:41
|
|
3905
3905
|
Processing by ExampleController#this_requires_signin_permission as JSON
|
3906
3906
|
Authenticating with gds_sso_api_access strategy
|
3907
3907
|
Completed 200 OK in 2ms (Views: 0.6ms)
|
3908
|
+
|
3909
|
+
|
3910
|
+
Started GET "/" for 127.0.0.1 at 2012-07-06 15:32:07 +0000
|
3911
|
+
Processing by ExampleController#index as HTML
|
3912
|
+
Rendered text template (0.0ms)
|
3913
|
+
Completed 200 OK in 59ms (Views: 58.6ms)
|
3914
|
+
|
3915
|
+
|
3916
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-06 15:32:07 +0000
|
3917
|
+
Processing by ExampleController#restricted as HTML
|
3918
|
+
Authenticating with gds_sso strategy
|
3919
|
+
Completed in 68ms
|
3920
|
+
|
3921
|
+
|
3922
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-06 15:32:07 +0000
|
3923
|
+
|
3924
|
+
|
3925
|
+
Started GET "/auth/gds/callback?code=07fe618f51cce2bce16f565ef200681f880307d9fbcf6b4546465895f5b6b0c9&state=0f8993247171908e0142af15a30dc5102b2f6f2e16783868" for 127.0.0.1 at 2012-07-06 15:32:08 +0000
|
3926
|
+
Processing by AuthenticationsController#callback as HTML
|
3927
|
+
Parameters: {"code"=>"07fe618f51cce2bce16f565ef200681f880307d9fbcf6b4546465895f5b6b0c9", "state"=>"0f8993247171908e0142af15a30dc5102b2f6f2e16783868"}
|
3928
|
+
Authenticating with gds_sso strategy
|
3929
|
+
Redirected to http://www.example-client.com/restricted
|
3930
|
+
Completed 302 Found in 1ms
|
3931
|
+
|
3932
|
+
|
3933
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-06 15:32:08 +0000
|
3934
|
+
Processing by ExampleController#restricted as HTML
|
3935
|
+
Completed 200 OK in 1ms (Views: 0.5ms)
|
3936
|
+
|
3937
|
+
|
3938
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-06 15:32:08 +0000
|
3939
|
+
Processing by ExampleController#restricted as HTML
|
3940
|
+
Authenticating with gds_sso strategy
|
3941
|
+
Completed in 0ms
|
3942
|
+
|
3943
|
+
|
3944
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-06 15:32:08 +0000
|
3945
|
+
|
3946
|
+
|
3947
|
+
Started GET "/auth/gds/callback?code=cfaa3b99369c66e6cc5056e0483f023ac413144e282818e669553e24f545cf02&state=e34bd0384a7f2316389b0ac090187f1971cef87cd4300ad1" for 127.0.0.1 at 2012-07-06 15:32:09 +0000
|
3948
|
+
Processing by AuthenticationsController#callback as HTML
|
3949
|
+
Parameters: {"code"=>"cfaa3b99369c66e6cc5056e0483f023ac413144e282818e669553e24f545cf02", "state"=>"e34bd0384a7f2316389b0ac090187f1971cef87cd4300ad1"}
|
3950
|
+
Authenticating with gds_sso strategy
|
3951
|
+
Redirected to http://www.example-client.com/restricted
|
3952
|
+
Completed 302 Found in 1ms
|
3953
|
+
|
3954
|
+
|
3955
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-06 15:32:09 +0000
|
3956
|
+
Processing by ExampleController#restricted as HTML
|
3957
|
+
Completed 200 OK in 1ms (Views: 0.5ms)
|
3958
|
+
|
3959
|
+
|
3960
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-06 15:32:09 +0000
|
3961
|
+
Processing by ExampleController#restricted as HTML
|
3962
|
+
Authenticating with gds_sso strategy
|
3963
|
+
Completed in 0ms
|
3964
|
+
|
3965
|
+
|
3966
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-06 15:32:09 +0000
|
3967
|
+
|
3968
|
+
|
3969
|
+
Started GET "/auth/gds/callback?code=39199a4e4131278e00a712d93b211c33601fb66e09102c8b04a638dedc3244b8&state=27ba2b2315064276053638f96b19b9d717bafcdb7ac1beff" for 127.0.0.1 at 2012-07-06 15:32:09 +0000
|
3970
|
+
Processing by AuthenticationsController#callback as HTML
|
3971
|
+
Parameters: {"code"=>"39199a4e4131278e00a712d93b211c33601fb66e09102c8b04a638dedc3244b8", "state"=>"27ba2b2315064276053638f96b19b9d717bafcdb7ac1beff"}
|
3972
|
+
Authenticating with gds_sso strategy
|
3973
|
+
Redirected to http://www.example-client.com/restricted
|
3974
|
+
Completed 302 Found in 1ms
|
3975
|
+
|
3976
|
+
|
3977
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-06 15:32:09 +0000
|
3978
|
+
Processing by ExampleController#restricted as HTML
|
3979
|
+
Completed 200 OK in 1ms (Views: 0.8ms)
|
3980
|
+
|
3981
|
+
|
3982
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-07-06 15:32:09 +0000
|
3983
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
3984
|
+
Authenticating with gds_sso strategy
|
3985
|
+
Completed in 1ms
|
3986
|
+
|
3987
|
+
|
3988
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-06 15:32:09 +0000
|
3989
|
+
|
3990
|
+
|
3991
|
+
Started GET "/auth/gds/callback?code=7d8d11b20fb7f8bf181967c878398f2cce1ee708d5a0bb409d09e147862fd7ca&state=3237cda02e3e384b98db1e83455200982162dc83aa12f0ec" for 127.0.0.1 at 2012-07-06 15:32:09 +0000
|
3992
|
+
Processing by AuthenticationsController#callback as HTML
|
3993
|
+
Parameters: {"code"=>"7d8d11b20fb7f8bf181967c878398f2cce1ee708d5a0bb409d09e147862fd7ca", "state"=>"3237cda02e3e384b98db1e83455200982162dc83aa12f0ec"}
|
3994
|
+
Authenticating with gds_sso strategy
|
3995
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
3996
|
+
Completed 302 Found in 1ms
|
3997
|
+
|
3998
|
+
|
3999
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-07-06 15:32:09 +0000
|
4000
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
4001
|
+
Completed 200 OK in 1ms (Views: 0.6ms)
|
4002
|
+
|
4003
|
+
|
4004
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-07-06 15:32:09 +0000
|
4005
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
4006
|
+
Authenticating with gds_sso strategy
|
4007
|
+
Completed in 0ms
|
4008
|
+
|
4009
|
+
|
4010
|
+
Started GET "/auth/gds" for 127.0.0.1 at 2012-07-06 15:32:09 +0000
|
4011
|
+
|
4012
|
+
|
4013
|
+
Started GET "/auth/gds/callback?code=6aa2f9c2c41f5220dfa867851dfca2bd2a1a02bf3ac7471fa92442eaba3ac159&state=a851168c004626d34f2c867f849911bc322daea24f692af8" for 127.0.0.1 at 2012-07-06 15:32:09 +0000
|
4014
|
+
Processing by AuthenticationsController#callback as HTML
|
4015
|
+
Parameters: {"code"=>"6aa2f9c2c41f5220dfa867851dfca2bd2a1a02bf3ac7471fa92442eaba3ac159", "state"=>"a851168c004626d34f2c867f849911bc322daea24f692af8"}
|
4016
|
+
Authenticating with gds_sso strategy
|
4017
|
+
Redirected to http://www.example-client.com/this_requires_signin_permission
|
4018
|
+
Completed 302 Found in 1ms
|
4019
|
+
|
4020
|
+
|
4021
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-07-06 15:32:10 +0000
|
4022
|
+
Processing by ExampleController#this_requires_signin_permission as HTML
|
4023
|
+
Completed 200 OK in 1ms (Views: 0.3ms)
|
4024
|
+
|
4025
|
+
|
4026
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-06 15:32:10 +0000
|
4027
|
+
Processing by ExampleController#restricted as JSON
|
4028
|
+
Authenticating with gds_sso_api_access strategy
|
4029
|
+
Completed in 14ms
|
4030
|
+
|
4031
|
+
|
4032
|
+
Started GET "/restricted" for 127.0.0.1 at 2012-07-06 15:32:10 +0000
|
4033
|
+
Processing by ExampleController#restricted as JSON
|
4034
|
+
Authenticating with gds_sso_api_access strategy
|
4035
|
+
Completed 200 OK in 1ms (Views: 0.6ms)
|
4036
|
+
|
4037
|
+
|
4038
|
+
Started GET "/this_requires_signin_permission" for 127.0.0.1 at 2012-07-06 15:32:10 +0000
|
4039
|
+
Processing by ExampleController#this_requires_signin_permission as JSON
|
4040
|
+
Authenticating with gds_sso_api_access strategy
|
4041
|
+
Completed 200 OK in 2ms (Views: 0.8ms)
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: gds-sso
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.7.
|
5
|
+
version: 0.7.9
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Matt Patterson
|
@@ -205,7 +205,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
205
205
|
requirements:
|
206
206
|
- - ">="
|
207
207
|
- !ruby/object:Gem::Version
|
208
|
-
hash:
|
208
|
+
hash: 3515382529022688416
|
209
209
|
segments:
|
210
210
|
- 0
|
211
211
|
version: "0"
|
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
214
214
|
requirements:
|
215
215
|
- - ">="
|
216
216
|
- !ruby/object:Gem::Version
|
217
|
-
hash:
|
217
|
+
hash: 3515382529022688416
|
218
218
|
segments:
|
219
219
|
- 0
|
220
220
|
version: "0"
|