title: Shared authentication based on Identity Server 4 between MVC and SPA applications
body: <p>I have two solutions under the same domain. The first one is MVC application with authentication based on IS4 OpenID Connect provider, I'm using code flow. The second one is Angular SPA application with backend on ASP .NET Core ( server just serves static files), authentication here also should be covered by IS4. My question is how can I share authentication state of MVC app with SPA app and vice-versa. Also I can add that it's not necessary to have two separated clients. Authentication can be shared under one client for both applications. Thanks.</p>
  <p>Example:
  mysite.com/page1 - MVC-client,
  mysite.com/page2 - SPA-client</p>