cf-uaac 4.1.0 → 4.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/dependabot.yml +11 -0
- data/.github/workflows/ruby.yml +26 -0
- data/README.md +2 -2
- data/bin/uaac +3 -1
- data/cf-uaac.gemspec +9 -11
- data/lib/uaa/cli/base.rb +2 -1
- data/lib/uaa/cli/client_reg.rb +4 -0
- data/lib/uaa/cli/common.rb +5 -2
- data/lib/uaa/cli/info.rb +0 -4
- data/lib/uaa/cli/token.rb +2 -0
- data/lib/uaa/cli/user.rb +2 -2
- data/lib/uaa/cli/version.rb +2 -1
- data/lib/uaa/stub/scim.rb +1 -1
- data/lib/uaa/stub/uaa.rb +2 -0
- data/spec/client_reg_spec.rb +2 -2
- data/spec/common_spec.rb +1 -1
- data/spec/info_spec.rb +0 -5
- data/spec/spec_helper.rb +6 -0
- data/spec/user_spec.rb +2 -2
- data/version.txt +1 -0
- metadata +56 -72
- data/.travis.yml +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 36488b9610f3cc86a06d229903f29beda0e6394d533894390199e89851e225de
|
4
|
+
data.tar.gz: 00b0ea7818b49c8871e78ebb1286982dcd569ac33decd42a96d9fa10cec0aea7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 349d0003eb1dba666f54fadc9017b644269d15cf89edb83cf210e22c5fac38b4faf70e0b12b07afeec378572c158ea8db77cb7242f998ad73d1258b75d285c4a
|
7
|
+
data.tar.gz: b669538c9b836c36ac8f493c3e0539303c0269c08fa3a6704e7f4f26140333016ec748e6e594b54932f04f993ecfaf259800c294e1f727c00b249dc060ff1476
|
@@ -0,0 +1,26 @@
|
|
1
|
+
name: Ruby
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ master ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ master ]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
test:
|
11
|
+
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
strategy:
|
14
|
+
fail-fast: false
|
15
|
+
matrix:
|
16
|
+
ruby-version: ['2.5', '2.7', '3.0', '3.1']
|
17
|
+
|
18
|
+
steps:
|
19
|
+
- uses: actions/checkout@v2
|
20
|
+
- name: Set up Ruby
|
21
|
+
uses: ruby/setup-ruby@v1
|
22
|
+
with:
|
23
|
+
ruby-version: ${{ matrix.ruby-version }}
|
24
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
25
|
+
- name: Run tests
|
26
|
+
run: bundle exec rake cov
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# CloudFoundry UAA Command Line Client
|
2
2
|
|
3
|
-
|
3
|
+
![Build status](https://github.com/cloudfoundry/cf-uaac/actions/workflows/ruby.yml/badge.svg)
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/cf-uaac.png)](https://rubygems.org/gems/cf-uaac)
|
5
5
|
|
6
6
|
## Installation
|
@@ -67,4 +67,4 @@ export UAA_CLIENT_ID="admin"
|
|
67
67
|
export UAA_CLIENT_SECRET="adminsecret"
|
68
68
|
export UAA_CLIENT_TARGET="http://localhost:8080/uaa"
|
69
69
|
bundle exec rake test
|
70
|
-
```
|
70
|
+
```
|
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
@@ -24,8 +24,6 @@ Gem::Specification.new do |s|
|
|
24
24
|
s.summary = %q{Command line interface for CloudFoundry UAA}
|
25
25
|
s.description = %q{Client command line tools for interacting with the CloudFoundry User Account and Authorization (UAA) server. The UAA is an OAuth2 Authorization Server so it can be used by webapps and command line apps to obtain access tokens to act on behalf of users. The tokens can then be used to access protected resources in a Resource Server. This library can be used by clients (as a convenient wrapper for mainstream oauth gems) or by resource servers.}
|
26
26
|
|
27
|
-
s.rubyforge_project = 'cf-uaac'
|
28
|
-
|
29
27
|
s.license = 'Apache-2.0'
|
30
28
|
s.files = `git ls-files`.split("\n")
|
31
29
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
@@ -33,17 +31,17 @@ Gem::Specification.new do |s|
|
|
33
31
|
s.require_paths = ['lib']
|
34
32
|
|
35
33
|
# dependencies
|
36
|
-
s.add_runtime_dependency 'cf-uaa-lib', '~>
|
37
|
-
s.add_development_dependency '
|
38
|
-
s.add_development_dependency '
|
39
|
-
s.add_development_dependency '
|
40
|
-
s.add_development_dependency 'simplecov', '~> 0.8.2'
|
34
|
+
s.add_runtime_dependency 'cf-uaa-lib', '~> 4.0'
|
35
|
+
s.add_development_dependency 'rake', '>= 10.3.1', '~> 13.0'
|
36
|
+
s.add_development_dependency 'rspec', '>= 2.14.1', '~> 3.9'
|
37
|
+
s.add_development_dependency 'simplecov', '~> 0.21.2'
|
41
38
|
s.add_development_dependency 'simplecov-rcov', '~> 0.2.3'
|
42
|
-
s.add_development_dependency 'ci_reporter', '
|
43
|
-
s.
|
39
|
+
s.add_development_dependency 'ci_reporter', '>= 1.9.2', '~> 2.0'
|
40
|
+
s.add_development_dependency 'ci_reporter_rspec', '~> 1.0'
|
41
|
+
s.add_runtime_dependency 'highline', '~> 2.0'
|
44
42
|
s.add_runtime_dependency 'eventmachine', '~> 1.0', '>= 1.0.3'
|
45
43
|
s.add_runtime_dependency 'launchy', '~> 2.4', '>= 2.4.2'
|
46
44
|
s.add_runtime_dependency 'em-http-request', '~> 1.1', '>= 1.1.2'
|
47
|
-
s.add_runtime_dependency 'json_pure', '
|
48
|
-
s.add_runtime_dependency 'rack', '
|
45
|
+
s.add_runtime_dependency 'json_pure', '>= 1.8.1', '< 3.0'
|
46
|
+
s.add_runtime_dependency 'rack', '>= 1.5.2', '< 3.0'
|
49
47
|
end
|
data/lib/uaa/cli/base.rb
CHANGED
@@ -14,6 +14,7 @@
|
|
14
14
|
require 'highline'
|
15
15
|
require 'optparse'
|
16
16
|
require 'json/pure'
|
17
|
+
require 'io/console'
|
17
18
|
|
18
19
|
module CF; module UAA end end
|
19
20
|
|
@@ -65,7 +66,7 @@ class Topic
|
|
65
66
|
|
66
67
|
def terminal_columns
|
67
68
|
return @terminal_columns ||= 0 if @terminal_columns || !@output.tty?
|
68
|
-
cols =
|
69
|
+
cols = IO.console.winsize.last rescue 0 if $stdin.tty?
|
69
70
|
@terminal_columns = !cols || cols < 40 ? 0 : cols
|
70
71
|
end
|
71
72
|
|
data/lib/uaa/cli/client_reg.rb
CHANGED
@@ -28,6 +28,7 @@ class ClientCli < CommonCli
|
|
28
28
|
:refresh_token_validity => 'seconds',
|
29
29
|
:redirect_uri => 'list',
|
30
30
|
:autoapprove => 'list',
|
31
|
+
:allowedproviders => 'list',
|
31
32
|
:'signup_redirect_url' => 'url'
|
32
33
|
}
|
33
34
|
CLIENT_SCHEMA.each { |k, v| define_option(k, "--#{k} <#{v}>") }
|
@@ -51,6 +52,9 @@ class ClientCli < CommonCli
|
|
51
52
|
info[k] = Util.arglist(info[k]) if p == 'list'
|
52
53
|
info.delete(k) unless info[k]
|
53
54
|
end
|
55
|
+
if opts.key?(k) && k == :allowedproviders && (info[k].join('') == 'all' || info[k].join('') == 'null' || info[k].join('') == 'nil')
|
56
|
+
info[:allowedproviders] = nil
|
57
|
+
end
|
54
58
|
end
|
55
59
|
end
|
56
60
|
|
data/lib/uaa/cli/common.rb
CHANGED
@@ -31,7 +31,7 @@ class CommonCli < Topic
|
|
31
31
|
|
32
32
|
def username(name); name || ask("User name") end
|
33
33
|
def userpwd(pwd = opts[:password]); pwd || ask_pwd("Password") end
|
34
|
-
def passcode(passcode = opts[:passcode]); passcode || ask("Passcode (from #{Config.target}/passcode)") end
|
34
|
+
def passcode(passcode = opts[:passcode]); passcode || ask("Passcode ( from #{Config.target}/passcode )") end
|
35
35
|
def clientid(id = opts[:client]); id || ask("Client ID") end
|
36
36
|
def clientsecret(secret = opts[:secret]); secret || ask_pwd("Client secret") end
|
37
37
|
def clientname(name = opts[:name]); name end
|
@@ -186,7 +186,8 @@ class MiscCli < CommonCli
|
|
186
186
|
define_option :ca_cert, "--ca-cert [file]", "use the given CA certificate to validate the target's SSL certificate"
|
187
187
|
define_option :skip_ssl_validation, "--skip-ssl-validation", "do not attempt to validate ssl certificate"
|
188
188
|
define_option :force, "--[no-]force", "-f", "set even if target does not respond"
|
189
|
-
|
189
|
+
define_option :basic_auth, "--[no-]basic_auth", "set if you need basic or oauth2 (url encoded) client authentication"
|
190
|
+
desc "target [uaa_url]", "Display current or set new target", :force, :ca_cert, :skip_ssl_validation, :basic_auth do |uaa_url|
|
190
191
|
msg, info = nil, {}
|
191
192
|
if uaa_url
|
192
193
|
if uaa_url.to_i.to_s == uaa_url
|
@@ -204,6 +205,8 @@ class MiscCli < CommonCli
|
|
204
205
|
Config.target = url # we now have a canonical url set to https if possible
|
205
206
|
Config.target_opts(skip_ssl_validation: true) if opts[:skip_ssl_validation]
|
206
207
|
Config.target_opts(ca_cert: opts[:ca_cert])
|
208
|
+
Config.target_opts(basic_auth: true) if opts[:basic_auth] == true
|
209
|
+
Config.target_opts(basic_auth: false) if opts[:basic_auth] == false
|
207
210
|
update_target_info(info) if info[:prompts]
|
208
211
|
end
|
209
212
|
return say "no target set" unless Config.target
|
data/lib/uaa/cli/info.rb
CHANGED
@@ -47,10 +47,6 @@ class InfoCli < CommonCli
|
|
47
47
|
pp info
|
48
48
|
end
|
49
49
|
|
50
|
-
desc "stats", "Show UAA's current usage statistics", :client, :secret do
|
51
|
-
pp misc_request { @cli_class.uaa_info_client.varz(clientid, clientsecret) }
|
52
|
-
end
|
53
|
-
|
54
50
|
desc "password strength [password]", "calculate strength score of a password" do |pwd|
|
55
51
|
pp misc_request { @cli_class.uaa_info_client.password_strength(userpwd(pwd)) }
|
56
52
|
end
|
data/lib/uaa/cli/token.rb
CHANGED
@@ -25,6 +25,7 @@ class TokenCatcher < Stub::Base
|
|
25
25
|
secret = server.info.delete(:client_secret)
|
26
26
|
ti = TokenIssuer.new(Config.target, server.info.delete(:client_id), secret,
|
27
27
|
{ token_target: Config.target_value(:token_target),
|
28
|
+
basic_auth: Config.target_value(:basic_auth),
|
28
29
|
skip_ssl_validation: Config.target_value(:skip_ssl_validation)})
|
29
30
|
tkn = secret ? ti.authcode_grant(server.info.delete(:uri), data) :
|
30
31
|
ti.implicit_grant(server.info.delete(:uri), data)
|
@@ -90,6 +91,7 @@ class TokenCli < CommonCli
|
|
90
91
|
update_target_info
|
91
92
|
yield TokenIssuer.new(Config.target.to_s, client_id, secret,
|
92
93
|
{ token_target: Config.target_value(:token_endpoint),
|
94
|
+
basic_auth: Config.target_value(:basic_auth),
|
93
95
|
skip_ssl_validation: Config.target_value(:skip_ssl_validation),
|
94
96
|
ssl_ca_file: Config.target_value(:ca_cert) })
|
95
97
|
rescue Exception => e
|
data/lib/uaa/cli/user.rb
CHANGED
@@ -19,12 +19,12 @@ class UserCli < CommonCli
|
|
19
19
|
|
20
20
|
topic 'User Accounts', 'account'
|
21
21
|
|
22
|
+
define_option :origin, '--origin <name>, select user to update by identity provider origin. Defaults to UAA'
|
22
23
|
define_option :givenName, '--given_name <name>'
|
23
24
|
define_option :familyName, '--family_name <name>'
|
24
25
|
define_option :emails, '--emails <addresses>'
|
25
26
|
define_option :phoneNumbers, '--phones <phone_numbers>'
|
26
|
-
|
27
|
-
USER_INFO_OPTS = [:givenName, :familyName, :emails, :phoneNumbers, :origin]
|
27
|
+
USER_INFO_OPTS = [:origin, :givenName, :familyName, :emails, :phoneNumbers]
|
28
28
|
|
29
29
|
def user_opts(info = {})
|
30
30
|
[:emails, :phoneNumbers].each do |o|
|
data/lib/uaa/cli/version.rb
CHANGED
data/lib/uaa/stub/scim.rb
CHANGED
@@ -65,7 +65,7 @@ class StubScim
|
|
65
65
|
:authorizations, :groups].to_set,
|
66
66
|
client: [*COMMON_ATTRS, :client_id, :name, :client_secret, :authorities,
|
67
67
|
:authorized_grant_types, :scope, :autoapprove,
|
68
|
-
:access_token_validity, :refresh_token_validity, :redirect_uri,
|
68
|
+
:access_token_validity, :refresh_token_validity, :redirect_uri, :allowedproviders,
|
69
69
|
:'signup_redirect_url'].to_set,
|
70
70
|
group: [*COMMON_ATTRS, :displayname, :members, :writers, :readers, :external_groups].to_set }
|
71
71
|
VISIBLE_ATTRS = {user: Set.new(LEGAL_ATTRS[:user] - HIDDEN_ATTRS),
|
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/spec/client_reg_spec.rb
CHANGED
@@ -58,8 +58,8 @@ describe ClientCli do
|
|
58
58
|
end
|
59
59
|
|
60
60
|
it 'does not wrap the output of the access token in the terminal' do
|
61
|
-
@output.
|
62
|
-
|
61
|
+
allow(@output).to receive(:tty?).and_return(true)
|
62
|
+
allow(IO.console).to receive(:winsize).and_return([40, 80])
|
63
63
|
Cli.run('context').should be
|
64
64
|
Cli.output.string.should match /access_token: \S+?\s+token_type/m
|
65
65
|
end
|
data/spec/common_spec.rb
CHANGED
@@ -44,7 +44,7 @@ describe CommonCli do
|
|
44
44
|
|
45
45
|
it "displays user help with -h has --origin option" do
|
46
46
|
Cli.run("user -h")
|
47
|
-
Cli.output.string.should include("--origin <identity provider origin
|
47
|
+
Cli.output.string.should include("--origin <name>, select user to update by identity provider origin. Defaults to UAA")
|
48
48
|
end
|
49
49
|
|
50
50
|
it "displays group help with -h has --origin option" do
|
data/spec/info_spec.rb
CHANGED
@@ -53,11 +53,6 @@ describe InfoCli do
|
|
53
53
|
Cli.output.string.should include "score", "requiredScore"
|
54
54
|
end
|
55
55
|
|
56
|
-
it "gets the server stats" do
|
57
|
-
pending "no UAA_VARZ_SECRET environment variable set" unless @varz_secret
|
58
|
-
Cli.run("stats -c varz -s #{@varz_secret}").should be
|
59
|
-
Cli.output.string.should include 'type: UAA', 'mem:', 'version:'
|
60
|
-
end
|
61
56
|
|
62
57
|
it "sets multiple targets to be fully qualified in config and targets output" do
|
63
58
|
Config.load("")
|
data/spec/spec_helper.rb
CHANGED
@@ -26,6 +26,12 @@ require 'rspec'
|
|
26
26
|
require 'eventmachine'
|
27
27
|
require 'uaa/stub/uaa'
|
28
28
|
|
29
|
+
RSpec.configure do |config|
|
30
|
+
config.expect_with :rspec do |expectations|
|
31
|
+
expectations.syntax = [:expect, :should]
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
29
35
|
module CF::UAA
|
30
36
|
|
31
37
|
module SpecHelper
|
data/spec/user_spec.rb
CHANGED
@@ -69,7 +69,7 @@ describe UserCli do
|
|
69
69
|
Cli.input = StringIO.new("password") # selecting first origin through stdin
|
70
70
|
Cli.run("user add #{user_with_origin} " +
|
71
71
|
'--emails sam@example.com --given_name SamueL ' +
|
72
|
-
"--phones 801-555-1212 --family_name jonES --origin uaa")
|
72
|
+
"--phones 801-555-1212 --family_name jonES --origin uaa")
|
73
73
|
|
74
74
|
expect(Cli.output.string).to match 'Password:'
|
75
75
|
Cli.run("user delete #{user_with_origin}")
|
@@ -80,7 +80,7 @@ describe UserCli do
|
|
80
80
|
Cli.input = StringIO.new("password") # selecting first origin through stdin
|
81
81
|
Cli.run("user add #{user_with_origin} " +
|
82
82
|
'--emails sam@example.com --given_name SamueL ' +
|
83
|
-
"--phones 801-555-1212 --family_name jonES")
|
83
|
+
"--phones 801-555-1212 --family_name jonES")
|
84
84
|
|
85
85
|
expect(Cli.output.string).to match 'Password:'
|
86
86
|
Cli.run("user delete #{user_with_origin}")
|
data/version.txt
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
4.5.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.5.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: 2022-01-21 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: cf-uaa-lib
|
@@ -20,82 +20,68 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - "~>"
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: '
|
23
|
+
version: '4.0'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
27
27
|
requirements:
|
28
28
|
- - "~>"
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
version: '
|
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'
|
30
|
+
version: '4.0'
|
45
31
|
- !ruby/object:Gem::Dependency
|
46
32
|
name: rake
|
47
33
|
requirement: !ruby/object:Gem::Requirement
|
48
34
|
requirements:
|
49
|
-
- - "~>"
|
50
|
-
- !ruby/object:Gem::Version
|
51
|
-
version: '10.3'
|
52
35
|
- - ">="
|
53
36
|
- !ruby/object:Gem::Version
|
54
37
|
version: 10.3.1
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '13.0'
|
55
41
|
type: :development
|
56
42
|
prerelease: false
|
57
43
|
version_requirements: !ruby/object:Gem::Requirement
|
58
44
|
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '10.3'
|
62
45
|
- - ">="
|
63
46
|
- !ruby/object:Gem::Version
|
64
47
|
version: 10.3.1
|
48
|
+
- - "~>"
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '13.0'
|
65
51
|
- !ruby/object:Gem::Dependency
|
66
52
|
name: rspec
|
67
53
|
requirement: !ruby/object:Gem::Requirement
|
68
54
|
requirements:
|
69
|
-
- - "~>"
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
version: '2.14'
|
72
55
|
- - ">="
|
73
56
|
- !ruby/object:Gem::Version
|
74
57
|
version: 2.14.1
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '3.9'
|
75
61
|
type: :development
|
76
62
|
prerelease: false
|
77
63
|
version_requirements: !ruby/object:Gem::Requirement
|
78
64
|
requirements:
|
79
|
-
- - "~>"
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version: '2.14'
|
82
65
|
- - ">="
|
83
66
|
- !ruby/object:Gem::Version
|
84
67
|
version: 2.14.1
|
68
|
+
- - "~>"
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '3.9'
|
85
71
|
- !ruby/object:Gem::Dependency
|
86
72
|
name: simplecov
|
87
73
|
requirement: !ruby/object:Gem::Requirement
|
88
74
|
requirements:
|
89
75
|
- - "~>"
|
90
76
|
- !ruby/object:Gem::Version
|
91
|
-
version: 0.
|
77
|
+
version: 0.21.2
|
92
78
|
type: :development
|
93
79
|
prerelease: false
|
94
80
|
version_requirements: !ruby/object:Gem::Requirement
|
95
81
|
requirements:
|
96
82
|
- - "~>"
|
97
83
|
- !ruby/object:Gem::Version
|
98
|
-
version: 0.
|
84
|
+
version: 0.21.2
|
99
85
|
- !ruby/object:Gem::Dependency
|
100
86
|
name: simplecov-rcov
|
101
87
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,42 +100,50 @@ dependencies:
|
|
114
100
|
name: ci_reporter
|
115
101
|
requirement: !ruby/object:Gem::Requirement
|
116
102
|
requirements:
|
103
|
+
- - ">="
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: 1.9.2
|
117
106
|
- - "~>"
|
118
107
|
- !ruby/object:Gem::Version
|
119
|
-
version: '
|
108
|
+
version: '2.0'
|
109
|
+
type: :development
|
110
|
+
prerelease: false
|
111
|
+
version_requirements: !ruby/object:Gem::Requirement
|
112
|
+
requirements:
|
120
113
|
- - ">="
|
121
114
|
- !ruby/object:Gem::Version
|
122
115
|
version: 1.9.2
|
116
|
+
- - "~>"
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '2.0'
|
119
|
+
- !ruby/object:Gem::Dependency
|
120
|
+
name: ci_reporter_rspec
|
121
|
+
requirement: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - "~>"
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '1.0'
|
123
126
|
type: :development
|
124
127
|
prerelease: false
|
125
128
|
version_requirements: !ruby/object:Gem::Requirement
|
126
129
|
requirements:
|
127
130
|
- - "~>"
|
128
131
|
- !ruby/object:Gem::Version
|
129
|
-
version: '1.
|
130
|
-
- - ">="
|
131
|
-
- !ruby/object:Gem::Version
|
132
|
-
version: 1.9.2
|
132
|
+
version: '1.0'
|
133
133
|
- !ruby/object:Gem::Dependency
|
134
134
|
name: highline
|
135
135
|
requirement: !ruby/object:Gem::Requirement
|
136
136
|
requirements:
|
137
137
|
- - "~>"
|
138
138
|
- !ruby/object:Gem::Version
|
139
|
-
version: '
|
140
|
-
- - ">="
|
141
|
-
- !ruby/object:Gem::Version
|
142
|
-
version: 1.6.21
|
139
|
+
version: '2.0'
|
143
140
|
type: :runtime
|
144
141
|
prerelease: false
|
145
142
|
version_requirements: !ruby/object:Gem::Requirement
|
146
143
|
requirements:
|
147
144
|
- - "~>"
|
148
145
|
- !ruby/object:Gem::Version
|
149
|
-
version: '
|
150
|
-
- - ">="
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: 1.6.21
|
146
|
+
version: '2.0'
|
153
147
|
- !ruby/object:Gem::Dependency
|
154
148
|
name: eventmachine
|
155
149
|
requirement: !ruby/object:Gem::Requirement
|
@@ -214,42 +208,42 @@ dependencies:
|
|
214
208
|
name: json_pure
|
215
209
|
requirement: !ruby/object:Gem::Requirement
|
216
210
|
requirements:
|
217
|
-
- - "~>"
|
218
|
-
- !ruby/object:Gem::Version
|
219
|
-
version: '1.8'
|
220
211
|
- - ">="
|
221
212
|
- !ruby/object:Gem::Version
|
222
213
|
version: 1.8.1
|
214
|
+
- - "<"
|
215
|
+
- !ruby/object:Gem::Version
|
216
|
+
version: '3.0'
|
223
217
|
type: :runtime
|
224
218
|
prerelease: false
|
225
219
|
version_requirements: !ruby/object:Gem::Requirement
|
226
220
|
requirements:
|
227
|
-
- - "~>"
|
228
|
-
- !ruby/object:Gem::Version
|
229
|
-
version: '1.8'
|
230
221
|
- - ">="
|
231
222
|
- !ruby/object:Gem::Version
|
232
223
|
version: 1.8.1
|
224
|
+
- - "<"
|
225
|
+
- !ruby/object:Gem::Version
|
226
|
+
version: '3.0'
|
233
227
|
- !ruby/object:Gem::Dependency
|
234
228
|
name: rack
|
235
229
|
requirement: !ruby/object:Gem::Requirement
|
236
230
|
requirements:
|
237
|
-
- - "~>"
|
238
|
-
- !ruby/object:Gem::Version
|
239
|
-
version: '1.5'
|
240
231
|
- - ">="
|
241
232
|
- !ruby/object:Gem::Version
|
242
233
|
version: 1.5.2
|
234
|
+
- - "<"
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '3.0'
|
243
237
|
type: :runtime
|
244
238
|
prerelease: false
|
245
239
|
version_requirements: !ruby/object:Gem::Requirement
|
246
240
|
requirements:
|
247
|
-
- - "~>"
|
248
|
-
- !ruby/object:Gem::Version
|
249
|
-
version: '1.5'
|
250
241
|
- - ">="
|
251
242
|
- !ruby/object:Gem::Version
|
252
243
|
version: 1.5.2
|
244
|
+
- - "<"
|
245
|
+
- !ruby/object:Gem::Version
|
246
|
+
version: '3.0'
|
253
247
|
description: Client command line tools for interacting with the CloudFoundry User
|
254
248
|
Account and Authorization (UAA) server. The UAA is an OAuth2 Authorization Server
|
255
249
|
so it can be used by webapps and command line apps to obtain access tokens to act
|
@@ -270,8 +264,9 @@ executables:
|
|
270
264
|
extensions: []
|
271
265
|
extra_rdoc_files: []
|
272
266
|
files:
|
267
|
+
- ".github/dependabot.yml"
|
268
|
+
- ".github/workflows/ruby.yml"
|
273
269
|
- ".gitignore"
|
274
|
-
- ".travis.yml"
|
275
270
|
- ".yardopts"
|
276
271
|
- Gemfile
|
277
272
|
- LICENSE
|
@@ -311,6 +306,7 @@ files:
|
|
311
306
|
- spec/ssl_integration_spec.rb
|
312
307
|
- spec/token_spec.rb
|
313
308
|
- spec/user_spec.rb
|
309
|
+
- version.txt
|
314
310
|
homepage: https://github.com/cloudfoundry/cf-uaac
|
315
311
|
licenses:
|
316
312
|
- Apache-2.0
|
@@ -330,20 +326,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
330
326
|
- !ruby/object:Gem::Version
|
331
327
|
version: '0'
|
332
328
|
requirements: []
|
333
|
-
|
334
|
-
rubygems_version: 2.5.1
|
329
|
+
rubygems_version: 3.1.6
|
335
330
|
signing_key:
|
336
331
|
specification_version: 4
|
337
332
|
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
|
333
|
+
test_files: []
|