← Back to Skills Marketplace
brandonwise

Secure Auth Patterns

by brandonwise · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
859
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install secure-auth-patterns
Description
Implement secure authentication and authorization using JWT, OAuth2, session management, RBAC, permissions, and resource ownership verification.
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install secure-auth-patterns
  3. After installation, invoke the skill by name or use /secure-auth-patterns
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug secure-auth-patterns
Version 1.0.0
License
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Secure Auth Patterns?

Implement secure authentication and authorization using JWT, OAuth2, session management, RBAC, permissions, and resource ownership verification. It is an AI Agent Skill for Claude Code / OpenClaw, with 859 downloads so far.

How do I install Secure Auth Patterns?

Run "/install secure-auth-patterns" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Secure Auth Patterns free?

Yes, Secure Auth Patterns is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Secure Auth Patterns support?

Secure Auth Patterns is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Secure Auth Patterns?

It is built and maintained by brandonwise (@brandonwise); the current version is v1.0.0.

💬 Comments