title: Authenticating Office 365 SharePoint Online OOTB services
body: <p>I want to consume SharePoint data into a non .Net platform. I already use the SharePoint OOTB services like Lists.asmx, Webs.asmx and search.asmx for this purpose.
  I have successfully added support for forms based authentication using Authentication.asmx.
  Now, I want to provide support for Office 365 SharePoint online. For that purpose I have a demo SharePoint Online site that I am working on.
  Problem, I am facing is when I use Mode method of Authentication.asmx I get ‘Forms’ in response:</p>
  
  <pre><code>&lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
  &lt;soap:Body&gt;
      &lt;ModeResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/"&gt;
          &lt;ModeResult&gt;Forms&lt;/ModeResult&gt;
      &lt;/ModeResponse&gt;
  &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>However when I use Login.asmx and pass correct username and password, I get ‘PasswordNotMatch’ error, the same credentials are working fine in browser.</p>
  
  <pre><code>&lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
  &lt;soap:Body&gt;
      &lt;LoginResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/"&gt;
          &lt;LoginResult&gt;
           &lt;ErrorCode&gt;PasswordNotMatch&lt;/ErrorCode&gt;
              &lt;TimeoutSeconds&gt;0&lt;/TimeoutSeconds&gt;
          &lt;/LoginResult&gt;
      &lt;/LoginResponse&gt;
  &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>Note:- This works perfect for a FBA non Office 365 SharePoint site.</p>
  
  <p>Could somebody please help me in implementing the support for Office 365 SharePoint Online OOTB services?</p>