auth-scheme-classification
/auth-scheme-classification
Ustala, jakim poświadczeniem każdy endpoint potwierdza tożsamość, zanim oceni się autoryzację w API.
- Autor
- Wsh7Ash ↗
- Repozytorium
- authzmap ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 28.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 2
Brak sygnałów. Repozytorium zmienione 28.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Ustala, jakim poświadczeniem każdy endpoint potwierdza tożsamość, zanim oceni się autoryzację w API.
Oryginalny opis (EN)
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
Jak działa
- Procedure
- Signals
- Patterns
- Pitfalls
- Done when
- References
Podgląd SKILL.md
--- 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/)
Wersje
W bazie nie ma innych skilli o nazwie auth-scheme-classification.
Migawka bazy z 13.11.2026 · wersja paczki b86eb004810a (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100n8n-credentials-and-security-official
Obsługuje uwierzytelnianie i sekrety w workflowach n8n: klucze API, tokeny, OAuth, bearer, basic auth i konfigurację węzłów z usługami zewnętrznymi. - 100api-token-and-bearer-classification
Klasyfikuje tokeny typu bearer według wystawcy, zakresu i ważności, żeby raport wskazał, co dana wartość realnie umożliwia. - 100twilio-security-api-auth
Pomaga wybrać i wdrożyć metodę uwierzytelniania Twilio: Auth Token, klucze API, OAuth2 client_credentials, Access Tokeny i dane testowe, przed użyciem API na produkcji. - 100local-twilio-security-api-auth-96509522
Dobiera i wdraża metodę uwierzytelniania Twilio: klucze API, tokeny OAuth2, tokeny dostępu i dane testowe. - 100secure-api-endpoint
Dodaje lub zmienia endpoint API ręcznie, z dwuwarstwową autoryzacją, walidacją wejścia i bezpiecznym zapisem. - 95memstack-security-api-audit
Sprawdza, czy trasy API mają uwierzytelnianie, autoryzację i walidację danych wejściowych.