Sha256: 1bf4d011471c066dc51249f038a04ce572e5a0d3ebf272b23e0e4a756ce2848a

Contents?: true

Size: 548 Bytes

Versions: 36

Compression:

Stored size: 548 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_without_retry(
            :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 & 2 rubygems

Version Path
fog-maestrodev-1.18.0.20131126122111 lib/fog/rackspace/requests/identity/create_token.rb
fog-maestrodev-1.18.0.20131125111730 lib/fog/rackspace/requests/identity/create_token.rb
fog-maestrodev-1.18.0.20131125083406 lib/fog/rackspace/requests/identity/create_token.rb
fog-maestrodev-1.18.0.20131123105121 lib/fog/rackspace/requests/identity/create_token.rb
fog-maestrodev-1.18.0.20131122203507 lib/fog/rackspace/requests/identity/create_token.rb
fog-maestrodev-1.18.0.20131121075022 lib/fog/rackspace/requests/identity/create_token.rb
fog-maestrodev-1.18.0.20131118164830 lib/fog/rackspace/requests/identity/create_token.rb
fog-maestrodev-1.18.0.20131115184302 lib/fog/rackspace/requests/identity/create_token.rb
fog-maestrodev-1.18.0.20131114200144 lib/fog/rackspace/requests/identity/create_token.rb
fog-maestrodev-1.18.0.20131112185232 lib/fog/rackspace/requests/identity/create_token.rb
fog-maestrodev-1.18.0.20131111203459 lib/fog/rackspace/requests/identity/create_token.rb
fog-1.18.0 lib/fog/rackspace/requests/identity/create_token.rb
fog-1.17.0 lib/fog/rackspace/requests/identity/create_token.rb
fog-1.16.0 lib/fog/rackspace/requests/identity/create_token.rb
fog-maestrodev-1.15.0.20130927082724 lib/fog/rackspace/requests/identity/create_token.rb
fog-maestrodev-1.15.0.20130829165835 lib/fog/rackspace/requests/identity/create_token.rb