Skip to content

Commit

Permalink
[docs] Update authentication docs with link to Router (#7826)
Browse files Browse the repository at this point in the history
Add links to Router docs for those who may land on the page from
external or internal direct links
  • Loading branch information
smyrick authored Mar 5, 2024
1 parent 23c40e7 commit 9a101e1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/source/security/authentication.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ Your GraphQL API probably needs to control which users can see and interact with
- **Authentication** is determining whether a given user is logged in, and subsequently determining _which_ user someone is.
- **Authorization** is then determining what a given user has permission to do or see.

<Tip>

Apollo Router can now provide authentication and authorization for your entire supergraph. While it may make sense to re-apply auth checks at a subgraph level or in a monolith graph, the Apollo Router has built and provided standard JWT checks that can be setup with a simple YAML configuration and enforce this in a central location for all subgraphs:

https://www.apollographql.com/blog/centrally-enforce-policy-as-code-for-graphql-apis

</Tip>

## Putting authenticated user info in your `contextValue`

<TopLevelAwait />
Expand Down

0 comments on commit 9a101e1

Please sign in to comment.