File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -17,14 +17,14 @@ public class RequiresAuthenticationAttribute : Attribute { }
17
17
/// Attribute based forms authentication verification module.
18
18
/// </summary>
19
19
public class AttributeBasedFormsAuthenticationModule : IHttpModule {
20
- public static bool useAuthorization = false ;
20
+ public static bool useAuthentication = false ;
21
21
/// <summary>
22
22
/// Inits the AttributeBasedFormsAuthentication Module.
23
23
/// </summary>
24
24
/// <param name="application">HttpApplication Parameter</param>
25
25
public void Init ( HttpApplication application ) {
26
26
// Check if it should be initialized
27
- if ( useAuthorization ) {
27
+ if ( useAuthentication ) {
28
28
// Your initialization logic here
29
29
application . PostMapRequestHandler += OnPostAuthorizeRequest ;
30
30
}
@@ -240,7 +240,7 @@ private static string GetWebMethodNameFromRequest(HttpRequest request) {
240
240
}
241
241
242
242
public static class HttpApplicationExtensions {
243
- public static void UseAuthorization ( this HttpApplication application ) {
244
- AttributeBasedFormsAuthenticationModule . useAuthorization = true ;
243
+ public static void UseAuthentication ( this HttpApplication application ) {
244
+ AttributeBasedFormsAuthenticationModule . useAuthentication = true ;
245
245
}
246
246
}
You can’t perform that action at this time.
0 commit comments