reactioncommerce / federated-gateway

An access aware federated GraphQL API gateway for the Reaction Commerce ecosystem
Apache License 2.0
6 stars 3 forks source link

feat: pass authorization token through gateway #26

Closed kieckhafer closed 4 years ago

kieckhafer commented 4 years ago

Resolves #14 Impact: major Type: feature

Summary

Passes Authorization token through the gateway to allow authenticated requests via the gateway

Testing

  1. Spin up an API instance, and a Gateway instance
  2. Make sure you have the API service listed in the Gateway SERVICES config in the env
  3. Perform an authenticated action via the gateway (:2000): create / update a product, change shop settings, etc: anything that would require an authenticated user
  4. See that it works
  5. Perform the same action via the GQL API (:3000)
  6. See that it works