cf-uaac 4.1.0 → 4.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +0 -1
- data/bin/uaac +3 -1
- data/cf-uaac.gemspec +0 -1
- data/lib/uaa/cli/token.rb +1 -1
- data/lib/uaa/cli/version.rb +2 -1
- data/lib/uaa/stub/uaa.rb +2 -0
- data/version.txt +1 -0
- metadata +5 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f51bc4b4f4afaa684f04ffb6b4df5460aa402194546194323478f6fc2156a380
|
4
|
+
data.tar.gz: '0224883503f87e4a15d97fd829fd1d104570902646380ed5a94edbaaa28738f1'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c97beaa58e4f74bd4b5eb293dc0c884cbf65f5464537b3265bab5fdec0b8d842bde8865485e52eff8a7725c62e87a3857b628374afc33973451b75edc5421622
|
7
|
+
data.tar.gz: e9d31deeee61e292d2c7fc7b6e571f7402438d36ccac156eaf01e29518957034c0b2651566928ded8fc77edaf6b2676c0ec2792a304d856bf7143e778f24cdee
|
data/.travis.yml
CHANGED
data/bin/uaac
CHANGED
@@ -15,4 +15,6 @@
|
|
15
15
|
|
16
16
|
$:.unshift File.expand_path File.join __FILE__, '..', '..', 'lib'
|
17
17
|
require 'uaac_cli'
|
18
|
-
|
18
|
+
home = ENV['UAAC_HOME']
|
19
|
+
home = ENV['HOME'] if home.nil? || home.empty?
|
20
|
+
exit CF::UAA::Cli.configure("#{home}/.uaac.yml").run ? 0 : 1
|
data/cf-uaac.gemspec
CHANGED
@@ -34,7 +34,6 @@ Gem::Specification.new do |s|
|
|
34
34
|
|
35
35
|
# dependencies
|
36
36
|
s.add_runtime_dependency 'cf-uaa-lib', '~> 3.11'
|
37
|
-
s.add_development_dependency 'bundler', '~> 1.14'
|
38
37
|
s.add_development_dependency 'rake', '~> 10.3', '>= 10.3.1'
|
39
38
|
s.add_development_dependency 'rspec', '~> 2.14', '>= 2.14.1'
|
40
39
|
s.add_development_dependency 'simplecov', '~> 0.8.2'
|
data/lib/uaa/cli/token.rb
CHANGED
@@ -88,7 +88,7 @@ class TokenCli < CommonCli
|
|
88
88
|
|
89
89
|
def issuer_request(client_id, secret = nil)
|
90
90
|
update_target_info
|
91
|
-
yield TokenIssuer.new(Config.target.to_s, client_id, secret,
|
91
|
+
yield TokenIssuer.new(Config.target.to_s, CGI.escape(client_id), CGI.escape(secret),
|
92
92
|
{ token_target: Config.target_value(:token_endpoint),
|
93
93
|
skip_ssl_validation: Config.target_value(:skip_ssl_validation),
|
94
94
|
ssl_ca_file: Config.target_value(:ca_cert) })
|
data/lib/uaa/cli/version.rb
CHANGED
data/lib/uaa/stub/uaa.rb
CHANGED
@@ -15,6 +15,7 @@ require 'uaa'
|
|
15
15
|
require 'uaa/stub/server'
|
16
16
|
require 'uaa/stub/scim'
|
17
17
|
require 'uaa/cli/version'
|
18
|
+
require 'cgi'
|
18
19
|
require 'pp'
|
19
20
|
|
20
21
|
module CF::UAA
|
@@ -168,6 +169,7 @@ class StubUAAConn < Stub::Base
|
|
168
169
|
ah = basic_auth_header.split(' ')
|
169
170
|
return unless ah[0] =~ /^basic$/i
|
170
171
|
ah = Base64::strict_decode64(ah[1]).split(':')
|
172
|
+
ah = ah.map { |item| CGI::unescape(item) }
|
171
173
|
client = server.scim.get_by_name(ah[0], :client)
|
172
174
|
client if client && client[:client_secret] == ah[1]
|
173
175
|
end
|
data/version.txt
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
4.2.0
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cf-uaac
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.2.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:
|
15
|
+
date: 2019-08-27 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: cf-uaa-lib
|
@@ -28,20 +28,6 @@ dependencies:
|
|
28
28
|
- - "~>"
|
29
29
|
- !ruby/object:Gem::Version
|
30
30
|
version: '3.11'
|
31
|
-
- !ruby/object:Gem::Dependency
|
32
|
-
name: bundler
|
33
|
-
requirement: !ruby/object:Gem::Requirement
|
34
|
-
requirements:
|
35
|
-
- - "~>"
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: '1.14'
|
38
|
-
type: :development
|
39
|
-
prerelease: false
|
40
|
-
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
requirements:
|
42
|
-
- - "~>"
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
version: '1.14'
|
45
31
|
- !ruby/object:Gem::Dependency
|
46
32
|
name: rake
|
47
33
|
requirement: !ruby/object:Gem::Requirement
|
@@ -311,6 +297,7 @@ files:
|
|
311
297
|
- spec/ssl_integration_spec.rb
|
312
298
|
- spec/token_spec.rb
|
313
299
|
- spec/user_spec.rb
|
300
|
+
- version.txt
|
314
301
|
homepage: https://github.com/cloudfoundry/cf-uaac
|
315
302
|
licenses:
|
316
303
|
- Apache-2.0
|
@@ -330,20 +317,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
330
317
|
- !ruby/object:Gem::Version
|
331
318
|
version: '0'
|
332
319
|
requirements: []
|
333
|
-
|
334
|
-
rubygems_version: 2.5.1
|
320
|
+
rubygems_version: 3.0.3
|
335
321
|
signing_key:
|
336
322
|
specification_version: 4
|
337
323
|
summary: Command line interface for CloudFoundry UAA
|
338
|
-
test_files:
|
339
|
-
- spec/client_reg_spec.rb
|
340
|
-
- spec/common_spec.rb
|
341
|
-
- spec/curl_spec.rb
|
342
|
-
- spec/group_spec.rb
|
343
|
-
- spec/http_spec.rb
|
344
|
-
- spec/info_spec.rb
|
345
|
-
- spec/setup_helper.rb
|
346
|
-
- spec/spec_helper.rb
|
347
|
-
- spec/ssl_integration_spec.rb
|
348
|
-
- spec/token_spec.rb
|
349
|
-
- spec/user_spec.rb
|
324
|
+
test_files: []
|