title: Dynamics 365 (CRM) Online & connecting with XrmToolBox
body: <p>I am using...</p>
  
  <ul>
  <li>XrmToolBox version 1.2017.7.18</li>
  <li>Dynamics 365 Online (login is with user@org.onmicrosoft.com)</li>
  </ul>
  
  <p>I try to create a new connection.</p>
  
  <p>I enter <a href="http://orgname.crm.dynamics.com" rel="nofollow noreferrer">http://orgname.crm.dynamics.com</a> for the Organization url.</p>
  
  <p>then my user / pass</p>
  
  <p>I get this error.</p>
  
  <p><a href="https://i.stack.imgur.com/dG1uN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dG1uN.png" alt="enter image description here"></a></p>
  
  <p>Then, I try...</p>
  
  <p>using a connection string.</p>
  
  <p>I click the link <em>"Let me try to connect using a connection string"</em></p>
  
  <p>I have tried many connection strings but the one that I think to be correct is listed below.</p>
  
  <p>org is an example name for my Org Name</p>
  
  <pre><code>&lt;connectionStrings&gt;
  &lt;add name="Crm" connectionString="Url=https://org.crm.dynamics.com; Username=user@org.onmicrosoft.com; Password=mypass; AuthType=Office365" /&gt;
  &lt;/connectionStrings&gt;
  </code></pre>
  
  <p>When I try to connect I get the following error.</p>
  
  <p><a href="https://i.stack.imgur.com/pmVKG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pmVKG.png" alt="enter image description here"></a></p>
  
  <p>I am not sure why I am getting these errors.</p>