<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -41,8 +41,15 @@ module EBay
     end 
 
     def on_simple_outbound 
-      { EbayAuthToken =&gt; @token, 
-        Credentials =&gt; { DevId =&gt; @devId, AppId =&gt; @appId, AuthCert =&gt; @cert } }
+      creds = { Credentials =&gt; { DevId =&gt; @devId, AppId =&gt; @appId, AuthCert =&gt; @cert } }
+      
+      # In a handful of calls mostly related to generating tokens in 
+      # multiple-user applications (ex. GetSessionID), you don't want to pass
+      # in a token (or an empty eBayAuthToken node) 'cuz you're still in the 
+      # process of getting one.
+      creds.merge!({ EbayAuthToken =&gt; @token }) unless @token.nil? || @token.empty?
+      
+      return creds
     end 
   end
 </diff>
      <filename>lib/RequesterCredentialsHandler.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>0b848f6cffa66125700cfe8633455a6ffe01fc66</id>
    </parent>
  </parents>
  <author>
    <name>Woody Peterson</name>
    <email>woody@CCiMacDev.local</email>
  </author>
  <url>http://github.com/up_the_irons/ebay4r/commit/9f976bcbfb0356c5f97d758a1c36ea60c6ef9372</url>
  <id>9f976bcbfb0356c5f97d758a1c36ea60c6ef9372</id>
  <committed-date>2008-10-02T16:51:45-07:00</committed-date>
  <authored-date>2008-10-02T16:51:45-07:00</authored-date>
  <message>Added support for calling the api without a user token, which is necessary to ask for tokens in multiple user applications via the GetSessionID/FetchToken flow</message>
  <tree>75518708d6df20018798cc0bb6d72ed6d67c77e4</tree>
  <committer>
    <name>Woody Peterson</name>
    <email>woody@CCiMacDev.local</email>
  </committer>
</commit>
