Skip to content

Commit 2ce4c6a

Browse files
authored
Remove GraphQLAuthorizeAttribute (#553)
1 parent 2ab8faa commit 2ce4c6a

File tree

11 files changed

+15
-36
lines changed

11 files changed

+15
-36
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22

33
<PropertyGroup>
4-
<VersionPrefix>5.0.1-preview</VersionPrefix>
4+
<VersionPrefix>6.0.0-preview</VersionPrefix>
55
<LangVersion>latest</LangVersion>
66
<PackageLicenseExpression>MIT</PackageLicenseExpression>
77
<PackageIcon>logo.64x64.png</PackageIcon>

Tests.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
<PrivateAssets>all</PrivateAssets>
1212
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1313
</PackageReference>
14-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.1" />
14+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
1515
<PackageReference Include="Shouldly" Version="4.0.3" />
1616
<PackageReference Include="xunit" Version="2.4.1" />
1717
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3" />
1818
<PackageReference Include="Moq" Version="4.16.1" />
1919
<PackageReference Include="NSubstitute" Version="4.2.2" />
2020
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="3.1.13" Condition="'$(TargetFramework)' == 'netcoreapp3.1'" />
21-
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="5.0.4" Condition="'$(TargetFramework)' == 'net5'" />
21+
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="5.0.5" Condition="'$(TargetFramework)' == 'net5'" />
2222
</ItemGroup>
2323

2424
</Project>

samples/Samples.Server/Samples.Server.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="Serilog.AspNetCore" Version="4.0.0" />
12+
<PackageReference Include="Serilog.AspNetCore" Version="4.1.0" />
1313
<PackageReference Include="Serilog.Sinks.Console" Version="3.1.1" />
1414
</ItemGroup>
1515

src/All/All.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
<ProjectReference Include="..\Ui.Playground\Ui.Playground.csproj" />
2222
<ProjectReference Include="..\Ui.Voyager\Ui.Voyager.csproj" />
2323

24-
<PackageReference Include="GraphQL.MemoryCache" Version="4.1.0" />
25-
<PackageReference Include="GraphQL.MicrosoftDI" Version="4.1.0" />
26-
<PackageReference Include="GraphQL.SystemReactive" Version="4.1.0" />
24+
<PackageReference Include="GraphQL.MemoryCache" Version="4.3.0" />
25+
<PackageReference Include="GraphQL.MicrosoftDI" Version="4.3.0" />
26+
<PackageReference Include="GraphQL.SystemReactive" Version="4.3.0" />
2727
</ItemGroup>
2828

2929
</Project>

src/Authorization.AspNetCore/GraphQLAuthorizeAttribute.cs

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/Core/Core.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="GraphQL" Version="4.1.0" />
12-
<PackageReference Include="GraphQL.DataLoader" Version="4.1.0" />
11+
<PackageReference Include="GraphQL.DataLoader" Version="4.3.0" />
1312
<PackageReference Include="Microsoft.Extensions.Options" Version="3.1.0" />
1413
</ItemGroup>
1514

src/Transports.AspNetCore.NewtonsoftJson/Transports.AspNetCore.NewtonsoftJson.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<ItemGroup>
1010
<ProjectReference Include="..\Transports.AspNetCore\Transports.AspNetCore.csproj" />
11-
<PackageReference Include="GraphQL.NewtonsoftJson" Version="4.1.0" />
11+
<PackageReference Include="GraphQL.NewtonsoftJson" Version="4.3.0" />
1212
</ItemGroup>
1313

1414
</Project>

src/Transports.AspNetCore.SystemTextJson/Transports.AspNetCore.SystemTextJson.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<FrameworkReference Include="Microsoft.AspNetCore.App" />
1111
<ProjectReference Include="..\Transports.AspNetCore\Transports.AspNetCore.csproj" />
1212
<ProjectReference Include="..\Transports.Subscriptions.Abstractions\Transports.Subscriptions.Abstractions.csproj" />
13-
<PackageReference Include="GraphQL.SystemTextJson" Version="4.1.0" />
13+
<PackageReference Include="GraphQL.SystemTextJson" Version="4.3.0" />
1414
<PackageReference Include="System.IO.Pipelines" Version="5.0.1" />
1515
</ItemGroup>
1616

src/Transports.Subscriptions.Abstractions/Transports.Subscriptions.Abstractions.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="GraphQL.SystemReactive" Version="4.1.0" />
10-
<PackageReference Include="GraphQL.NewtonsoftJson" Version="4.1.0" />
9+
<PackageReference Include="GraphQL.SystemReactive" Version="4.3.0" />
10+
<PackageReference Include="GraphQL.NewtonsoftJson" Version="4.3.0" />
1111
<PackageReference Include="Microsoft.Extensions.Logging" Version="3.1.0" />
1212
<PackageReference Include="System.Threading.Tasks.Dataflow" Version="5.0.0" />
1313
</ItemGroup>

tests/ApiApprovalTests/GraphQL.Server.Authorization.AspNetCore.approved.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,6 @@ namespace GraphQL.Server.Authorization.AspNetCore
2020
public DefaultClaimsPrincipalAccessor(Microsoft.AspNetCore.Http.IHttpContextAccessor contextAccessor) { }
2121
public System.Security.Claims.ClaimsPrincipal GetClaimsPrincipal(GraphQL.Validation.ValidationContext context) { }
2222
}
23-
public class GraphQLAuthorizeAttribute : GraphQL.GraphQLAttribute
24-
{
25-
public GraphQLAuthorizeAttribute() { }
26-
public string Policy { get; set; }
27-
public override void Modify(GraphQL.Utilities.FieldConfig field) { }
28-
public override void Modify(GraphQL.Utilities.TypeConfig type) { }
29-
}
3023
public interface IClaimsPrincipalAccessor
3124
{
3225
System.Security.Claims.ClaimsPrincipal GetClaimsPrincipal(GraphQL.Validation.ValidationContext context);

0 commit comments

Comments
 (0)