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
cfoundry-4.1.0 lib/cfoundry/concerns/login_helpers.rb
cfoundry-4.0.4.rc2 lib/cfoundry/concerns/login_helpers.rb
cfoundry-4.0.4.rc1 lib/cfoundry/concerns/login_helpers.rb
cfoundry-4.0.3 lib/cfoundry/concerns/login_helpers.rb
cfoundry-4.0.2.rc5 lib/cfoundry/concerns/login_helpers.rb
cfoundry-4.0.2.rc4 lib/cfoundry/concerns/login_helpers.rb
cfoundry-4.0.2.rc3 lib/cfoundry/concerns/login_helpers.rb
cfoundry-4.0.2.rc2 lib/cfoundry/concerns/login_helpers.rb
cfoundry-4.0.2.rc1 lib/cfoundry/concerns/login_helpers.rb
cfoundry-4.0.1 lib/cfoundry/concerns/login_helpers.rb
cfoundry-4.0.0 lib/cfoundry/concerns/login_helpers.rb
cfoundry-3.0.1 lib/cfoundry/concerns/login_helpers.rb
cfoundry-3.0.0 lib/cfoundry/concerns/login_helpers.rb
cfoundry-2.4.1.rc1 lib/cfoundry/concerns/login_helpers.rb
cfoundry-2.4.0 lib/cfoundry/concerns/login_helpers.rb