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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 6736dcdfab81463608c3dede16c118c2ed06cc83
4
- data.tar.gz: 424c951819105b0e41d422f81dec1ba75fd791e5
2
+ SHA256:
3
+ metadata.gz: f51bc4b4f4afaa684f04ffb6b4df5460aa402194546194323478f6fc2156a380
4
+ data.tar.gz: '0224883503f87e4a15d97fd829fd1d104570902646380ed5a94edbaaa28738f1'
5
5
  SHA512:
6
- metadata.gz: 3b8f1aa2f4a4820cc844577a1bdac71ec80dabdf073aab63638a04b8138b1ce5492ff9c3f9927e30f00039eb05d4231170a9b627fada8ccb008eed29a5405ff9
7
- data.tar.gz: bb291dfc11b15a31c98aa3510b76653c4cde56c2ab04b8cb2da462a3799c663722aa86cf805fe17f142cfdde53523094792b2ef8de1bcc6842ee8cbbb3d766ad
6
+ metadata.gz: c97beaa58e4f74bd4b5eb293dc0c884cbf65f5464537b3265bab5fdec0b8d842bde8865485e52eff8a7725c62e87a3857b628374afc33973451b75edc5421622
7
+ data.tar.gz: e9d31deeee61e292d2c7fc7b6e571f7402438d36ccac156eaf01e29518957034c0b2651566928ded8fc77edaf6b2676c0ec2792a304d856bf7143e778f24cdee
@@ -5,6 +5,5 @@ before_install:
5
5
  - gem install bundler
6
6
 
7
7
  rvm:
8
- - 2.2.7
9
8
  - 2.3.4
10
9
  - 2.4.1
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
- exit CF::UAA::Cli.configure("#{ENV['HOME']}/.uaac.yml").run ? 0 : 1
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
@@ -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'
@@ -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) })
@@ -14,6 +14,7 @@
14
14
  # Cloud Foundry namespace
15
15
  module CF
16
16
  module UAA
17
- CLI_VERSION = '4.1.0'
17
+ version_path = File.join( File.dirname(__FILE__), '../../../version.txt' )
18
+ CLI_VERSION = File.read(version_path)
18
19
  end
19
20
  end
@@ -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
@@ -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.1.0
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: 2017-11-01 00:00:00.000000000 Z
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
- rubyforge_project: cf-uaac
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: []