def authenticate(user_name, password)
      options = {}
      options[:Username] = user_name
      options[:Password] = password

      response = self.class.post('/', :body => self.class.build_XML_request('Auth.Authenticate', self, options))

      self.class.response_valid? response
      if response['YourMembership_Response']['Auth.Authenticate']
        get_authenticated_user
      else
        false
      end
    end
def authenticate(user_name, password)
      options = {}
      options[:Username] = user_name
      options[:Password] = password

      response = self.class.post('/', :body => self.class.build_XML_request('Auth.Authenticate', self, options))

      self.class.response_valid? response
      if response['YourMembership_Response']['Auth.Authenticate']
        get_authenticated_user
      else
        false
      end
    end
Authenticates a member's username and password and binds them to the current API session.

 @see https://api.yourmembership.com/reference/2_00/Auth_Authenticate.htm

 @param user_name [String] The username of the member that is being authenticated.
 @param password [String] The clear text password of the member that is being authenticated.

 @return [Hash] Returns the member's ID and WebsiteID. The returned WebsiteID represents the numeric identifier
  used by the YourMembership.com application for navigation purposes. It may be used to provide direct navigation to
  a member's profile, photo gallery, personal blog, etc.