title: Asp.Net Core 2 Validating bearer token
body: <p>I am struggling to find an exact way of validating my <code>OAuth</code> <code>bearer</code> token which is passed when a request is sent to the API am working on which is a <code>Asp.Net core</code> project. </p>
  
  <p>The purpose here is to extract the bearer token and <code>Validate</code> it and if all is fine then continue with the request. </p>
  
  <p>So far my findings have come across the following</p>
  
  <ul>
  <li><p>JWT bear token authorization which mostly talks about <code>access_token</code></p></li>
  <li><p>Asp.Net core security middleware</p></li>
  <li><p>Custom Authorize attribute which handle this.</p></li>
  </ul>
  
  <p>I am not really sure how I can achieve my validation? Should I extract the bearer token and then create a custom validating method?</p>
  
  <p>Ideally would like the <code>[Authorize]</code> attribute to handle this.</p>
  
  <p>Suggestions please?</p>