Sha256: 37376a2353e4a952605b8e9a28fa12d0437b574937d21cc9201e37c958d1ec3a

Contents?: true

Size: 270 Bytes

Versions: 55

Compression:

Stored size: 270 Bytes

Contents

require "base64"

module CFoundry
  module LoginHelpers
    def login_prompts
      @base.uaa.prompts
    end

    def login(credentials)
      token_info = @base.uaa.authorize(credentials)
      @base.token = AuthToken.from_uaa_token_info(token_info)
    end
  end
end

Version data entries

55 entries across 55 versions & 3 rubygems

Version Path
new_cfoundry-4.9.4 lib/cfoundry/concerns/login_helpers.rb
new_cfoundry-4.9.3 lib/cfoundry/concerns/login_helpers.rb
ncfoundry-4.9.4 lib/cfoundry/concerns/login_helpers.rb
ncfoundry-4.9.3 lib/cfoundry/concerns/login_helpers.rb
ncfoundry-4.9.2 lib/cfoundry/concerns/login_helpers.rb
new_cfoundry-4.9.2 lib/cfoundry/concerns/login_helpers.rb
new_cfoundry-4.9.1 lib/cfoundry/concerns/login_helpers.rb
new_cfoundry-4.9.0 lib/cfoundry/concerns/login_helpers.rb
new_cfoundry-4.8.3 lib/cfoundry/concerns/login_helpers.rb
new_cfoundry-4.8.2 lib/cfoundry/concerns/login_helpers.rb
cfoundry-4.7.2.rc1 lib/cfoundry/concerns/login_helpers.rb
cfoundry-4.7.1 lib/cfoundry/concerns/login_helpers.rb
cfoundry-4.7.1.rc1 lib/cfoundry/concerns/login_helpers.rb
cfoundry-4.7.0 lib/cfoundry/concerns/login_helpers.rb
cfoundry-4.6.3.rc3 lib/cfoundry/concerns/login_helpers.rb
cfoundry-4.6.3.rc2 lib/cfoundry/concerns/login_helpers.rb
cfoundry-4.6.3.rc1 lib/cfoundry/concerns/login_helpers.rb
cfoundry-4.6.2 lib/cfoundry/concerns/login_helpers.rb
cfoundry-4.6.1 lib/cfoundry/concerns/login_helpers.rb
cfoundry-4.6.0 lib/cfoundry/concerns/login_helpers.rb