We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The simplified schema used
type User { id: ID! @id publishedVideos: [Video!]! @relationship(type: "PUBLISHER", direction: OUT) } type Video { id: ID! @id publisher: User! @relationship(type: "PUBLISHER", direction: IN) } extend type Video @auth(rules: [{ where: { publisher: { id: "$jwt.sub" } } }])
Query used
query getVideos { videos { id } }
Behavior
Authorization
Expected parameter(s): this_auth_where0_publisher_id
DEBUG data Authenticated test:
@neo4j/graphql:execute About to execute Cypher: Cypher: [HIDDEN] Params: { "this_auth_where0_publisher_id": "719dd44f-c7c6-422e-8bf8-41127c8a306e", "auth": { "isAuthenticated": true, "roles": [], "jwt": { [HIDDEN] "sub": "719dd44f-c7c6-422e-8bf8-41127c8a306e" } } } +0ms
Non-authenticated test:
@neo4j/graphql:execute About to execute Cypher: Cypher: [HIDDEN] Params: { "auth": { "isAuthenticated": false, "roles": [] } } +10s
Expected behavior Non-authenticated:
@neo4j/graphql:execute About to execute Cypher: Cypher: [HIDDEN] Params: { "this_auth_where0_publisher_id": null, "auth": { "isAuthenticated": false, "roles": [] } } +10s
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
The simplified schema used
Query used
Behavior
Authorization
header with the JWT, everything is working fine.Authorization
is removed, got the following error:DEBUG data
Authenticated test:
Non-authenticated test:
Expected behavior
Non-authenticated:
The text was updated successfully, but these errors were encountered: