asp.net - In a SPA, how does my browser get the feedback that it is Authenticated? -
I have ASP.NET MVC single page application on the page there is an entry area in which submit. When submissions are clicked, the information is sent to the webappi controller and authenticates it on server (ASP.NET Identity 2 and WebAPI 2). The server then confirms that the status HTTP response is sent to the browser to confirm whether the user was authenticated (signed). Now the web page changes and displays a new visible area on which the server has the ability to send PUT's POST etc. to the web API. However, how can the server tell that the user is now certified? The web server sends the encrypted authentication cookie back to the web page and sends all the requests to that page back to that cookie. From the server So it looks: // Initial page request client - & gt; Server: Serve me the page server - & gt; Customers: No cookies, you are anonymous, this is your page // ajax authentication request client - & gt; Server: Here is my credential server - ...