-
Notifications
You must be signed in to change notification settings - Fork 0
CustomAuthentication
AndreiGanichev edited this page Jan 21, 2018
·
11 revisions
On every request in AuthHttpModule handler OnAuthenticateRequest is invoked, which create IAuthentication instance and initialize HttpContext property there.
Login:
- Fill email and password fields
- AuthenticationController.Index check if there is user with the credentials. If there is, than IAuthentication packes credentials in FormsAuthenticationTicket, encriptes and set result in cookie. 3.IAuthentication.CurrentUser now isn't empty and partial view UserLogin changed.
Logout: delete from response cookie with credentials.