-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Move AuthZ policy types back into Policy and rejigger AddAuthorization #10021
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 43 commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
1bb5744
Move policy types back
HaoK 3c25a3f
Rename AddAuthorization[Core]
HaoK 7809eeb
Update MvcCoreMvcCoreBuilderExtensions.cs
HaoK afa0f22
Update AuthorizeFilterTest.cs
HaoK fcfe978
Update Microsoft.AspNetCore.Authorization.csproj
HaoK 8c19fb5
Update PolicyServiceCollectionExtensions.cs
HaoK 054c74c
Update ConnectionsDependencyInjectionExtensions.cs
HaoK 02aedd7
Update HttpConnectionDispatcherTests.cs
HaoK 79d8800
Update Startup.cs
HaoK 0ab499e
Update Startup.cs
HaoK 323e22f
Update Microsoft.AspNetCore.Authorization.csproj
HaoK b18df1d
Update PolicyServiceCollectionExtensions.cs
HaoK 859a176
Move AllowAnoymous and AuthorizeData back to AuthZ
HaoK 28b8116
Update refs
HaoK 33ec9fd
Fix signal ref
HaoK 75070ef
Don't add empty configures
HaoK ff0bc07
Update ref
HaoK 1f2ac11
Update refs
HaoK 4060ca3
Update Microsoft.AspNetCore.Http.Abstractions.csproj
HaoK a410227
Update Microsoft.AspNetCore.Http.Abstractions.csproj
HaoK 1c5ef0c
Update Microsoft.AspNetCore.Routing.csproj
HaoK 870ab06
Update Microsoft.AspNetCore.Routing.csproj
HaoK 0b0db4c
Move policy types back
HaoK 0366fc5
Rename AddAuthorization[Core]
HaoK 7c93bec
Update MvcCoreMvcCoreBuilderExtensions.cs
HaoK b5379a2
Update AuthorizeFilterTest.cs
HaoK 1fb43a3
Update PolicyServiceCollectionExtensions.cs
HaoK 7556d3d
Update ConnectionsDependencyInjectionExtensions.cs
HaoK 6771436
Update HttpConnectionDispatcherTests.cs
HaoK 5d6d770
Update Startup.cs
HaoK 1b4191d
Update Startup.cs
HaoK e977912
Update Microsoft.AspNetCore.Authorization.csproj
HaoK dd2113e
Update PolicyServiceCollectionExtensions.cs
HaoK cf590dd
Move AllowAnoymous and AuthorizeData back to AuthZ
HaoK 3fbf68e
Don't add empty configures
HaoK b211d17
Update ref
HaoK b61fbef
Update refs
HaoK 69173ae
Update Microsoft.AspNetCore.Http.Abstractions.csproj
HaoK 1e78697
Update Microsoft.AspNetCore.Http.Abstractions.csproj
HaoK 1d47a60
Create metadata
HaoK 25864ea
Add Metadata package and move attributes there
HaoK b585f2e
Fix bad merge
HaoK b57a26f
Update Microsoft.AspNetCore.Authorization.Policy.netcoreapp3.0.cs
HaoK 21927c1
Create AssemblyInfo.cs
HaoK c643b42
Create AssemblyInfo.cs
HaoK File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
src/Http/Http.Abstractions/ref/Microsoft.AspNetCore.Http.Abstractions.netcoreapp3.0.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/Http/Metadata/ref/Microsoft.AspNetCore.Metadata.csproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!-- This file is automatically generated. --> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFrameworks>netstandard2.0</TargetFrameworks> | ||
</PropertyGroup> | ||
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'"> | ||
<Compile Include="Microsoft.AspNetCore.Metadata.netstandard2.0.cs" /> | ||
|
||
</ItemGroup> | ||
</Project> |
15 changes: 15 additions & 0 deletions
15
src/Http/Metadata/ref/Microsoft.AspNetCore.Metadata.netstandard2.0.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// 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.AspNetCore.Authorization | ||
{ | ||
public partial interface IAllowAnonymous | ||
{ | ||
} | ||
public partial interface IAuthorizeData | ||
{ | ||
string AuthenticationSchemes { get; set; } | ||
string Policy { get; set; } | ||
string Roles { get; set; } | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
src/Http/Metadata/src/Microsoft.AspNetCore.Metadata.csproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<Description>ASP.NET Core metadata.</Description> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<IsAspNetCoreApp>true</IsAspNetCoreApp> | ||
<NoWarn>$(NoWarn);CS1591</NoWarn> | ||
<GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
<PackageTags>aspnetcore</PackageTags> | ||
</PropertyGroup> | ||
|
||
</Project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
10 changes: 4 additions & 6 deletions
10
src/Security/Authorization/Core/ref/Microsoft.AspNetCore.Authorization.csproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 3 additions & 9 deletions
12
src/Security/Authorization/Core/src/Microsoft.AspNetCore.Authorization.csproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
src/Security/Authorization/Core/src/Properties/AssemblyInfo.cs
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
src/Security/Authorization/Core/src/Properties/Resources.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.