← 返回 Skills 市场
Secure Auth Patterns
作者
brandonwise
· GitHub ↗
· v1.0.0
859
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install secure-auth-patterns
功能描述
Implement secure authentication and authorization using JWT, OAuth2, session management, RBAC, permissions, and resource ownership verification.
安全使用建议
This playbook appears to be legitimate guidance on implementing auth/authz, but be aware of two things before you use it: (1) the examples assume many secrets and external endpoints (JWT_SECRET, JWT_REFRESH_SECRET, SESSION_SECRET, REDIS_URL, GOOGLE_CLIENT_ID/SECRET, FRONTEND_URL, etc.) even though the skill metadata lists none — you should not paste real secrets into the agent or public prompts and you should plan how to supply these values securely (environment-only, secret manager, etc.); (2) some shown patterns can leak tokens (redirecting access tokens in a URL query string is risky). If you plan to adopt the examples, review and adapt them to your platform's secure secret storage, avoid placing tokens in URLs (prefer HttpOnly secure cookies or one-time server-side exchanges), and validate the code in a controlled dev environment before deploying.
功能分析
Type: OpenClaw Skill
Name: secure-auth-patterns
Version: 1.0.0
The skill bundle provides comprehensive documentation and code examples for implementing secure authentication and authorization patterns (JWT, OAuth2, session management, RBAC, password security). All content, including markdown instructions and code snippets, is educational and focuses on security best practices. There is no evidence of prompt injection attempts against the AI agent, data exfiltration, malicious execution, persistence mechanisms, or any other indicators of intentional harmful behavior. The use of environment variables and database interactions in code examples is standard for the stated purpose of building secure applications, not for compromising the agent or its environment.
能力评估
Purpose & Capability
Name and description align with the included content: the SKILL.md and implementation playbook provide JWT, session, OAuth2, RBAC, and refresh-token patterns and code samples consistent with an authentication/authorization guidance skill. There are no unrelated binaries or unrelated capabilities requested.
Instruction Scope
The runtime instructions contain many concrete code samples that reference environment secrets and runtime components (e.g., process.env.JWT_SECRET, JWT_REFRESH_SECRET, SESSION_SECRET, REDIS_URL, GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, FRONTEND_URL) but the skill does not declare these as required. The playbook also demonstrates redirecting access tokens in a query parameter (res.redirect(...?token=...)), which is an insecure pattern that can leak tokens via referrers or logs. Overall the instructions stay within auth/authz scope but assume access to secrets and external services without making those requirements explicit.
Install Mechanism
This is an instruction-only skill with no install spec and no code files to execute: lowest install risk. Nothing is downloaded or written to disk by the skill itself.
Credentials
Registry metadata lists no required environment variables or credentials, yet the code samples assume multiple sensitive environment values (JWT_SECRET, JWT_REFRESH_SECRET, SESSION_SECRET, REDIS_URL, GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, FRONTEND_URL, etc.). The absence of declared required secrets is an incoherence: if you run or copy these examples into a runtime, you'll need secrets; the skill does not request or document how those should be provided safely.
Persistence & Privilege
The skill does not request persistent presence (always: false), does not modify other skills or global agent config, and does not request elevated platform privileges. Autonomous invocation remains allowed (platform default), but there are no extra persistence flags set by this skill.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install secure-auth-patterns - 安装完成后,直接呼叫该 Skill 的名称或使用
/secure-auth-patterns触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release: comprehensive guide to authentication and authorization patterns.
- Covers JWT, OAuth2, session-based authentication, RBAC, permission-based access, and resource ownership.
- Includes practical TypeScript/JavaScript code samples for implementation.
- Offers usage recommendations, best practices, and security considerations.
- Helpful for anyone building or securing user authentication and API access controls.
元数据
常见问题
Secure Auth Patterns 是什么?
Implement secure authentication and authorization using JWT, OAuth2, session management, RBAC, permissions, and resource ownership verification. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 859 次。
如何安装 Secure Auth Patterns?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install secure-auth-patterns」即可一键安装,无需额外配置。
Secure Auth Patterns 是免费的吗?
是的,Secure Auth Patterns 完全免费(开源免费),可自由下载、安装和使用。
Secure Auth Patterns 支持哪些平台?
Secure Auth Patterns 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Secure Auth Patterns?
由 brandonwise(@brandonwise)开发并维护,当前版本 v1.0.0。
推荐 Skills