Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use cfoundry for authentication; adds UAA support

Change-Id: I1bc71e0aedd69c9fc1f98e92d493f1fc64073626
  • Loading branch information...
commit 639193c92e75e6eeadde05272b9b182af70a33e1 1 parent c4d8393
@vito vito authored
Showing with 5 additions and 1 deletion.
  1. +4 −1 lib/cli/commands/user.rb
  2. +1 −0  vmc.gemspec
View
5 lib/cli/commands/user.rb
@@ -1,3 +1,5 @@
+require "cfoundry"
+
module VMC::Cli::Command
class User < Base
@@ -56,7 +58,8 @@ def change_password(password=nil)
private
def login_and_save_token(email, password)
- token = client.login(email, password)
+ cfoundry = CFoundry::Client.new(client.target)
+ token = cfoundry.login(:username => email, :password => password)
VMC::Cli::Config.store_token(token, @options[:token_file])
end
View
1  vmc.gemspec
@@ -23,6 +23,7 @@ spec = Gem::Specification.new do |s|
s.add_dependency "addressable", "~> 2.2.6"
s.add_dependency "uuidtools", "~> 2.1.0"
s.add_dependency "rb-readline", "~> 0.4.2"
+ s.add_dependency "cfoundry", "~> 0.3.27"
s.add_development_dependency "rake"
s.add_development_dependency "rspec", "~> 1.3.0"
Please sign in to comment.
Something went wrong with that request. Please try again.