Skip to content

Commit

Permalink
Fixed target framework for the authorization package
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib committed Sep 11, 2020
1 parent 535646b commit 76554a5
Show file tree
Hide file tree
Showing 12 changed files with 193 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<PackageId>HotChocolate.AspNetCore.Authorization</PackageId>
<AssemblyName>HotChocolate.AspNetCore.Authorization</AssemblyName>
<RootNamespace>HotChocolate.AspNetCore.Authorization</RootNamespace>
<Description>Contains the Hot Chocolate GraphQL middleware for ASP .Net core.</Description>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\Core\src\Core\HotChocolate.Core.csproj" />
</ItemGroup>

<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>

</Project>
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>$(LibraryTargetFrameworks)</TargetFrameworks>
</PropertyGroup>

<PropertyGroup>
<PackageId>HotChocolate.AspNetCore.Authorization</PackageId>
<AssemblyName>HotChocolate.AspNetCore.Authorization</AssemblyName>
<RootNamespace>HotChocolate.AspNetCore.Authorization</RootNamespace>
<Description>Contains the Hot Chocolate GraphQL middleware for ASP .Net core.</Description>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\Core\src\Core\HotChocolate.Core.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.0" />
<PackageReference Include="Microsoft.AspNetCore.Authorization" Version="3.1.0" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
schema {
query: Query
}

type Query {
foo: String @authorize(apply: BEFORE_RESOLVER)
}

enum ApplyPolicy {
BEFORE_RESOLVER
AFTER_RESOLVER
}

directive @authorize("The name of the authorization policy that determines access to the annotated resource." policy: String "Roles that are allowed to access the annotated resource." roles: [String!] "Defines when when the resolver shall be executed.By default the resolver is executed after the policy has determined that the current user is allowed to access the field." apply: ApplyPolicy! = BEFORE_RESOLVER) repeatable on SCHEMA | OBJECT | FIELD_DEFINITION

"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text."
scalar String
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
schema {
query: Query
}

type Query {
foo: String @authorize(apply: AFTER_RESOLVER)
}

enum ApplyPolicy {
BEFORE_RESOLVER
AFTER_RESOLVER
}

directive @authorize("The name of the authorization policy that determines access to the annotated resource." policy: String "Roles that are allowed to access the annotated resource." roles: [String!] "Defines when when the resolver shall be executed.By default the resolver is executed after the policy has determined that the current user is allowed to access the field." apply: ApplyPolicy! = BEFORE_RESOLVER) repeatable on SCHEMA | OBJECT | FIELD_DEFINITION

"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text."
scalar String
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
schema {
query: Query
}

type Query {
foo: String @authorize(apply: BEFORE_RESOLVER)
}

enum ApplyPolicy {
BEFORE_RESOLVER
AFTER_RESOLVER
}

directive @authorize("The name of the authorization policy that determines access to the annotated resource." policy: String "Roles that are allowed to access the annotated resource." roles: [String!] "Defines when when the resolver shall be executed.By default the resolver is executed after the policy has determined that the current user is allowed to access the field." apply: ApplyPolicy! = BEFORE_RESOLVER) repeatable on SCHEMA | OBJECT | FIELD_DEFINITION

"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text."
scalar String
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
schema {
query: Query
}

type Query {
foo: String @authorize(policy: "MyPolicy", apply: BEFORE_RESOLVER)
}

enum ApplyPolicy {
BEFORE_RESOLVER
AFTER_RESOLVER
}

directive @authorize("The name of the authorization policy that determines access to the annotated resource." policy: String "Roles that are allowed to access the annotated resource." roles: [String!] "Defines when when the resolver shall be executed.By default the resolver is executed after the policy has determined that the current user is allowed to access the field." apply: ApplyPolicy! = BEFORE_RESOLVER) repeatable on SCHEMA | OBJECT | FIELD_DEFINITION

"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text."
scalar String
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
schema {
query: Query
}

type Query {
foo: String @authorize(policy: "MyPolicy", apply: AFTER_RESOLVER)
}

enum ApplyPolicy {
BEFORE_RESOLVER
AFTER_RESOLVER
}

directive @authorize("The name of the authorization policy that determines access to the annotated resource." policy: String "Roles that are allowed to access the annotated resource." roles: [String!] "Defines when when the resolver shall be executed.By default the resolver is executed after the policy has determined that the current user is allowed to access the field." apply: ApplyPolicy! = BEFORE_RESOLVER) repeatable on SCHEMA | OBJECT | FIELD_DEFINITION

"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text."
scalar String
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
schema {
query: Query
}

type Query {
foo: String @authorize(policy: "MyPolicy", apply: BEFORE_RESOLVER)
}

enum ApplyPolicy {
BEFORE_RESOLVER
AFTER_RESOLVER
}

directive @authorize("The name of the authorization policy that determines access to the annotated resource." policy: String "Roles that are allowed to access the annotated resource." roles: [String!] "Defines when when the resolver shall be executed.By default the resolver is executed after the policy has determined that the current user is allowed to access the field." apply: ApplyPolicy! = BEFORE_RESOLVER) repeatable on SCHEMA | OBJECT | FIELD_DEFINITION

"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text."
scalar String
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
schema {
query: Query
}

type Query {
foo: String @authorize(roles: [ "MyRole" ], apply: BEFORE_RESOLVER)
}

enum ApplyPolicy {
BEFORE_RESOLVER
AFTER_RESOLVER
}

directive @authorize("The name of the authorization policy that determines access to the annotated resource." policy: String "Roles that are allowed to access the annotated resource." roles: [String!] "Defines when when the resolver shall be executed.By default the resolver is executed after the policy has determined that the current user is allowed to access the field." apply: ApplyPolicy! = BEFORE_RESOLVER) repeatable on SCHEMA | OBJECT | FIELD_DEFINITION

"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text."
scalar String
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
schema {
query: Query
}

type Query @authorize(apply: BEFORE_RESOLVER) {
foo: String
}

enum ApplyPolicy {
BEFORE_RESOLVER
AFTER_RESOLVER
}

directive @authorize("The name of the authorization policy that determines access to the annotated resource." policy: String "Roles that are allowed to access the annotated resource." roles: [String!] "Defines when when the resolver shall be executed.By default the resolver is executed after the policy has determined that the current user is allowed to access the field." apply: ApplyPolicy! = BEFORE_RESOLVER) repeatable on SCHEMA | OBJECT | FIELD_DEFINITION

"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text."
scalar String
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
schema {
query: Query
}

type Query @authorize(policy: "MyPolicy", apply: BEFORE_RESOLVER) {
foo: String
}

enum ApplyPolicy {
BEFORE_RESOLVER
AFTER_RESOLVER
}

directive @authorize("The name of the authorization policy that determines access to the annotated resource." policy: String "Roles that are allowed to access the annotated resource." roles: [String!] "Defines when when the resolver shall be executed.By default the resolver is executed after the policy has determined that the current user is allowed to access the field." apply: ApplyPolicy! = BEFORE_RESOLVER) repeatable on SCHEMA | OBJECT | FIELD_DEFINITION

"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text."
scalar String
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
schema {
query: Query
}

type Query @authorize(roles: [ "MyRole" ], apply: BEFORE_RESOLVER) {
foo: String
}

enum ApplyPolicy {
BEFORE_RESOLVER
AFTER_RESOLVER
}

directive @authorize("The name of the authorization policy that determines access to the annotated resource." policy: String "Roles that are allowed to access the annotated resource." roles: [String!] "Defines when when the resolver shall be executed.By default the resolver is executed after the policy has determined that the current user is allowed to access the field." apply: ApplyPolicy! = BEFORE_RESOLVER) repeatable on SCHEMA | OBJECT | FIELD_DEFINITION

"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text."
scalar String
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<PropertyGroup>
<AssemblyName>HotChocolate.AspNetCore.Tests</AssemblyName>
<RootNamespace>HotChocolate.AspNetCore</RootNamespace>
<TargetFrameworks>$(LibraryTargetFrameworks)</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 76554a5

Please sign in to comment.