title: Read sharepoint list anonymous using graph api
body: <p>We need to access a sharepoint list (readonly) from a public web site (wordpress) using ajax. Whats the best approach?</p>
  
  <p>It seems like the graph api would give us all the data we need, but that would require a user. In case of using it from the public web site, we don't have a user.</p>
  
  <p>From my understanding there are two options:</p>
  
  <ol>
  <li><p>Create a API application (WebApi or similar) and access the graph based on some service account.  </p></li>
  <li><p>Configure anonyoms access directly in microsoft graph. Not sure if this is possible?</p></li>
  </ol>
  
  <p>In case of option 2, I guess we would need to provide some token when accessing the graph api. How would this token be created?</p>
  
  <p>Maybe there are other options to reading this list from the client?</p>
  
  <p>Thanks for any help</p>
  
  <p>Larsi</p>