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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a39c7cac1bfb08a869bf7550ad7cf6bbe12773fe
4
- data.tar.gz: 1d0ddccaa0bc2e16233f5b97c869b49039be14df
3
+ metadata.gz: 4d3d4edc855be886efe312cfb0665894dffaf332
4
+ data.tar.gz: 6d07a2957fc5efbfa31f810a1b693dca77abf871
5
5
  SHA512:
6
- metadata.gz: ed1db7f178ef9bdf94698575429be99920f52e298c10bd9617a0fa045457647244a58e41ca288aa8c9e7eac9703433bbfe5239dfcbbe8a8c83ba1fb317233e2b
7
- data.tar.gz: 7bb052fa64c0473588d24aeda1c855e556215fc82f891fc56b2f7f15f7ae7fa3967cb0ac300ff95b285c30a3ed80cd1d0cc748280c78e48bd95181b46595ff17
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
@@ -61,7 +61,8 @@ class Scim
61
61
  'externalid' => 'externalId',
62
62
  'phonenumbers' => 'phoneNumbers',
63
63
  'startindex' => 'startIndex',
64
- 'zoneid' => 'zoneId'
64
+ 'zoneid' => 'zoneId',
65
+ 'includeinactive' => 'includeInactive'
65
66
  }[kd]
66
67
  kc || kd
67
68
  end
@@ -14,6 +14,6 @@
14
14
  # Cloud Foundry namespace
15
15
  module CF
16
16
  module UAA
17
- VERSION = '3.11.0'
17
+ VERSION = '3.13.0'
18
18
  end
19
19
  end
@@ -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.11.0
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-07-28 00:00:00.000000000 Z
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.11
239
+ rubygems_version: 2.6.13
240
240
  signing_key:
241
241
  specification_version: 4
242
242
  summary: Client library for CloudFoundry UAA