Skip to content

CustomAuthentication

AndreiGanichev edited this page Jan 21, 2018 · 11 revisions

CustomAuthentication diagram

On every request in AuthHttpModule handler OnAuthenticateRequest is invoked, which create IAuthentication instance and initialize HttpContext property there.

Login:

  1. Fill email and password fields
  2. 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.

Clone this wiki locally