76 references to FormsAuthentication
System.Web (58)
Security\FormsAuthentication.cs (4)
438SetAuthCookie(userName, createPersistentCookie, FormsAuthentication.FormsCookiePath); 475return GetAuthCookie(userName, createPersistentCookie, FormsAuthentication.FormsCookiePath); 573RedirectFromLoginPage(userName, createPersistentCookie, FormsAuthentication.FormsCookiePath); 737string loginUrl = FormsAuthentication.LoginUrl;
Security\FormsAuthenticationModule.cs (40)
78FormsAuthentication.Initialize(); 114FormsAuthenticationTicket ticket = ExtractTicketFromCookie(e.Context, FormsAuthentication.FormsCookieName, out cookielessTicket); 124if (FormsAuthentication.SlidingExpiration) 125ticket2 = FormsAuthentication.RenewTicketIfOld(ticket); 136cookie = e.Context.Request.Cookies[FormsAuthentication.FormsCookieName]; 152String strEnc = FormsAuthentication.Encrypt(ticket2, !cookielessTicket); 159cookie = e.Context.Request.Cookies[FormsAuthentication.FormsCookieName]; 162cookie = new HttpCookie(FormsAuthentication.FormsCookieName, strEnc); 169cookie.Secure = FormsAuthentication.RequireSSL; 171if (FormsAuthentication.CookieDomain != null) 172cookie.Domain = FormsAuthentication.CookieDomain; 173cookie.SameSite = FormsAuthentication.CookieSameSite; 212if (AuthenticationConfig.AccessingLoginPage(context, FormsAuthentication.LoginUrl)) { 215cookielessHelper.RedirectWithDetectionIfRequired(null, FormsAuthentication.CookieMode); 261if (strUrl.IndexOf("?" + FormsAuthentication.ReturnUrlVar + "=", StringComparison.Ordinal) != -1 262|| strUrl.IndexOf("&" + FormsAuthentication.ReturnUrlVar + "=", StringComparison.Ordinal) != -1) { 269if (!String.IsNullOrEmpty(FormsAuthentication.LoginUrl)) 270loginUrl = AuthenticationConfig.GetCompleteLoginUrl(context, FormsAuthentication.LoginUrl); 302loginUrl = FormsAuthentication.RemoveQueryStringVariableFromUrl(loginUrl, FormsAuthentication.ReturnUrlVar); 303strRedirect = loginUrl + "&" + FormsAuthentication.ReturnUrlVar + "=" + HttpUtility.UrlEncode(strUrl, context.Request.ContentEncoding); 306strRedirect = loginUrl + "?" + FormsAuthentication.ReturnUrlVar + "=" + HttpUtility.UrlEncode(strUrl, context.Request.ContentEncoding); 317cookielessHelper.RedirectWithDetectionIfRequired(strRedirect, FormsAuthentication.CookieMode); 339cookielessTicket = CookielessHelperClass.UseCookieless(context, false, FormsAuthentication.CookieMode); 356ticket = FormsAuthentication.Decrypt(encValue); 371if (cookielessTicket || !FormsAuthentication.RequireSSL || context.Request.IsSecureConnection) // Make sure it is NOT a secure cookie over an in-secure connection 390if (FormsAuthentication.EnableCrossAppRedirects) { 393if (!cookielessTicket && FormsAuthentication.CookieMode == HttpCookieMode.AutoDetect) 394cookielessTicket = CookielessHelperClass.UseCookieless(context, true, FormsAuthentication.CookieMode); // find out for sure 397ticket = FormsAuthentication.Decrypt(encValue); 412if (!cookielessTicket && FormsAuthentication.CookieMode == HttpCookieMode.AutoDetect) 413cookielessTicket = CookielessHelperClass.UseCookieless(context, true, FormsAuthentication.CookieMode); // find out for sure 416ticket = FormsAuthentication.Decrypt(encValue); 436if (FormsAuthentication.RequireSSL && !context.Request.IsSecureConnection) // Bad scenario: valid ticket over non-SSL 447encValue = FormsAuthentication.Encrypt(ticket); 450string strUrl = FormsAuthentication.RemoveQueryStringVariableFromUrl(context.Request.RawUrl, name); 458cookie.Secure = FormsAuthentication.RequireSSL; 459if (FormsAuthentication.CookieDomain != null) 460cookie.Domain = FormsAuthentication.CookieDomain; 461cookie.SameSite = FormsAuthentication.CookieSameSite;
Security\FormsAuthenticationTicket.cs (2)
187_CookiePath = FormsAuthentication.FormsCookiePath; 225_CookiePath = FormsAuthentication.FormsCookiePath;
UI\HtmlForm.cs (1)
303bool cookieless = CookielessHelperClass.UseCookieless(Context, false, FormsAuthentication.CookieMode);
UI\WebControls\ChangePassword.cs (1)
1719System.Web.Security.FormsAuthentication.SetAuthCookie(UserNameInternal, false);
UI\WebControls\CreateUserWizard.cs (1)
2182System.Web.Security.FormsAuthentication.SetAuthCookie(UserNameInternal, false);
UI\WebControls\login.cs (5)
1093System.Web.Security.FormsAuthentication.SetAuthCookie(UserNameInternal, RememberMeSet); 1103System.Web.Security.FormsAuthentication.RedirectToLoginPage(_failureParameterName + "=1"); 1172string returnUrl = FormsAuthentication.GetReturnUrl(false); 1181return System.Web.Security.FormsAuthentication.DefaultUrl; 1316return AuthenticationConfig.AccessingLoginPage(Context, System.Web.Security.FormsAuthentication.LoginUrl);
UI\WebControls\loginstatus.cs (4)
187return FormsAuthentication.GetLoginPage(null, true); 288FormsAuthentication.SignOut(); 301Page.Response.Redirect(FormsAuthentication.LoginUrl, false); 322url = FormsAuthentication.LoginUrl;
System.Web.Extensions (4)
ApplicationServices\AuthenticationService.cs (2)
135FormsAuthentication.SignOut(); 186FormsAuthentication.SetAuthCookie(username, isPersistent);
Security\AuthenticationService.cs (2)
22FormsAuthentication.SetAuthCookie(userName, createPersistentCookie); 32FormsAuthentication.SignOut();
System.Web.Mobile (14)
Mobile\CookielessData.cs (4)
29String name = FormsAuthentication.FormsCookieName; 37FormsAuthenticationTicket ticket = FormsAuthentication.Decrypt(inboundValue); 38FormsAuthenticationTicket ticket2 = FormsAuthentication.RenewTicketIfOld(ticket); 39this[name] = FormsAuthentication.Encrypt(ticket2);
Mobile\MobileFormsAuthentication.cs (4)
36FormsAuthentication.RedirectFromLoginPage(userName, createPersistentCookie, FormsAuthentication.FormsCookiePath); 42FormsAuthentication.RedirectFromLoginPage(userName, createPersistentCookie, strCookiePath); 99FormsAuthentication.SignOut();
UI\MobileControls\Adapters\WmlControlAdapter.cs (1)
122String formsAuthCookieName = FormsAuthentication.FormsCookieName;
UI\MobileControls\Adapters\WmlFormAdapter.cs (1)
49String formsAuthCookieName = FormsAuthentication.FormsCookieName;
UI\MobileControls\Adapters\WmlMobileTextWriter.cs (1)
867String formsAuthCookieName = FormsAuthentication.FormsCookieName;
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicControlAdapter.cs (1)
744queryString = RemoveQueryStringPair(FormsAuthentication.FormsCookieName, queryString);
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicFormAdapter.cs (1)
39String formsAuthCookieName = FormsAuthentication.FormsCookieName;
UI\MobileControls\MobilePage.cs (1)
645fullQueryString = RemoveQueryStringElement(fullQueryString, FormsAuthentication.FormsCookieName);