diff options
author | Martin Thwaites <github@my2cents.co.uk> | 2014-10-26 17:29:45 +0300 |
---|---|---|
committer | Martin Thwaites <github@my2cents.co.uk> | 2014-10-26 17:55:41 +0300 |
commit | e55e70f8c720c7b56dc7380c4f80e0c74c042a70 (patch) | |
tree | 218b62fade75aa8ef30779bad0114fae06da72cf /mcs/class/System.Web/System.Web.Security | |
parent | 5a234d5d16dd6073027a0070f64982eb21ec9dcb (diff) |
Implement the SuppressFormsAuthenticationRedirect properties
Diffstat (limited to 'mcs/class/System.Web/System.Web.Security')
-rw-r--r-- | mcs/class/System.Web/System.Web.Security/FormsAuthenticationModule.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mcs/class/System.Web/System.Web.Security/FormsAuthenticationModule.cs b/mcs/class/System.Web/System.Web.Security/FormsAuthenticationModule.cs index cab57fea2f2..54f07294e28 100644 --- a/mcs/class/System.Web/System.Web.Security/FormsAuthenticationModule.cs +++ b/mcs/class/System.Web/System.Web.Security/FormsAuthenticationModule.cs @@ -180,6 +180,11 @@ namespace System.Web.Security if (context.Response.StatusCode != 401 || context.Request.QueryString ["ReturnUrl"] != null) return; +#if NET_4_5 + if (context.Response.StatusCode == 401 && context.Response.SuppressFormsAuthenticationRedirect) + return; +#endif + string loginPage; InitConfig (context); #if NET_2_0 |