Forms Authentication in ASP.NET - PowerPoint PPT Presentation

About This Presentation
Title:

Forms Authentication in ASP.NET

Description:

ASP.NET developers commonly use forms authentication to fix their web pages. Like ASP.NET web forms and ASP.NET MVC applications, Web API also can take advantage of forms authentication to execute authentication and security in asp.net. – PowerPoint PPT presentation

Number of Views:219

less

Transcript and Presenter's Notes

Title: Forms Authentication in ASP.NET


1
Forms Authentication in ASP.NET
.Net Classes
2
  • ASP.NET developers commonly use forms
    authentication to fix their web pages. Like
    ASP.NET web forms and ASP.NET MVC applications,
    Web API also can take advantage of forms
    authentication to execute authentication and
    security in asp.net.
  • In this post, we would explain how forms
    authentication is used in Web API being consumed
    in an MVC application.
  • The overall process of executing forms
    authentication remains the same in case of Web
    API too. However, there are a few points that you
    need to keep in mind.

.Net Classes
3
  • Web API doesnt log-in or log-out a user by
    itself. This matter is taken care by the
    underlying web application whether it is web
    forms application or MVC application.
  • Generally, a user logs into the application using
    some web form or a view created to serve the
    purpose and then proceeds to call a Web API.
  • The Web API action methods can find the
    authentication status of a user, his membership
    information and also his role information.

.Net Classes
4
Configure SQL Server
  • Membership features of ASP.NET require certain
    database tables and stored procedures. To
    configure SQL server database for enabling
    application services (membership, roles,
    profiles) you use aspnet_regsql.exe command line
    tool. You can also let ASP.NET configure and
    create a new LocalDb database for you if you
    dont want to use an existing database.

.Net Classes
5
  • The ltauthenticationgt section sets the mode of
    authentication and in this case, it is set to
    Forms. The ltformsgt tag configures the loginUrl
    and defaultUrl attributes to /home/login and
    /home/index respectively. The loginUrl feature
    indicates URL of the login page whereas
    defaultUrl feature indicates URL of the default
    page.
  • If you havent configured a database to reserve
    membership information and dont want to use an
    existing database, select PROJECT gt ASP.NET
    Configuration to unlock Website Administration
    Tool.

.Net Classes
6
  • If you are considering to take ASP.Net training
    then our CRB Tech ASP.Net Training center could
    be very helpful in fulfilling your aspirations.
  • Stay connected to our page of CRB Tech reviews
    for more technical optimization and other
    resources.

.Net Classes
7
Thank You.....
.Net Classes
Write a Comment
User Comments (0)
About PowerShow.com