You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/langgraph-platform/add-auth-server.mdx
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,9 @@
2
2
title: Connect an authentication provider
3
3
sidebarTitle: Connect an authentication provider
4
4
---
5
-
In [the last tutorial](resource-auth), you added resource authorization to give users private conversations. However, you are still using hard-coded tokens for authentication, which is not secure. Now you'll replace those tokens with real user accounts using [OAuth2](getting-started).
5
+
In [the last tutorial](/langgraph-platform/resource-auth), you added resource authorization to give users private conversations. However, you are still using hard-coded tokens for authentication, which is not secure. Now you'll replace those tokens with real user accounts using [OAuth2](/langgraph-platform/deployment-quickstart).
6
6
7
-
You'll keep the same [`Auth`](https://langchain-ai.github.io/langgraph/cloud/reference/sdk/python-sdk_ref#langgraph_sdk.auth.Auth) object and [resource-level access control](auth#single-owner-resources), but upgrade authentication to use Supabase as your identity provider. While Supabase is used in this tutorial, the concepts apply to any OAuth2 provider. You'll learn how to:
7
+
You'll keep the same [`Auth`](/langgraph-platform/python-sdk#langgraph_sdk.auth.Auth) object and [resource-level access control](/langgraph-platform/auth#single-owner-resources), but upgrade authentication to use Supabase as your identity provider. While Supabase is used in this tutorial, the concepts apply to any OAuth2 provider. You'll learn how to:
8
8
9
9
1. Replace test tokens with real JWT tokens
10
10
2. Integrate with OAuth2 providers for secure user authentication
@@ -40,7 +40,7 @@ sequenceDiagram
40
40
41
41
Before you start this tutorial, ensure you have:
42
42
43
-
* The [bot from the second tutorial](resource-auth) running without errors.
43
+
* The [bot from the second tutorial](/langgraph-platform/resource-auth) running without errors.
44
44
* A [Supabase project](https://supabase.com/dashboard) to use its authentication server.
45
45
46
46
## 1. Install dependencies
@@ -75,9 +75,9 @@ Since you're using Supabase for this, you can do this in the Supabase dashboard:
75
75
76
76
## 3. Implement token validation
77
77
78
-
In the previous tutorials, you used the [`Auth`](https://langchain-ai.github.io/langgraph/cloud/reference/sdk/python-sdk_ref#langgraph_sdk.auth.Auth) object to [validate hard-coded tokens](set-up-custom-auth) and [add resource ownership](resource-auth).
78
+
In the previous tutorials, you used the [`Auth`](/langgraph-platform/python-sdk#langgraph_sdk.auth.Auth) object to [validate hard-coded tokens](/langgraph-platform/set-up-custom-auth) and [add resource ownership](/langgraph-platform/resource-auth).
79
79
80
-
Now you'll upgrade your authentication to validate real JWT tokens from Supabase. The main changes will all be in the [`@auth.authenticate`](https://langchain-ai.github.io/langgraph/cloud/reference/sdk/python-sdk_ref#langgraph_sdk.auth.Auth.authenticate) decorated function:
80
+
Now you'll upgrade your authentication to validate real JWT tokens from Supabase. The main changes will all be in the [`@auth.authenticate`](/langgraph-platform/python-sdk#langgraph_sdk.auth.Auth.authenticate) decorated function:
81
81
82
82
* Instead of checking against a hard-coded list of tokens, you'll make an HTTP request to Supabase to validate the token.
83
83
* You'll extract real user information (ID, email) from the validated token.
@@ -270,5 +270,5 @@ You've successfully built a production-ready authentication system for your Lang
270
270
Now that you have production authentication, consider:
271
271
272
272
1. Building a web UI with your preferred framework (see the [Custom Auth](https://github.com/langchain-ai/custom-auth) template for an example)
273
-
2. Learn more about the other aspects of authentication and authorization in the [conceptual guide on authentication](auth).
274
-
3. Customize your handlers and setup further after reading the [reference docs](https://langchain-ai.github.io/langgraph/cloud/reference/sdk/python-sdk_ref#langgraph_sdk.auth.Auth).
273
+
2. Learn more about the other aspects of authentication and authorization in the [conceptual guide on authentication](/langgraph-platform/auth).
274
+
3. Customize your handlers and setup further after reading the [reference docs](/langgraph-platform/python-sdk#langgraph_sdk.auth.Auth).
Copy file name to clipboardExpand all lines: src/langgraph-platform/application-structure.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,10 +80,10 @@ Below are examples of directory structures for Python and JavaScript application
80
80
81
81
The `langgraph.json` file is a JSON file that specifies the dependencies, graphs, environment variables, and other settings required to deploy a LangGraph application.
82
82
83
-
See the [LangGraph configuration file reference](cli#configuration-file) for details on all supported keys in the JSON file.
83
+
See the [LangGraph configuration file reference](/langgraph-platform/cli#configuration-file) for details on all supported keys in the JSON file.
84
84
85
85
<Tip>
86
-
The [LangGraph CLI](langgraph-cli) defaults to using the configuration file `langgraph.json` in the current directory.
86
+
The [LangGraph CLI](/langgraph-platform/langgraph-cli) defaults to using the configuration file `langgraph.json` in the current directory.
Copy file name to clipboardExpand all lines: src/langgraph-platform/assistants.mdx
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,28 +7,28 @@ sidebarTitle: Overview
7
7
8
8
For example, imagine a general-purpose writing agent built on a common graph architecture. While the structure remains the same, different writing styles—such as blog posts and tweets—require tailored configurations to optimize performance. To support these variations, you can create multiple assistants (e.g., one for blogs and another for tweets) that share the underlying graph but differ in model selection and system prompt.
The LangGraph Cloud API provides several endpoints for creating and managing assistants and their versions. See the [API reference](https://langchain-ai.github.io/langgraph/cloud/reference/api/server-api-ref.html#tag/assistants) for more details.
12
+
The LangGraph Cloud API provides several endpoints for creating and managing assistants and their versions. See the [API reference](https://langchain-ai.github.io/langgraph/cloud/reference/api/api_ref/#tag/assistants) for more details.
13
13
14
14
<Info>
15
-
Assistants are a [LangGraph Platform](index) concept. They are not available in the open source LangGraph library.
15
+
Assistants are a [LangGraph Platform](/langgraph-platform/index) concept. They are not available in the open source LangGraph library.
16
16
</Info>
17
17
18
18
## Configuration
19
19
20
20
Assistants build on the LangGraph open source concept of [configuration](https://langchain-ai.github.io/langgraph/concepts/low_level/#configuration).
21
-
While configuration is available in the open source LangGraph library, assistants are only present in [LangGraph Platform](index). This is due to the fact that assistants are tightly coupled to your deployed graph. Upon deployment, LangGraph Server will automatically create a default assistant for each graph using the graph's default configuration settings.
21
+
While configuration is available in the open source LangGraph library, assistants are only present in [LangGraph Platform](/langgraph-platform/index). This is due to the fact that assistants are tightly coupled to your deployed graph. Upon deployment, LangGraph Server will automatically create a default assistant for each graph using the graph's default configuration settings.
22
22
23
-
In practice, an assistant is just an _instance_ of a graph with a specific configuration. Therefore, multiple assistants can reference the same graph but can contain different configurations (e.g. prompts, models, tools). The LangGraph Server API provides several endpoints for creating and managing assistants. See the [API reference](https://langchain-ai.github.io/langgraph/cloud/reference/api/server-api-ref.html) and [this how-to](configuration-cloud) for more details on how to create assistants.
23
+
In practice, an assistant is just an _instance_ of a graph with a specific configuration. Therefore, multiple assistants can reference the same graph but can contain different configurations (e.g. prompts, models, tools). The LangGraph Server API provides several endpoints for creating and managing assistants. See the [API reference](https://langchain-ai.github.io/langgraph/cloud/reference/api/api_ref/) and [this how-to](/langgraph-platform/configuration-cloud) for more details on how to create assistants.
24
24
25
25
## Versioning
26
26
27
27
Assistants support versioning to track changes over time.
28
-
Once you've created an assistant, subsequent edits to that assistant will create new versions. See [this how-to](configuration-cloud#create-a-new-version-for-your-assistant) for more details on how to manage assistant versions.
28
+
Once you've created an assistant, subsequent edits to that assistant will create new versions. See [this how-to](/langgraph-platform/configuration-cloud#create-a-new-version-for-your-assistant) for more details on how to manage assistant versions.
29
29
30
30
## Execution
31
31
32
32
A **run** is an invocation of an assistant. Each run may have its own input, configuration, and metadata, which may affect execution and output of the underlying graph. A run can optionally be executed on a [thread](https://langchain-ai.github.io/langgraph/concepts/persistence/#threads).
33
33
34
-
The LangGraph Platform API provides several endpoints for creating and managing runs. See the [API reference](https://langchain-ai.github.io/langgraph/cloud/reference/api/server-api-ref.html) for more details.
34
+
The LangGraph Platform API provides several endpoints for creating and managing runs. See the [API reference](https://langchain-ai.github.io/langgraph/cloud/reference/api/api_ref/) for more details.
0 commit comments