Skip to content
Skills Library
Security · Analysis

auth-scheme-classification

/auth-scheme-classification

Classify exactly how each endpoint proves identity, because authorization testing is meaningless until you know what credential the check consumes. Use when an API mixes cookies, bearer tokens, API keys and signed requests across different route groups

Repository
authzmap ↗
Licence
MIT
Last repository change
28.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
2
Deprecation

No signals detected. Repository changed on 28.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Classify exactly how each endpoint proves identity, because authorization testing is meaningless until you know what credential the check consumes. Use when an API mixes cookies, bearer tokens, API keys and signed requests across different route groups

Original author description

Classify exactly how each endpoint proves identity, because authorization testing is meaningless until you know what credential the check consumes. Use when an API mixes cookies, bearer tokens, API keys and signed requests across different route groups

How it works

  1. Procedure
  2. Signals
  3. Patterns
  4. Pitfalls
  5. Done when
  6. References
Original SKILL.md headings · 67 lines, 418 words
SKILL.md preview
---
name: auth-scheme-classification
description: "Classify exactly how each endpoint proves identity, because authorization testing is meaningless until you know what credential the check consumes. Use when an API mixes cookies, bearer tokens, API keys and signed requests across different route groups"
pack: authzmap
version: 1.0.0
category: api-security
tags: [authentication, credentials, classification]
---

# Authentication Scheme Classification

> Classify exactly how each endpoint proves identity, because authorization testing is meaningless until you know what credential the check consumes

**Use when:** an API mixes cookies, bearer tokens, API keys and signed requests across different route groups

**Avoid when:** one single credential type is used everywhere and already documented in the platform guide

## Procedure

1. Identify the credential accepted by each route group: cookie, authorization header, API key header, query parameter or mutual TLS.
2. Determine whether the credential identifies a user, a tenant or a machine, since each implies a different authorization question.
3. Check where enforcement happens for each group: edge gateway, service mesh, framework middleware or handler code.
4. Note which endpoints accept multiple credential types, because dual acceptance is a common source of inconsistent checks.
5. Record transport requirements such as secure cookie flags, token binding and clock tolerance for signed requests.
6. Feed the classification into your matrix so expected status codes reflect the credential each route actually consumes.

## Signals

- One route group accepts both a cookie and a bearer token, which usually means two independent check paths exist.
- An API key identifies a tenant rather than a user, so per-user authorization may be missing entirely.
- A query-string credential appears, which tends to leak into logs, referrers and shared links.
- Enforcement differs between the gateway and the handler, and only one of the two knows about your new role.

## Patterns

**1. Scheme table**

```text
route group      | credential        | identifies | enforced-at
/api/session      | cookie            | user       | gateway
/api/v2/*         | bearer token      | user       | handler
/internal/*       | service api key   | tenant     | gateway
```

**2. Dual acceptance**

```text
/api/report accepts Cookie AND Authorization: Bearer
-> test both paths separately, results may diverge
```

**3. Expected status**

```text
cookie missing -> 401
bearer missing -> 401
wrong tenant key -> 403
```

## Pitfalls

- Testing authorization with a credential the route does not consume, which yields misleading 401s and no real signal.
- Assuming gateway enforcement covers handler logic, when internal routes frequently rely on the gateway alone.
- Overlooking query-string credentials that never appear in header-focused test tooling.

## Done when

- Each route group has a credential type, an identity scope and an enforcement layer recorded.
- Dual-acceptance routes are listed explicitly so both paths get tested rather than one silently.

## References

- [RFC 6750 - bearer token usage](https://www.rfc-editor.org/rfc/rfc6750)
- [OWASP API Security Top 10](https://owasp.org/www-project-api-security/)

Versions

The database has no other skills named auth-scheme-classification.

Database snapshot: 13.11.2026 · package version b86eb004810a (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100n8n-credentials-and-security-official
    Use when handling any auth, API keys, tokens, OAuth, bearer tokens, basic auth, or secret values in n8n workflows. Triggers on "API key", "token", "bearer", "OAuth", "secret", "auth", "credentials", "Authorization header", "x-api-key", or any node configuration that mentions a third-party service.
  • 100api-token-and-bearer-classification
    Classify bearer-style tokens by issuer, scope and expiry, so the report can say what a reader of the file could actually do with the value. Use when a candidate matches a published token format or sits inside an authorization header construction
  • 100twilio-security-api-auth
    Choose the right Twilio authentication method and implement it correctly. Covers Auth Token (testing only), API Keys (production standard), OAuth2 client_credentials (time-limited bearer tokens), Access Tokens (client-side SDKs), and test credentials. Use this skill before…
  • 100local-twilio-security-api-auth-96509522
    Choose the right Twilio authentication method and implement it correctly. Covers Auth Token (testing only), API Keys (production standard), OAuth2 client_credentials (time-limited bearer tokens), Access Tokens (client-side SDKs), and test credentials. Use this skill before…
  • 100secure-api-endpoint
    Use when adding or modifying an API endpoint by hand (route, handler, serializer, validation, authorization policy). Applies the two-layer auth model, public-identifier-only exposure, tenant-safe persistence and the input, query, upload and log checklist.
  • 95memstack-security-api-audit
    Use this skill when the user says 'audit API', 'check API security', 'API routes security', 'endpoint audit', 'check my routes', or needs to verify API route protection. Reviews API endpoints for authentication, authorization, and input validation gaps. Do NOT use for frontend…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.