title: restful api authentication confusion with oauth2
body: <p>I did some investigation about restful api authentication. Most people pointed to Oauth2 for restful api authentication.  I looked into some of resouces, especially this link <a href="https://developers.google.com/accounts/docs/OAuth2">https://developers.google.com/accounts/docs/OAuth2</a>.</p>
  
  <p>It seems to me Oauth2 is for a third party app to access users' data in google/facebook(or other data provider).</p>
  
  <p>Our problem is that we own the data, we don't need to access our client's  any third party data and our clients don't have to any third party data. We want to protect our api with some sort of authentication.    </p>
  
  <p>For our case what is the convenient technologies for our restful api authentication ? We will expose our api like this</p>
  
  <pre><code> https://ourdomain.com/api/&lt;endpoint&gt;
  </code></pre>
  
  <p>Our clients can access a website first to register <a href="https://ourdomain.com">https://ourdomain.com</a> and they should be able to get clientId and clientKey from our website for accessing apis. Our clients should be able to consume through some sort of authentication  </p>