gds-sso 10.0.1 → 10.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/app/controllers/api/user_controller.rb +1 -0
- data/lib/gds-sso/bearer_token.rb +1 -0
- data/lib/gds-sso/lint/user_spec.rb +2 -0
- data/lib/gds-sso/user.rb +2 -1
- data/lib/gds-sso/version.rb +1 -1
- data/spec/controller/api_user_controller_spec.rb +2 -0
- data/spec/internal/db/combustion_test.sqlite +0 -0
- data/spec/internal/db/schema.rb +1 -0
- data/spec/internal/log/test.log +1497 -1497
- data/spec/unit/user_spec.rb +6 -1
- metadata +4 -4
data/spec/unit/user_spec.rb
CHANGED
@@ -11,7 +11,11 @@ describe GDS::SSO::User do
|
|
11
11
|
'uid' => 'abcde',
|
12
12
|
'credentials' => {'token' => 'abcdefg', 'secret' => 'abcdefg'},
|
13
13
|
'info' => {'name' => 'Matt Patterson', 'email' => 'matt@alphagov.co.uk'},
|
14
|
-
'extra' => {
|
14
|
+
'extra' => {
|
15
|
+
'user' => {
|
16
|
+
'permissions' => [], 'organisation_slug' => nil, "organisation_content_id" => nil, 'disabled' => false
|
17
|
+
}
|
18
|
+
}
|
15
19
|
}
|
16
20
|
end
|
17
21
|
|
@@ -21,6 +25,7 @@ describe GDS::SSO::User do
|
|
21
25
|
'email' => 'matt@alphagov.co.uk',
|
22
26
|
"permissions" => [],
|
23
27
|
"organisation_slug" => nil,
|
28
|
+
"organisation_content_id" => nil,
|
24
29
|
'disabled' => false,
|
25
30
|
}
|
26
31
|
expect(GDS::SSO::User.user_params_from_auth_hash(@auth_hash)).to eq(expected)
|
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: 10.0
|
4
|
+
version: 10.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Patterson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-04-
|
12
|
+
date: 2015-04-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -73,14 +73,14 @@ dependencies:
|
|
73
73
|
requirements:
|
74
74
|
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: '3.
|
76
|
+
version: '3.2'
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: '3.
|
83
|
+
version: '3.2'
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: warden-oauth2
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|