cf-uaa-lib 3.11.0 → 3.13.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 -1
- data/lib/uaa/scim.rb +2 -1
- data/lib/uaa/version.rb +1 -1
- data/spec/scim_spec.rb +2 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d3d4edc855be886efe312cfb0665894dffaf332
|
4
|
+
data.tar.gz: 6d07a2957fc5efbfa31f810a1b693dca77abf871
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 546a2c90f033dd94bee5dd3fd8fa0db9d6877bc32e6e3eed25f967a0d8dafa80f27ac4ff9008a6cbd90bfb62c1e3df15cf4e9a90c5329da830ca379fb06436c0
|
7
|
+
data.tar.gz: e172dbce6c01966def32c6a2cf8cad737a43b61a94b97abfbc500ee38859689a02fec76f8d8ec4ada5c001ff11d40c2d32476e3ee72725633cad701427211693
|
data/README.md
CHANGED
@@ -23,7 +23,7 @@ For documentation see: https://rubygems.org/gems/cf-uaa-lib
|
|
23
23
|
token_issuer = CF::UAA::TokenIssuer.new("https://uaa.cloudfoundry.com", "vmc")
|
24
24
|
puts token_issuer.prompts.inspect
|
25
25
|
token = token_issuer.implicit_grant_with_creds(username: "<your_username>", password: "<your_password>")
|
26
|
-
token_info = TokenCoder.decode(token.info["access_token"], nil, nil, false) #token signature not verified
|
26
|
+
token_info = CF::UAA::TokenCoder.decode(token.info["access_token"], nil, nil, false) #token signature not verified
|
27
27
|
puts token_info["user_name"]
|
28
28
|
|
29
29
|
## Tests
|
data/lib/uaa/scim.rb
CHANGED
data/lib/uaa/version.rb
CHANGED
data/spec/scim_spec.rb
CHANGED
@@ -113,6 +113,7 @@ describe Scim do
|
|
113
113
|
subject.set_request_handler do |url, method, body, headers|
|
114
114
|
url.should =~ %r{^#{@target}/Users\?}
|
115
115
|
url.should =~ %r{[\?&]attributes=id(&|$)}
|
116
|
+
url.should =~ %r{[\?&]includeInactive=true(&|$)}
|
116
117
|
url.should =~ %r{[\?&]startIndex=[12](&|$)}
|
117
118
|
method.should == :get
|
118
119
|
check_headers(headers, nil, :json, nil)
|
@@ -121,7 +122,7 @@ describe Scim do
|
|
121
122
|
'{"TotalResults":2,"ItemsPerPage":1,"StartIndex":2,"RESOURCES":[{"id":"id67890"}]}'
|
122
123
|
[200, reply, {'content-type' => 'application/json'}]
|
123
124
|
end
|
124
|
-
result = subject.all_pages(:user, :attributes => 'id')
|
125
|
+
result = subject.all_pages(:user, :attributes => 'id', :includeInactive => true)
|
125
126
|
[result[0]['id'], result[1]['id']].to_set.should == ['id12345', 'id67890'].to_set
|
126
127
|
end
|
127
128
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cf-uaa-lib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dave Syer
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2017-
|
15
|
+
date: 2017-10-26 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: multi_json
|
@@ -236,7 +236,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
236
236
|
version: '0'
|
237
237
|
requirements: []
|
238
238
|
rubyforge_project: cf-uaa-lib
|
239
|
-
rubygems_version: 2.6.
|
239
|
+
rubygems_version: 2.6.13
|
240
240
|
signing_key:
|
241
241
|
specification_version: 4
|
242
242
|
summary: Client library for CloudFoundry UAA
|