authentication-patterns SKILL.md skillA
authentication-patterns from athola/claude-night-market is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add athola/claude-night-market/authentication-patterns@git:20260902.4a35d69Pins git:20260902.4a35d69 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- athola/claude-night-market
- Path
plugins/leyline/skills/authentication-patterns/SKILL.md- Versions recorded
- 5
- Latest version
- git:20260902.4a35d69, committed Sep 2, 2026
- First version recorded
- May 7, 2026
- Size
- 4,727 bytes
- Repository stars
- 342
- License
- MIT
Provides auth patterns for API keys, OAuth, and token management. Use when implementing or reviewing service authentication and credential handling.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Authentication Patterns
## Overview
Common authentication patterns for integrating with external services. Provides consistent approaches to credential management, verification, and error handling.
## When To Use
- Integrating with external APIs
- Need credential verification
- Managing multiple auth methods
- Handling auth failures gracefully
## When NOT To Use
- Project doesn't use the leyline infrastructure patterns
- Simple scripts without service architecture needs
## Authentication Methods
| Method | Best For | Environment Variable |
|--------|----------|---------------------|
| API Key | Simple integrations | `{SERVICE}_API_KEY` |
| OAuth | User-authenticated | Browser-based flow |
| Token | Session-based | `{SERVICE}_TOKEN` |
| None | Public APIs | N/A |
## Quick Start
### Verify Authentication
```python
from leyline.auth import verify_auth, AuthMethod
# API Key verification
status = verify_auth(
service="gemini", method=AuthMethod.API_KEY, env_var="GEMINI_API_KEY"
)
if not status.authenticated:
print(f"Auth failed: {status.message}")
print(f"Action: {status.suggested_action}")
```
…Read the whole file at its exact version.
How to install
mdr add athola/claude-night-market/authentication-patterns@sha256:47e86c253344a6d2The line at the top of this page pins the label git:20260902.4a35d69, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_izz2wpnvungcu4fd)
5 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between May 7, 2026 and Sep 2, 2026, about one every 30 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260902.4a35d69 latest | 2026-09-02 | 4a35d69 | 4,727 B | A | view · diff |
| git:20260813.0bee82e | 2026-08-13 | 0bee82e | 5,296 B | A | view · diff |
| git:20260521.6f5c7d9 | 2026-05-21 | 6f5c7d9 | 5,333 B | A | view · diff |
| git:20260508.c09f147 | 2026-05-08 | c09f147 | 5,259 B | A | view · diff |
| v1.9.5 | 2026-05-07 | 29eb49d | 5,274 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (4727 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
athola/claude-night-market · 342 stars · license MIT · pushed 2026-10-16 · branch master
API
GET https://markdownregistry.com/api/v1/artifacts/art_izz2wpnvungcu4fd GET https://markdownregistry.com/api/v1/resolve?ref=athola/claude-night-market/authentication-patterns GET https://markdownregistry.com/api/v1/blob/47e86c253344a6d296e600b31ec7a509b5fccdcb97fd31360fc0222435724ebb
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from athola/claude-night-market
Every file in athola/claude-night-market