-
Book Overview & Buying
-
Table Of Contents
ASP.NET Web API Security Essentials
By :
The user credentials will be submitted to the server using HTML forms in Forms authentication. This can be used in ASP.NET Web API only if it is consumed from web application. Forms authentication is built under ASP.NET and uses the ASP.NET membership provider to manage user accounts. Forms authentication requires browser client to pass the user credentials to the server. It sends the user credentials in the request and uses HTTP cookies for authentication.
Let's list the step-by-step process of Forms authentication, as follows:
Browser tries to access a restricted action that requires an authenticated request.
If the browser sends an unauthenticated request, then the server will respond with HTTP status 302 Found and triggers the URL redirection to login page.
To send the authenticated request, a user enters the username and password, and submits the form.
If the credentials are valid, the server responds with HTTP 302 status code that initiates the browser to...
Change the font size
Change margin width
Change background colour