cf-uaa-lib 3.7.0 → 3.8.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: 41d1d29707fa6dd64486407764cfaa01dddf0b39
4
- data.tar.gz: 41a335fbc12c82462b3ca18ffbdd73613f89a7e2
3
+ metadata.gz: 70669ed7b90ce06174a22dce47dd75c0cdcf16ce
4
+ data.tar.gz: 3357008001e3a78f4bc26bae6eaf14737e80b0ce
5
5
  SHA512:
6
- metadata.gz: 171ff7b4dabbfe88d3939204fe5ea7d6142a9f5912d191979c78920d56b697d43810df85d80a6798702f3684c3414f1b0c0637d41fd772e08ab83a1f4cd50b56
7
- data.tar.gz: 076de82f0fc91e1cb8388a310324fb66c86a017d24dbab52313167742400941b4b4865ccdb09f91844750f88edcbc8d2b88991cea7fbdbd7c92a75d5c8c68733
6
+ metadata.gz: 78e3635e968dd3c32f891433e8d434baf5522898c38e1b9997c08cfff4ff6c85780f4e4475414020d5511da546658d59f0dab34e15ce7d1a95a5a50d3f57a63f
7
+ data.tar.gz: e20837e3fba2002a6ab6fcfbbbf86821352b12b4e8578002472115bea57ea1149674916c0e778f6a8cb70904452a3bf69f9af29c00ef82ee6fdb9991f948407b
@@ -224,6 +224,14 @@ class Scim
224
224
  info
225
225
  end
226
226
 
227
+ # Get meta information about client
228
+ # @param client_id
229
+ # @return (client meta)
230
+ def get_client_meta(client_id)
231
+ path = type_info(:client, :path)
232
+ json_get(@target, "#{path}/#{URI.encode(client_id)}/meta", @key_style, headers)
233
+ end
234
+
227
235
  # Collects all pages of entries from a query
228
236
  # @param type (see #query)
229
237
  # @param [Hash] query may contain the following keys:
@@ -14,6 +14,6 @@
14
14
  # Cloud Foundry namespace
15
15
  module CF
16
16
  module UAA
17
- VERSION = "3.7.0"
17
+ VERSION = "3.8.0"
18
18
  end
19
19
  end
@@ -58,6 +58,18 @@ describe Scim do
58
58
  result['id'].should == 'id12345'
59
59
  end
60
60
 
61
+ it 'gets client meta' do
62
+ subject.set_request_handler do |url, method, body, headers|
63
+ url.should == "#{@target}/oauth/clients/id12345/meta"
64
+ method.should == :get
65
+ check_headers(headers, nil, :json, nil)
66
+ [200, '{"id":"id12345", "created_by": "Marissa"}', {'content-type' => 'application/json'}]
67
+ end
68
+ result = subject.get_client_meta('id12345')
69
+ result['id'].should == 'id12345'
70
+ result['created_by'].should == 'Marissa'
71
+ end
72
+
61
73
  it 'replaces an object' do
62
74
  obj = {:hair => 'black', :shoe_size => 'medium', :eye_color => ['hazel', 'brown'],
63
75
  :name => 'fredrick', :meta => {:version => 'v567'}, :id => 'id12345'}
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.7.0
4
+ version: 3.8.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: 2016-12-15 00:00:00.000000000 Z
15
+ date: 2017-01-26 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: multi_json