General authentication for SPA centers and REST servers is currently a token carrier. See RFC 6750 . General extension on the JWT carrier token (JSON Web tokens). The linked page contains links to many JWT.Net libraries, such as System.IdentityModel.Tokens.Jwt .
Your application should display the login form, then perform a REST POST on the authentication endpoint in order to receive the JWT token. Then the token can contain everything you want, including identifiers and claims. The next step is to make sure that your spa injects a token into each individual request so that it is authenticated by the back end. This, of course, is entirely dependent on how your application interacts with the back end, as the βresponsiveβ does not affect this part. For example, for Redux, see this .
source share