diff --git a/.changesets/docs_fix_jwt_router_auth_example_hierarchy.md b/.changesets/docs_fix_jwt_router_auth_example_hierarchy.md new file mode 100644 index 0000000000..1cef179d2c --- /dev/null +++ b/.changesets/docs_fix_jwt_router_auth_example_hierarchy.md @@ -0,0 +1,5 @@ +### Fix JWT authentication example hierarchy in the router authentication guide + +Updated the GraphOS Router authentication guide to use the correct JWT configuration path in the YAML example. The example now shows `authentication.router.jwt.jwks` and `authentication.router.jwt.on_error`, matching the actual router configuration hierarchy. + +By [@the-gigi-apollo](https://github.com/the-gigi-apollo) in https://github.com/apollographql/router/pull/8901 diff --git a/docs/source/routing/security/router-authentication.mdx b/docs/source/routing/security/router-authentication.mdx index 07760fb2de..93a48bdc84 100644 --- a/docs/source/routing/security/router-authentication.mdx +++ b/docs/source/routing/security/router-authentication.mdx @@ -120,10 +120,11 @@ sequenceDiagram ```yaml authentication: - jwt: - jwks: - - url: https://dev-zzp5enui.us.auth0.com/.well-known/jwks.json - on_error: Error + router: + jwt: + jwks: + - url: https://dev-zzp5enui.us.auth0.com/.well-known/jwks.json + on_error: "Error" ``` Pros: