    # File lib/fog/openstack.rb, line 49
        def self.authenticate_v1(options, connection_options = {})
          uri = options[:openstack_auth_uri]
          connection = Fog::Connection.new(uri.to_s, false, connection_options)
          @openstack_api_key  = options[:openstack_api_key]
          @openstack_username = options[:openstack_username]

          response = connection.request({
            :expects  => [200, 204],
            :headers  => {
              'X-Auth-Key'  => @openstack_api_key,
              'X-Auth-User' => @openstack_username
            },
            :host     => uri.host,
            :method   => 'GET',
            :path     =>  (uri.path and not uri.path.empty?) ? uri.path : 'v1.0'
          })

          return {
            :token => response.headers['X-Auth-Token'],
            :server_management_url => response.headers['X-Server-Management-Url'],
            :identity_public_endpoint => response.headers['X-Keystone']
          }
        end