Posted by : Rhyf Ahmad Wednesday, May 20, 2015

The authentication and authorization of users are important functions in many Web sites and browser - based applications. Traditionally, when working with Microsoft ’ s Windows Forms applications (thick - client), you depended on Windows Integrated Authentication; when working with browser - based applications (thin - client), you used forms authentication.
Forms authentication enabled you to take requests that were not yet authenticated and redirect them to an HTML form using HTTP client - side redirection. The user provided his login information and submitted the form. After the application authenticated the request, the user received an HTTP cookie, which was then used on any subsequent requests. This kind of authentication was fine in many ways, but it required developers to build every element and even manage the back – end mechanics of the overall system. This task was daunting for many developers and, in most cases, it was rather time - consuming. ASP.NET 4 includes an authentication and authorization management service that takes care of the login, authentication, authorization, and management of users who require access to your Web pages or applications. This outstanding membership and role management service is an easy - to - implement framework that works out of the box using Microsoft SQL Server as the backend data store. This framework also includes an API that allows for programmatic access to the capabilities of both the membership and role management services. In addition, a number of membership and role management – focused server controls make it easy to create Web applications that incorporate everything these services have to offer.

Contents:

ASP.NET 4 Authentication
  1. Setting Up Your Web Site for Membership
  2. Adding Users
  3. Asking for Credentials
  4. Working with Authenticated Users
  5. Showing the Number of Users Online
  6. Dealing with Passwords

ASP.NET 4 Authorization
  1. Using the LoginView Server Control
  2. Setting Up Your Web Site for Role Management
  3. Adding and Retrieving Application Roles
  4. Deleting Roles
  5. Adding Users to Roles
  6. Getting All the Users of a Particular Role
  7. Getting All the Roles of a Particular User
  8. Removing Users from Roles
  9. Checking Users in Roles
  10. Understanding How Roles Are Cached

Using the Web Site Administration Tool
Public Methods of the Membership API               
Public Methods of the Roles API               



Ebook Preview
Get the ebook now (828 kB)

If the link above doesn't work, try the link below


Mirror: Get the ebook now (828 kB)

Leave a Reply

You can leave a comment to request any article(s), software(s), ebook(s) or report the dead link.
Then I will reply as soon as I can :)

Subscribe to Posts | Subscribe to Comments

Welcome to My Blog

Recent Post

Recent Posts Widget
Instagram

- Copyright © Madriva -Robotic Notes- Powered by Blogger - Designed by Johanes Djogan -