From 30e647abce45cb882a58cd6b77ca609045e05f4a Mon Sep 17 00:00:00 2001 From: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com> Date: Wed, 18 Dec 2024 01:06:01 -0800 Subject: [PATCH] Add links --- docs/docs/concepts/auth.md | 2 +- docs/docs/tutorials/auth/getting_started.md | 4 ++-- docs/docs/tutorials/index.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/docs/concepts/auth.md b/docs/docs/concepts/auth.md index cab998218..54b42cdd2 100644 --- a/docs/docs/concepts/auth.md +++ b/docs/docs/concepts/auth.md @@ -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 diff --git a/docs/docs/tutorials/auth/getting_started.md b/docs/docs/tutorials/auth/getting_started.md index 7517b3058..85910dbd4 100644 --- a/docs/docs/tutorials/auth/getting_started.md +++ b/docs/docs/tutorials/auth/getting_started.md @@ -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 @@ -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: diff --git a/docs/docs/tutorials/index.md b/docs/docs/tutorials/index.md index 31fcfddbb..be7d56108 100644 --- a/docs/docs/tutorials/index.md +++ b/docs/docs/tutorials/index.md @@ -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 \ No newline at end of file +3. [Connecting an Authentication Provider](./auth/add_auth_server.md): Add real user accounts and validate using OAuth2 \ No newline at end of file