Removing Authorization namespace
This commit is contained in:
parent
b7ed0faa33
commit
05b091ee66
|
|
@ -1,13 +0,0 @@
|
|||
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
|
||||
|
||||
using System.Threading.Tasks;
|
||||
namespace Microsoft.AspNet.Security.Authorization
|
||||
{
|
||||
public interface IAuthorizationPolicy
|
||||
{
|
||||
int Order { get; set; }
|
||||
Task ApplyingAsync(AuthorizationPolicyContext context);
|
||||
Task ApplyAsync(AuthorizationPolicyContext context);
|
||||
Task AppliedAsync(AuthorizationPolicyContext context);
|
||||
}
|
||||
}
|
||||
|
|
@ -19,7 +19,7 @@ using System.Collections.Generic;
|
|||
using System.Security.Claims;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Microsoft.AspNet.Security.Authorization
|
||||
namespace Microsoft.AspNet.Security
|
||||
{
|
||||
/// <summary>
|
||||
/// This class provides a base implementation for <see cref="IAuthorizationPolicy" />
|
||||
|
|
@ -1,10 +1,25 @@
|
|||
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
|
||||
// Copyright (c) Microsoft Open Technologies, Inc.
|
||||
// All Rights Reserved
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR
|
||||
// CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING
|
||||
// WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF
|
||||
// TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR
|
||||
// NON-INFRINGEMENT.
|
||||
// See the Apache 2 License for the specific language governing
|
||||
// permissions and limitations under the License.
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.Security.Claims;
|
||||
using System.Linq;
|
||||
|
||||
namespace Microsoft.AspNet.Security.Authorization
|
||||
namespace Microsoft.AspNet.Security
|
||||
{
|
||||
/// <summary>
|
||||
/// Contains authorization information used by <see cref="IAuthorizationPolicy"/>.
|
||||
|
|
@ -1,4 +1,19 @@
|
|||
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
|
||||
// Copyright (c) Microsoft Open Technologies, Inc.
|
||||
// All Rights Reserved
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR
|
||||
// CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING
|
||||
// WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF
|
||||
// TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR
|
||||
// NON-INFRINGEMENT.
|
||||
// See the Apache 2 License for the specific language governing
|
||||
// permissions and limitations under the License.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
|
@ -6,7 +21,7 @@ using System.Linq;
|
|||
using System.Security.Claims;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Microsoft.AspNet.Security.Authorization
|
||||
namespace Microsoft.AspNet.Security
|
||||
{
|
||||
public static class AuthorizationServiceExtensions
|
||||
{
|
||||
|
|
@ -1,4 +1,19 @@
|
|||
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
|
||||
// Copyright (c) Microsoft Open Technologies, Inc.
|
||||
// All Rights Reserved
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR
|
||||
// CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING
|
||||
// WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF
|
||||
// TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR
|
||||
// NON-INFRINGEMENT.
|
||||
// See the Apache 2 License for the specific language governing
|
||||
// permissions and limitations under the License.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
|
@ -6,7 +21,7 @@ using System.Linq;
|
|||
using System.Security.Claims;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Microsoft.AspNet.Security.Authorization
|
||||
namespace Microsoft.AspNet.Security
|
||||
{
|
||||
public class DefaultAuthorizationService : IAuthorizationService
|
||||
{
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
// Copyright (c) Microsoft Open Technologies, Inc.
|
||||
// All Rights Reserved
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR
|
||||
// CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING
|
||||
// WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF
|
||||
// TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR
|
||||
// NON-INFRINGEMENT.
|
||||
// See the Apache 2 License for the specific language governing
|
||||
// permissions and limitations under the License.
|
||||
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Microsoft.AspNet.Security
|
||||
{
|
||||
public interface IAuthorizationPolicy
|
||||
{
|
||||
int Order { get; set; }
|
||||
Task ApplyingAsync(AuthorizationPolicyContext context);
|
||||
Task ApplyAsync(AuthorizationPolicyContext context);
|
||||
Task AppliedAsync(AuthorizationPolicyContext context);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,10 +1,25 @@
|
|||
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
|
||||
// Copyright (c) Microsoft Open Technologies, Inc.
|
||||
// All Rights Reserved
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR
|
||||
// CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING
|
||||
// WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF
|
||||
// TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR
|
||||
// NON-INFRINGEMENT.
|
||||
// See the Apache 2 License for the specific language governing
|
||||
// permissions and limitations under the License.
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.Security.Claims;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Microsoft.AspNet.Security.Authorization
|
||||
namespace Microsoft.AspNet.Security
|
||||
{
|
||||
/// <summary>
|
||||
/// Checks claims based permissions for a user.
|
||||
|
|
@ -25,10 +25,12 @@
|
|||
<Compile Include="AuthenticationMode.cs" />
|
||||
<Compile Include="AuthenticationOptions.cs" />
|
||||
<Compile Include="AuthenticationTicket.cs" />
|
||||
<Compile Include="Authorization\AuthorizationPolicyContext.cs" />
|
||||
<Compile Include="Authorization\DefaultAuthorizationService.cs" />
|
||||
<Compile Include="Authorization\IAuthorizationPolicy.cs" />
|
||||
<Compile Include="Authorization\IAuthorizationService.cs" />
|
||||
<Compile Include="AuthorizationPolicy.cs" />
|
||||
<Compile Include="AuthorizationPolicyContext.cs" />
|
||||
<Compile Include="AuthorizationServiceExtensions.cs" />
|
||||
<Compile Include="DefaultAuthorizationService.cs" />
|
||||
<Compile Include="IAuthorizationPolicy.cs" />
|
||||
<Compile Include="IAuthorizationService.cs" />
|
||||
<Compile Include="CertificateSubjectKeyIdentifierValidator.cs" />
|
||||
<Compile Include="CertificateSubjectPublicKeyInfoValidator.cs" />
|
||||
<Compile Include="CertificateThumbprintValidator.cs" />
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||
using System.Linq;
|
||||
using System.Security.Claims;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNet.Security.Authorization;
|
||||
using Microsoft.AspNet.Security;
|
||||
using Xunit;
|
||||
|
||||
namespace Microsoft.AspNet.Security.Test
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNet.Security.Authorization;
|
||||
using Microsoft.AspNet.Security;
|
||||
|
||||
namespace Microsoft.AspNet.Security.Test
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue