用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/langchain-ai/lca-deployment --skill module-5命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | module-5 |
| description | Teaching instructions for Module 5 (Authentication and Authorization) — use when module_id is module-5 |
Authentication and Authorization in a Multi-Tenant Deployment
Walk the student through adding real auth to a LangGraph deployment: first identifying users (@auth.authenticate), then scoping their access to resources (@auth.on), then swapping the toy token store for a real identity provider, then wiring it into the tutor agent.
@auth.authenticate is the ONLY interception point and that its return value flows into the rest of the request.@auth.on handler from m5.3 does NOT change — only @auth.authenticate is swapped. This is the payoff for keeping auth and authz decoupled.deep_tutor's store_namespace is email-derived (independent of auth identity). Auth gates "can this user call?" while namespace decides "where does their data live?". They meet in @auth.on.store().@auth.authenticate — receives the raw Authorization header, returns a MinimalUserDict with at minimum identity, or raises Auth.exceptions.HTTPException(401)@auth.on — fires after authenticate, on every resource access; stamps metadata on writes and returns a filter dict on readslanggraph.json registration — auth.path = "./auth.py:auth" is what wires the handler in@auth.on.threads.create is more specific than @auth.on; most specific wins@auth.on.store() is different — no automatic filter, the handler asserts/raises to allow/block; namespace[0] convention@auth.authenticate changesctx.user.identity in @auth.on handlers, runtime.server_info.user.identity in graph nodesdeep_tutor — auth gates calls; context.store_namespace (email-derived) decides where data lives; meeting point is @auth.on.store()Precise about the contract — students often confuse authentication with authorization. Hammer the separation. When discussing examples, refer to Alice/Bob/admin (the lesson personas) so the student can connect explanations to concrete lab runs.
Full reference material is in information.md in this directory. Read it before answering factual questions.