Class: Miasma::Contrib::RackspaceApiCore::Authenticate::Version2

Inherits:
OpenStackApiCore::Authenticate::Version2 show all
Defined in:
lib/miasma/contrib/rackspace.rb

Overview

Authentication implementation compatible for v2

Instance Attribute Summary

Attributes inherited from OpenStackApiCore::Authenticate

#credentials, #token

Instance Method Summary collapse

Methods inherited from OpenStackApiCore::Authenticate::Version2

#identify_and_load

Methods inherited from OpenStackApiCore::Authenticate

#api_token, #identity_and_load, #initialize, #service_catalog, #user

Constructor Details

This class inherits a constructor from Miasma::Contrib::OpenStackApiCore::Authenticate

Instance Method Details

#authentication_requestSmash

Returns authentication request body.

Returns:

  • (Smash)

    authentication request body



16
17
18
19
20
21
22
23
# File 'lib/miasma/contrib/rackspace.rb', line 16

def authentication_request
  Smash.new(
    'RAX-KSKEY:apiKeyCredentials' => Smash.new(
      'username' => credentials[:open_stack_username],
      'apiKey' => credentials[:open_stack_token]
    )
  )
end