diff --git a/src/Microsoft.AspNet.Authorization/AllowAnonymousAttribute.cs b/src/Microsoft.AspNet.Authorization/AllowAnonymousAttribute.cs new file mode 100644 index 0000000000..30d0c49444 --- /dev/null +++ b/src/Microsoft.AspNet.Authorization/AllowAnonymousAttribute.cs @@ -0,0 +1,12 @@ +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +using System; + +namespace Microsoft.AspNet.Authorization +{ + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false, Inherited = true)] + public class AllowAnonymousAttribute : Attribute, IAllowAnonymous + { + } +} diff --git a/src/Microsoft.AspNet.Authorization/AuthorizationPolicy.cs b/src/Microsoft.AspNet.Authorization/AuthorizationPolicy.cs index 2d8cf315d4..096caeecd9 100644 --- a/src/Microsoft.AspNet.Authorization/AuthorizationPolicy.cs +++ b/src/Microsoft.AspNet.Authorization/AuthorizationPolicy.cs @@ -57,7 +57,7 @@ namespace Microsoft.AspNet.Authorization return builder.Build(); } - public static AuthorizationPolicy Combine(AuthorizationOptions options, IEnumerable attributes) + public static AuthorizationPolicy Combine(AuthorizationOptions options, IEnumerable attributes) { if (options == null) { diff --git a/src/Microsoft.AspNet.Authorization/IAllowAnonymous.cs b/src/Microsoft.AspNet.Authorization/IAllowAnonymous.cs new file mode 100644 index 0000000000..3ba290a989 --- /dev/null +++ b/src/Microsoft.AspNet.Authorization/IAllowAnonymous.cs @@ -0,0 +1,9 @@ +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +namespace Microsoft.AspNet.Authorization +{ + public interface IAllowAnonymous + { + } +}