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
gapinc-fog-1.12.1.2.1 lib/fog/rackspace/requests/identity/create_token.rb
fog-1.15.0 lib/fog/rackspace/requests/identity/create_token.rb
gapinc-fog-1.14.0 lib/fog/rackspace/requests/identity/create_token.rb
fog-maestrodev-1.14.0.20130806165225 lib/fog/rackspace/requests/identity/create_token.rb
fog-1.14.0 lib/fog/rackspace/requests/identity/create_token.rb
fog-1.13.0 lib/fog/rackspace/requests/identity/create_token.rb
gapinc-fog-1.12.1.2 lib/fog/rackspace/requests/identity/create_token.rb
gapinc-fog-1.12.1.1 lib/fog/rackspace/requests/identity/create_token.rb
gapinc-fog-1.12.1a lib/fog/rackspace/requests/identity/create_token.rb
gapinc-fog-1.12.1 lib/fog/rackspace/requests/identity/create_token.rb
fog-1.12.1 lib/fog/rackspace/requests/identity/create_token.rb
fog-1.12.0 lib/fog/rackspace/requests/identity/create_token.rb
hpfog-0.0.20 lib/fog/rackspace/requests/identity/create_token.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/lib/fog/rackspace/requests/identity/create_token.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/lib/fog/rackspace/requests/identity/create_token.rb
fog-nirvanix-1.8.2 lib/fog/rackspace/requests/identity/create_token.rb
fog-1.11.1 lib/fog/rackspace/requests/identity/create_token.rb
fog-1.11.0 lib/fog/rackspace/requests/identity/create_token.rb
fog-nirvanix-1.8.1 lib/fog/rackspace/requests/identity/create_token.rb
fog-1.10.1 lib/fog/rackspace/requests/identity/create_token.rb