Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changesets/docs_fix_jwt_router_auth_example_hierarchy.md
Original file line number Diff line number Diff line change
@@ -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
9 changes: 5 additions & 4 deletions docs/source/routing/security/router-authentication.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,11 @@

```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

Check warning on line 126 in docs/source/routing/security/router-authentication.mdx

View check run for this annotation

Apollo Librarian / AI Style Review

docs/source/routing/security/router-authentication.mdx#L126

**Structural Elements**: YAML indentation should use exactly 2 spaces per level. This list item should be indented 2 spaces relative to its parent. ```suggestion - url: https://dev-zzp5enui.us.auth0.com/.well-known/jwks.json ```
on_error: "Error"
```

Pros:
Expand Down