You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ROOT/pages/security/authentication.adoc
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,11 @@
3
3
4
4
The GraphQL Library offers the `@authentication` directive to configure authentication for certain operations and for different parts of your schema.
5
5
6
-
[NOTE]
7
-
Explicit authentication, configured with the `@authentication` directive, is only ever evaluated during Cypher translation time, and unauthenticated requests with queries requiring authentication never reach the database.
6
+
[IMPORTANT]
7
+
====
8
+
Explicit authentication, configured with the `@authentication` directive, is only ever evaluated during Cypher translation time.
9
+
Unauthenticated requests with queries requiring authentication never reach the database.
10
+
====
8
11
9
12
== Operations
10
13
@@ -19,7 +22,6 @@ Authentication can be configured to only be validated on certain operations:
19
22
* `DELETE_RELATIONSHIP`
20
23
* `SUBSCRIBE`
21
24
22
-
23
25
For instance, to only require authentication for the update or deletion of a user:
24
26
25
27
[source, graphql, indent=0]
@@ -32,15 +34,15 @@ type User @authentication(operations: [UPDATE, DELETE]) {
32
34
----
33
35
34
36
[NOTE]
35
-
If there is no `operations` argument with a list of operations, the GraphQL Library treats the authentication configuration as if the full list of operations had been provided.
36
-
37
+
====
38
+
In case there is no `operations` argument with a list of operations, the GraphQL Library treats the authentication configuration as if the full list of operations had been provided.
39
+
====
37
40
38
41
== Scope
39
42
40
-
41
43
=== Global authentication
42
44
43
-
Athentication can be applied to the entire schema.
45
+
Authentication can be applied to the entire schema.
44
46
This ensures authentication is checked for every matching request.
Copy file name to clipboardExpand all lines: modules/ROOT/pages/security/authorization.adoc
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,9 @@ type Post @authorization(filter: [
67
67
----
68
68
69
69
[NOTE]
70
-
If there is no `operations` argument with a list of operations, the GraphQL Library treats the authorization configuration as if the full list of operations had been provided.
70
+
====
71
+
In case there is no `operations` argument with a list of operations, the GraphQL Library treats the authorization configuration as if the full list of operations had been provided.
72
+
====
71
73
72
74
73
75
=== Validating
@@ -119,7 +121,9 @@ type Post @authorization(validate: [
119
121
----
120
122
121
123
[NOTE]
122
-
If there is no `operations` argument with a list of operations, the GraphQL Library treats the authorization configuration as if the full list of operations had been provided.
124
+
====
125
+
In case there is no `operations` argument with a list of operations, the GraphQL Library treats the authorization configuration as if the full list of operations had been provided.
0 commit comments