Skip to content

Commit

Permalink
Add links
Browse files Browse the repository at this point in the history
  • Loading branch information
hinthornw committed Dec 18, 2024
1 parent b85c996 commit 30e647a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/docs/concepts/auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ While often used interchangeably, these terms represent distinct security concep
- **Authentication** ("AuthN") verifies _who_ you are. This runs as middleware for every request.
- **Authorization** ("AuthZ") determines _what you can do_. This validates the user's privileges and roles on a per-resource basis.

In LangGraph Platform, authentication is handled by your `@auth.authenticate` handler, and authorization is handled by your `@auth.on` handlers.
In LangGraph Platform, authentication is handled by your [`@auth.authenticate`](../cloud/reference/sdk/python_sdk_ref.md#langgraph_sdk.auth.Auth.authenticate) handler, and authorization is handled by your [`@auth.on`](../cloud/reference/sdk/python_sdk_ref.md#langgraph_sdk.auth.Auth.on) handlers.

## System Architecture

Expand Down
4 changes: 2 additions & 2 deletions docs/docs/tutorials/auth/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ In this tutorial, we will build a chatbot that only lets specific users access i

1. Basic Authentication (you are here) - Control who can access your bot
2. [Resource Authorization](resource_auth.md) - Let users have private conversations
3. [Production Auth](supabase_auth.md) - Add real user accounts and validate using OAuth2
3. [Production Auth](add_auth_server.md) - Add real user accounts and validate using OAuth2

## Setting up our project

Expand Down Expand Up @@ -36,7 +36,7 @@ Now that we've seen the base LangGraph app, let's add authentication to it!

## Adding Authentication

The `Auth` object lets you register an authentication function that the LangGraph platform will run on every request. This function receives each request and decides whether to accept or reject.
The [`Auth`](../../cloud/reference/sdk/python_sdk_ref.md#langgraph_sdk.auth.Auth) object lets you register an authentication function that the LangGraph platform will run on every request. This function receives each request and decides whether to accept or reject.

Create a new file `src/security/auth.py`. This is where we'll our code will live to check if users are allowed to access our bot:

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/tutorials/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ Add custom authentication and authorization to an existing LangGraph Platform de

1. [Setting Up Custom Authentication](./auth/getting_started.md): Implement OAuth2 authentication to authorize users on your deployment
2. [Resource Authorization](./auth/resource_auth.md): Let users have private conversations
3. [Connecting an Authentication Provider](./auth/supabase_auth.md): Add real user accounts and validate using OAuth2
3. [Connecting an Authentication Provider](./auth/add_auth_server.md): Add real user accounts and validate using OAuth2

0 comments on commit 30e647a

Please sign in to comment.