title: How do I access my current user using IdentityServer4?
body: <p>I'm trying to build a SPA web app + IdentityServer4 + ASPNET Core + ASPNET Core Identity. I've followed the quickstarts on the Identityserver documentation and its really great. I'm more interested the quickstart <a href="http://docs.identityserver.io/en/dev/quickstarts/7_javascript_client.html" rel="nofollow">Identity Server Quickstart with JS Client</a></p>
  
  <p>I've followed it and so far so good. Now I've added some fields and related tables to my User, like so:</p>
  
  <p><a href="https://i.stack.imgur.com/7ZIdm.png" rel="nofollow"><img src="https://i.stack.imgur.com/7ZIdm.png" alt="app_user"></a></p>
  
  <p>This is the Solution Explorer</p>
  
  <p><a href="https://i.stack.imgur.com/FCw8a.png" rel="nofollow"><img src="https://i.stack.imgur.com/FCw8a.png" alt="solution_explorer"></a></p>
  
  <p>I would like to create a page that displays my user and its related tables/fields. (Basically, my question is, how do I access my current user and expose an API for my JS client to consume)</p>
  
  <p>How do I achieve that? (All described points below I just read it online and I'm not sure how to implement it)</p>
  
  <ul>
  <li>Should I store my user in a session? Then access it from there?</li>
  <li>Should I use the connect/userinfo endpoint?</li>
  </ul>
  
  <p>Please advise.</p>