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 Identity Server Quickstart with JS Client
I've followed it and so far so good. Now I've added some fields and related tables to my User, like so:
This is the Solution Explorer
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)
How do I achieve that? (All described points below I just read it online and I'm not sure how to implement it)
- Should I store my user in a session? Then access it from there?
- Should I use the connect/userinfo endpoint?
Please advise.