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
{{ message }}
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.
I have an augmentedSchema wrapped in buildFederatedSchema from @apollo/federation but the Authorization directives are ignored when the API is called through the Gateway and directly.
When the API is created and called directly with an augmentedSchema passed to the Apollo server instance the Authorization directives work as expected!
Fairly new to GraphQL so don't know whether this is for here or on the Apollo Federation side, don't know how to properly test and debug it, to be honest!
My SVC1 has a simple resolver that returns hello world string and it has the @isAuthenticated directive (just as an example, there are other customs and autogenerated queries and mutations of course! )
If you run the "SVC1" API Apollo server directly with the augmented schema then the Authorization directive is respected and working as expected
Case 2:
if you run the "SVC1" API Apollo server with the federated schema and call the SVC1 API tough the Gateway then the Authorization directive is ignored and the data is returned without providing the JWT token in the authorization header
p.s the Apollo Federation Gateway is properly propagating the request with the Authorization header to the SVC1!
The text was updated successfully, but these errors were encountered:
bokjo
changed the title
Authorization directives ignored in Apollo Federated Gateway schema
isAuthenticated directive ignored in Apollo Federated Gateway schema
Mar 1, 2021
Hello there,
I have an
augmentedSchema
wrapped inbuildFederatedSchema
from@apollo/federation
but the Authorization directives are ignored when the API is called through the Gateway and directly.When the API is created and called directly with an
augmentedSchema
passed to the Apollo server instance the Authorization directives work as expected!Fairly new to GraphQL so don't know whether this is for here or on the Apollo Federation side, don't know how to properly test and debug it, to be honest!
neo4j-graphql-js API:
Apollo Federation Gateway:
My
SVC1
has a simple resolver that returns hello world string and it has the @isAuthenticated directive (just as an example, there are other customs and autogenerated queries and mutations of course! )Case 1:
augmented
schema then the Authorization directive is respected and working as expectedCase 2:
p.s the
Apollo Federation Gateway
is properly propagating the request with the Authorization header to the SVC1!The text was updated successfully, but these errors were encountered: