πŸ•ΈοΈ API Patterns and Practices: GraphQL
Home Chapters Examples Diagrams Bibliography GitHub β†—
Home / Security
Part 8 2 chapters

Security

Secure the transport, control introspection, and authenticate and authorize at the field level.

Chapter 17

Transport security and introspection control

TLS from framework configuration, each stack's protocol floor, public and internal instances, introspection and field suggestions off, the form and text/plain CSRF paths closed, one CORS origin, and size and token limits.

12 min readRead β†’
Chapter 18

AuthN and AuthZ

Keycloak-issued JWTs validated on both stacks, identity without the token in the context, operation rules, ownership enforced at one choke point, a field rule that fails with a code, and 401 for tokens that do not validate.

13 min readRead β†’
← Previous part Performance & Safety Next part β†’ Observability & the Gateway

API Patterns and Practices: GraphQL

Designing GraphQL APIs well, with runnable examples in Quarkus SmallRye GraphQL and Python Strawberry against one canonical SDL contract.

Site

  • Outline
  • Bibliography

Reference

  • GraphQL β†—
  • GraphQL specification β†—
  • SmallRye GraphQL β†—
  • Strawberry β†—
  • View on GitHub β†—
  • Issues β†—
Open source Β· MIT Last built 2026-11-11