LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    LangGraph Checkpoint
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph-clischemasAuthConfig
    Class●Since v0.4

    AuthConfig

    Configuration for custom authentication logic and how it integrates into the OpenAPI spec.

    Copy
    AuthConfig()

    Bases

    TypedDict

    Constructors

    Attributes

    View source on GitHub
    constructor
    __init__
    NameType
    pathstr
    disable_studio_authbool
    openapiSecurityConfig
    cacheCacheConfig
    attribute
    path: str
    attribute
    disable_studio_auth: bool
    attribute
    openapi: SecurityConfig
    attribute
    cache: CacheConfig

    Required. Path to an instance of the Auth() class that implements custom authentication.

    Format: "path/to/file.py:my_auth"

    Optional. Whether to disable LangSmith API-key authentication for requests originating the Studio.

    Defaults to False, meaning that if a particular header is set, the server will verify the x-api-key header value is a valid API key for the deployment's workspace. If True, all requests will go through your custom authentication logic, regardless of origin of the request.

    The security configuration to include in your server's OpenAPI spec.

    Example (OAuth2): { "securitySchemes": { "OAuth2": { "type": "oauth2", "flows": { "password": { "tokenUrl": "/token", "scopes": {"me": "Read user info", "items": "Manage items"} } } } }, "security": [ {"OAuth2": ["me"]} ] }

    Optional. Cache configuration for the server.