Sha256: 6b143e525f23ac2a04668043454b4302d01fd64278fd7971e7b1003a8be1cfac

Contents?: true

Size: 534 Bytes

Versions: 36

Compression:

Stored size: 534 Bytes

Contents

module Fog
  module Rackspace
    class Identity
      class Real
        def create_token(username, api_key)
          data = {
            'auth' => {
              'RAX-KSKEY:apiKeyCredentials' => {
                'username' => username,
                'apiKey' => api_key
              }
            }
          }

          request(
            :body => Fog::JSON.encode(data),
            :expects => [200, 203],
            :method => 'POST',
            :path => 'tokens'
          )
        end
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 11 rubygems

Version Path
fog-parser-fix-1.6.1 lib/fog/rackspace/requests/identity/create_token.rb
fog-test-again-1.6.0 lib/fog/rackspace/requests/identity/create_token.rb
fog-test-me-1.10.0 lib/fog/rackspace/requests/identity/create_token.rb
fog-parser-fix-1.6.0 lib/fog/rackspace/requests/identity/create_token.rb
fog-1.10.0 lib/fog/rackspace/requests/identity/create_token.rb
fog-1.9.0 lib/fog/rackspace/requests/identity/create_token.rb
fog-maestrodev-1.8.0.20130114204828 lib/fog/rackspace/requests/identity/create_token.rb
fog-maestrodev-1.8.0.20130111070250 lib/fog/rackspace/requests/identity/create_token.rb
fog-maestrodev-1.8.0.20130109172219 lib/fog/rackspace/requests/identity/create_token.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/rackspace/requests/identity/create_token.rb
fog-sgonyea-1.8.1 lib/fog/rackspace/requests/identity/create_token.rb
fog-1.8.0 lib/fog/rackspace/requests/identity/create_token.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/rackspace/requests/identity/create_token.rb
fog-1.7.0 lib/fog/rackspace/requests/identity/create_token.rb
fog-1.6.0 lib/fog/rackspace/requests/identity/create_token.rb
fog-1.5.0 lib/fog/rackspace/requests/identity/create_token.rb