diff --git a/docs/docs/concepts/auth.md b/docs/docs/concepts/auth.md index d5119e9e4..df24aa134 100644 --- a/docs/docs/concepts/auth.md +++ b/docs/docs/concepts/auth.md @@ -27,12 +27,19 @@ LangGraph Platform provides different security defaults: - Requires valid API key in `x-api-key` header - Can be customized with your auth handler +!!! note "Custom auth" + Custom auth **is supported** for all plans in LangGraph Cloud. + ### Self-Hosted - No default authentication - Complete flexibility to implement your security model - You control all aspects of authentication and authorization +!!! note "Custom auth" + Custom auth is supported for **Enterprise** self-hosted plans. + Self-hosted lite plans do not support custom auth natively. + ## System Architecture A typical authentication setup involves three main components: diff --git a/docs/docs/how-tos/auth/custom_auth.md b/docs/docs/how-tos/auth/custom_auth.md index 3944553cb..de85f6cda 100644 --- a/docs/docs/how-tos/auth/custom_auth.md +++ b/docs/docs/how-tos/auth/custom_auth.md @@ -13,12 +13,14 @@ We currently only support custom authentication and authorization in Python deployments with `langgraph-api>=0.0.11`. Support for LangGraph.JS will be added soon. +???+ note "Support by deployment type" + + Custom auth is supported for all deployments in the **managed LangGraph Cloud**, as well as **Enterprise** self-hosted plans. It is not supported for **Lite** self-hosted plans. + This guide shows how to add custom authentication to your LangGraph Platform application. This guide applies to both LangGraph Cloud, BYOC, and self-hosted deployments. It does not apply to isolated usage of the LangGraph open source library in your own custom server. ## 1. Implement authentication -Create `auth.py` file, with a basic JWT authentication handler: - ```python from langgraph_sdk import Auth diff --git a/docs/docs/tutorials/auth/getting_started.md b/docs/docs/tutorials/auth/getting_started.md index 02fce1c58..8bc50ebab 100644 --- a/docs/docs/tutorials/auth/getting_started.md +++ b/docs/docs/tutorials/auth/getting_started.md @@ -17,6 +17,11 @@ We currently only support custom authentication and authorization in Python deployments with `langgraph-api>=0.0.11`. Support for LangGraph.JS will be added soon. + +???+ note "Support by deployment type" + + Custom auth is supported for all deployments in the **managed LangGraph Cloud**, as well as **Enterprise** self-hosted plans. It is not supported for **Lite** self-hosted plans. + In this tutorial, we will build a chatbot that only lets specific users access it. We'll start with the LangGraph template and add token-based security step by step. By the end, you'll have a working chatbot that checks for valid tokens before allowing access. ## Setting up our project