title: Azure Apps EasyAuth claims with .NET Core
body: <p>I want to write some ASP .NET Core middleware to turn the Azure Apps EasyAuth HTTP headers into claims. I've found two ways to do it:</p>
  
  <ol>
  <li><p>Parse the token that EasyAuth provides in the HTTP header. This doesn't seem like a generic solution as I'd have to write code to parse tokens for every identity provider.</p></li>
  <li><p>Make a server-side request to /.auth/me. This returns some JSON which I'd like to convert to claims but I'm not sure if I have to do this manually or there is framework support for it.</p></li>
  </ol>
  
  <p>Is #2 the best approach, and is there any framework support for it?</p>