agentleFS
reaatechreaatech/mcp-gateway/skills/auth/skill.md

auth

Skill0 starsChanged 7 months agoMITView on GitHub

20 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ci-cd, error-handling and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • JohnJBorenSkill

    ci-cd

    CI/CD pipeline design, GitHub Actions, testing automation, and deployment strategies

    Also in 4 projects that use this

  • MicrosoftSkill

    error-handling

    统一错误处理系统。在添加 API 端点、修改错误处理、添加前端 API 调用、编写错误相关测试时使用。

    Also in 5 projects that use this

  • diego-tobalinaSkill

    logging

    Logging best practices for Java (SLF4J/Logback) and Node.js (Winston/Pino). Use for structured logging, log levels, and avoiding sensitive data exposure.

    Also in 3 projects that use this

  • SentrySkill

    github-issues

    Create, update, comment on, label, and inspect GitHub issues with concise, evidence-backed content. Use when users ask to open, edit, view, close, reopen, or triage GitHub issues — including tracking bugs, features, or tasks. Prefer this skill over generic repository tools for issue operations; do not use for pull requests, branches, pushes, or PR creation order questions.

    Also in 3 projects that use this

  • wrsmith108Skill

    docker

    Container-based development for isolated, reproducible environments. Use when running npm commands, installing packages, executing code, or managing project dependencies. Trigger phrases include "npm install", "run the build", "start the server", "install package", or any code execution request.

    Also in 3 projects that use this

  • SentrySkill

    ui-design

    Also in 3 projects that use this

The file

We found no rules to list in this file: it reads as prose or reference rather than instructions.

Files
skill.md

Authentication

Capability

Multi-method authentication with API keys, JWT, OAuth2, and OIDC support.

Package

@reaatech/mcp-gateway-auth — packages/auth/src/

Components

ComponentPurpose
api-key-validator.tsSHA-256 hashed API key validation
jwt-validator.tsRS256/ES256 JWT signature verification
oauth-introspection.tsRFC 7662 token introspection
oidc-validator.tsOIDC ID token validation
auth.middleware.tsExpress middleware orchestrating all methods
auth-context.tsAuthContext type, scope checking, token fingerprinting

Auth Methods

MethodValidationUse Case
API KeyHash comparison (SHA-256)Service-to-service
JWTSignature verification (jose)User authentication
OAuth2Token introspection (RFC 7662)Third-party apps
OIDCID token validationSSO integration

Error Handling

  • 401 Unauthorized — Invalid or missing credentials
  • 403 Forbidden — Valid credentials but insufficient permissions
  • AuthenticationError class with code and statusCode

Security Considerations

  • API keys stored as SHA-256 hashes, never plaintext
  • JWT signatures verified with proper crypto (RS256/ES256)
  • Token revocation checked via introspection
  • Key rotation supported through JWKS endpoints
  • Clock skew tolerance configurable (default: 30s)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.