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