title: Using IdentityServer with ASP.NET + embedded SPA JS framework
body: <p>I'm sorry if the title is not very clear.</p>
  <p>What I have: ASP.NET application with &quot;embedded&quot; Vue.js 2 from this repo: <a href="https://github.com/MarkPieszak/aspnetcore-Vue-starter" rel="nofollow noreferrer">https://github.com/MarkPieszak/aspnetcore-Vue-starter</a></p>
  <p>I already studied Identity Server 4 manuals so I tried hybrid flow with pure ASP.NET and implicit flow using oidc-client with pure JS. Both flows work for me.</p>
  <p>But what I want is using JS page that hosted in ASP.NET to get access token and refresh token and store them in ASP.NET. ASP.NET in this case acts as a backend (but not the Resource API!).</p>
  <p>Maybe (optional) there is a way to create custom login form. User fill this form, JS sends login and password to ASP.NET backend and than in turn transmits them to Identity Server and retrieves tokens.</p>
  <p>I wonder if it is possible to use such a scenario at all and whether it is viable and sufficiently safe.</p>
  <p>Any assumptions are welcome!</p>
  <p>EDIT:
  What I really want is to use Vue just for display my data while using ASP.NET as a backend-client which gathers information from resource API.</p>