Can I use IdentityServer4 spa JS UI instead of asp .net core mvc? Can I use IdentityServer4 spa JS UI instead of asp .net core mvc? angular angular

Can I use IdentityServer4 spa JS UI instead of asp .net core mvc?


The idea of SPA is to avoid redirects affecting the server. And the idea of Open Id Connect is to redirect every app to authorize endpoint (i.e. sign in page) and back. So the answer should be:

The Idp has to have at least one server-driven page

And all the rest are mostly utility pages and might be moved to SPA, separate apps etc. For instance in the suite, I'm currently busy with, we have most UI in SPAs, including user management and so on, but IdSrv is still MVC carrying login/logged-out and a couple error views only.


Short Answer is no, IdentityServer4 is an OpenID Connect and OAuth 2.0 framework for ASP.NET Core per its docs.

But you can have SPA UI as client, here is link for SPA samples (vanilla JS) https://github.com/IdentityServer/IdentityServer4/tree/master/samples/Clients/src/JsOidc