Security
Security
Security
NET Security
By
SRIRAM. B
ASP.NET Security Overview
Authentication & Authentication & Authorization
Authorization Login Controls
Forms
Login.aspx
if ((UserEmail.Value == "[email protected]") && (UserPass.Value ==
"password")) {
FormsAuthentication.RedirectFromLoginPage(UserEmail.Value,
PersistCookie.Checked); }
</authentication>
FormsAuthentication.HashPasswordForStoringInConfigFile((TextBox1.Text,”S
HA1”);
Passport
Authentication
Passport Authentication
Passport uses encrypted cookie mechanism to indicate
authenticated users.
The principal object also includes an Identity Property that enables you to get the
information about the current users identity. It supports the following properties:-
It can be at any
level(Machine,Site,application,subdirectory,or page),
attribute impersonate with "true" as value specifies that
client impersonation is used.
Demo
Session Ends
Exercise
Relax