Skip to content

Commit b3bef07

Browse files
authored
Update AuthorizationHttpModule.cs
Signed-off-by: Joachim Fosse <56757601+joaf123@users.noreply.github.com>
1 parent 3111beb commit b3bef07

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

AuthorizationHttpModule.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ public class RequiresAuthenticationAttribute : Attribute { }
1717
/// Attribute based forms authentication verification module.
1818
/// </summary>
1919
public class AttributeBasedFormsAuthenticationModule : IHttpModule {
20-
public static bool useAuthorization = false;
20+
public static bool useAuthentication = false;
2121
/// <summary>
2222
/// Inits the AttributeBasedFormsAuthentication Module.
2323
/// </summary>
2424
/// <param name="application">HttpApplication Parameter</param>
2525
public void Init(HttpApplication application) {
2626
// Check if it should be initialized
27-
if (useAuthorization) {
27+
if (useAuthentication) {
2828
// Your initialization logic here
2929
application.PostMapRequestHandler += OnPostAuthorizeRequest;
3030
}
@@ -240,7 +240,7 @@ private static string GetWebMethodNameFromRequest(HttpRequest request) {
240240
}
241241

242242
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;
245245
}
246246
}

0 commit comments

Comments
 (0)