Registering your secure graphql endpoints with apollo federation supergraph

Hi All,

I am working on project where I have two graphql services “service 1” and “service 2”. Both the services running on secure endpoints having token based authentication/authorization. I was trying to publish my endpoints using rover command below but I am getting “401 unauthorized” error. Can anybody help me with this?

rover subgraph introspect http://localhost:4000 | rover subgraph publish my-graph@my-variant --name locations --routing-url https://flyby-locations-sub.herokuapp.com/ --schema -

Thanks,
Vijay

Hi @Vijay_Kumar - you will need to send authorization headers to the endpoint you are introspecting by passing a --header argument to the rover subgraph introspect command. Documentation for that can be found here.