API log-in and permissions
A service must know who is calling and what they may do. Try no pass, a bad pass, an old pass and another person's pass, then the request limit.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a keycard system. A card is a credential presented to a reader; holding it is not independent proof of a human identity. A separate list says which doors it opens. A good building checks both, and it also counts how often someone tries a door.
Daily List is a to-do list app. Its application programming interface () lets the phone app read and change tasks. Tom, the tester, uses only the Daily List test site, with the owner's permission, to see how the API treats callers.
Authentication is proving who you are. In an API the proof is usually a token, a coded pass sent with a request to show who is calling. A is a cap on how many requests are allowed in a period. It is like a guard who lets only so many people through a door each minute.
Tom calls the API in four ways. With no token. With a broken token. With a good token for himself. With a good token for another user. He compares each outcome with the stated authentication and action-specific policy; two invalid credentials may correctly receive the same refusal.
The picture has a limit. A keycard is checked at a door. The protected endpoint checks the presented credential and current policy for each request; the API may also maintain session or revocation state. Not every API is stateless.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
PLAIN WORDS · 5 in this section
- keycard
- a plastic card that opens doors at a reader
- credential
- proof of who you are or what you may do
- endpoint
- the final point, or the system sending or receiving
- revocation
- the act of officially withdrawing something given earlier
- stateless
- keeping no memory of earlier requests
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB Checking who is calling and what they may do, on every request.
- Who is calling
- May they do it
- How often
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| Keycard | Token |
| Card reader | Authentication check |
| List of doors the card opens | Permissions |
| Guard counting entries | Rate limit |
WHERE THIS PICTURE STOPS
- A card is checked at a door. A token is checked on every request.
- A building has doors in one place. An application programming interface (API) has many addresses.
- The card picture omits other credentials, session/revocation state and action-specific policy context.
HOOK
Who, may they, how often.
REMEMBER IT THIS WAY
A contrast: two neighbours told apart by one test.
Authentication asks who you are. Permissions ask which doors your card opens.
| In the trick | What it stands for |
|---|---|
| Authentication | checking the presented credential claim |
| Permissions | which doors the card opens |
TELL A FRIEND
A keycard is a credential claim, a list determines allowed doors, and a guard applies the actual counting policy. Possession is not independent human identity proof, and an can keep session or revocation state.
OFTEN MIXED UP WITH Designing API tests. The application programming interface () design lesson says what to test. This lesson tests who may call and how often.
PRACTISE AND KEEP
Sources for this topic — 21 sources
- Market practice
401 Unauthorized (Mozilla developer docs, HyperText Transfer Protocol reference) ↗ — Mozilla (developer documentation) · 401 means the request lacks valid credentials and usually carries a WWW-Authenticate header (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
403 Forbidden (Mozilla developer docs, HyperText Transfer Protocol reference) ↗ — Mozilla (developer documentation) · 403 means the server understood the request and refuses it, so new credentials do not help; a server may send 404 to hide that the thing exists (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
The OAuth 2.0 Authorization Framework: Bearer Token Usage (Request for Comments 6750) ↗ — IETF · A bearer token goes in the Authorization header with the word Bearer; whoever holds it can use it, so it must be protected (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Request for Comments (RFC) 6750, October 2012. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
V34 review, 6 November 2026: Actual§1.2 bearer meaning,§1.3 overview and§2.1 Authorization request header read. Bearer possession does not require a separate proof-of-possession key; other token designs may bind the sender.
- Market practice
429 Too Many Requests (Mozilla developer docs, HyperText Transfer Protocol reference) ↗ — Mozilla (developer documentation) · 429 means too many requests in a given time; a Retry-After header may say how long to wait (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Broken Object Level Authorization, the first risk in the 2023 Open Worldwide Application Security Project API Security Top 10 ↗ — Open Worldwide Application Security Project (OWASP) · Changing an object identifier in a request to reach another user's data is the first risk in the 2023 OWASP API Security Top 10 (registry entry staged in batch 13)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: 2023 edition. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
V34 review, 6 November 2026: Read actual API1:2023 body6November2026: definition, examples and prevention. Use its authorisation term to resolve the GraphQL sheet typo; do not equate every access to another owner's intentionally shared object with a vulnerability.
- Market practice
Authentication cheat sheet (Open Worldwide Application Security Project cheat sheet series) ↗ — Open Worldwide Application Security Project · Authentication guidance covers multi-factor sign-in and limiting repeated guesses (registry entry staged by business analysis batch 14)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
V34 review, 6 November 2026: actual automated-attack/throttling/lockout section read; distinguish threshold, observation window and duration, and consider lockout denial-of-service tradeoffs.
- Market practice
Additional HyperText Transfer Protocol (HTTP) status codes (Request for Comments 6585) ↗ — IETF · QA Skills 'testing API Retry-After header backoff' (search excerpt, page not opened). RFC 6585 and MDN 429 are already in the registry.
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
RFC6585, April2012, Standards Track; complete section4/429 read 8 November2026. Rate-limit response MAY contain Retry-After; user identity and counting policy are not fixed. Not an all-HTTP-error retry rule.
- Market practice
Testing API Retry-After header and backoff (QA Skills) ↗ — QA Skills · QA Skills 'testing API Retry-After header backoff' (search excerpt, page not opened). RFC 6585 and MDN 429 are already in the registry.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Bearer token in header vs API key in query parameter (MojoAuth) ↗ — MojoAuth · MojoAuth 'Bearer token vs API key' and Mixed Analytics API-authentication pages (search excerpts, pages not opened). Official page checked 2026-10-19 by WebSearch: search excerpt, page not opened.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
API authentication explained (Mixed Analytics) ↗ — Mixed Analytics · MojoAuth 'Bearer token vs API key' and Mixed Analytics API-authentication pages (search excerpts, pages not opened). Official page checked 2026-10-19 by WebSearch: search excerpt, page not opened.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
RFC 7617: The Basic HTTP Authentication Scheme ↗ — IETF (RFC Editor) · MojoAuth 'Bearer token vs API key' and Mixed Analytics API-authentication pages (search excerpts, pages not opened). Official page checked 2026-10-19 by WebSearch: search excerpt, page not opened.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
RFC 7617: The 'Basic' HTTP Authentication Scheme ↗ — IETF · Official Basic scheme definition (search excerpt, page not opened)
Found through a web search; the page was not opened (pending verification: official page not opened and not searched (web-search limit reached before the check); URL is the publisher's known address). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Official requirement
RFC 9110 — HTTP Semantics ↗ — IETF · RFC9110/STD97,June2022:9.1,9.2.1–9.2.2,13.1.2,15.5.2,15.5.4,15.5.6 and15.5.9; safe/idempotent intended effects,401challenge/403refusal,405Allow/501,304conditionalGET/HEAD versus412,408incomplete request (relevant primary passages opened6November2026).
Internet Standard, June 2022, obsoleting RFC 7230 through 7235.
Cited for method semantics only. "Idempotent" in RFC 9110 is a property of a method: that repeating the request has the same intended effect on the origin server. It is not the same claim as "this payment cannot be duplicated", which is a scheme-level guarantee with its own documents.
Read through a mirror, because the publisher's own domain could not be fetched (a reachability gap, not a statement about the publisher). A 403 there is a policy refusal and says nothing about whether the document exists or is reachable elsewhere.
Anyone on an unrestricted network should open the canonical URL above and confirm the section and page numbers cited against it. Every claim drawn from this entry is written so that it can be checked against a numbered page.
Read in full from the HTTP Working Group's own publication mirror at httpwg.github.io.
- Market practice
RFC 9110 — HTTP Semantics ↗ — IETF · Fresh complete RFC9110/STD97,June2022§10.2.3RetryAfter2310–2334 and§§11.3–11.4challenge/credentials2379–2403 read7November2026; prior exact15.5.2/15.5.4reading retained. Date/seconds retry advice is not quota reset;401valid-credential/challenge and403refusal do not reduce to unknown/known caller.
Internet Standard, June 2022, obsoleting RFC 7230 through 7235.
Cited for method semantics only. "Idempotent" in RFC 9110 is a property of a method: that repeating the request has the same intended effect on the origin server. It is not the same claim as "this payment cannot be duplicated", which is a scheme-level guarantee with its own documents.
Read through a mirror, because the publisher's own domain could not be fetched (a reachability gap, not a statement about the publisher). A 403 there is a policy refusal and says nothing about whether the document exists or is reachable elsewhere.
Anyone on an unrestricted network should open the canonical URL above and confirm the section and page numbers cited against it. Every claim drawn from this entry is written so that it can be checked against a numbered page.
Read in full from the HTTP Working Group's own publication mirror at httpwg.github.io.
- Market practice
The OAuth 2.0 Authorization Framework: Bearer Token Usage (Request for Comments 6750) ↗ — IETF · RFC6750,October2012complete§§1.2–1.3,2.1–2.3freshly read7November2026; bearer possession, grant scope/duration, authorization header and URL exposure. Not every token or independent human identity; historical TLSdeployment text not current baseline. No OAuth/provider runtime or original figure copied.
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Request for Comments (RFC) 6750, October 2012. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
V34 review, 6 November 2026: Actual§1.2 bearer meaning,§1.3 overview and§2.1 Authorization request header read. Bearer possession does not require a separate proof-of-possession key; other token designs may bind the sender.
- Market practice
RFC 6749: The OAuth 2.0 Authorization Framework ↗ — Internet Engineering Task Force · RFC6749,October2012complete§1.4and1.3.4read7November2026: access-token abstraction may reference stored grant or self-contain verifiable data; noninteractive client credentials. No wholeRFC/current recommended legacy grant-flow deployment certified.
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Request for Comments 6749, October 2012. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
V34 review, 6 November 2026: Actual§1.1 roles,§2.3 client authentication,§3.3 scope and§4.1 Figure3/code exchange read. Client credentials can use configured passwords or key-based methods. Current security updates are identified separately.
- Market practice
RFC 7617: The Basic HTTP Authentication Scheme ↗ — IETF (RFC Editor) · RFC7617,September2015complete§2with2.1/2.2and all examples145–371, plus security paragraphs396–468 read7November2026. Basic scheme plus Base64user-pass octets; ASCII training example only, no universal defaultUTF8 assumption or real credential.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Additional HyperText Transfer Protocol (HTTP) status codes (Request for Comments 6585) ↗ — IETF · RFC6585,April2012complete introduction69–78,§4including example/counting/cache notes122–155 and§7.2optional429/drop-connection283–291 read7November2026. Scope and response policy are not universal; RetryAfter optional.
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
RFC6585, April2012, Standards Track; complete section4/429 read 8 November2026. Rate-limit response MAY contain Retry-After; user identity and counting policy are not fixed. Not an all-HTTP-error retry rule.
- Market practiceOWASP API Security Top 10 (2023 edition)
API1:2023 Broken Object Level Authorization ↗ — OWASP · Fresh complete OWASPAPI1:2023operative99–143 incl3scenarios/code/prevention and references/footer read7November2026; officialredirectapi-security.owasp.org, renderednormalwebnotrawbytes. Action/object policy and private/unshared/delegation context, not owner-ID inequality alone.
Complete official repository Markdown was actually read after publisher HTML redirect403. The printed scenario3 GraphQL/JSON is malformed and is not copied as executable code. Guidance is not legislation or application-specific policy. No source figures/pixels/reuse eligibility certified.
- Market practice
Authenticators ↗ — pages.nist.gov · Fresh public800-63B4-family HTML complete§§3.1.4–3.1.5single/multifactorOTPunits361–403 and chapter verifier counterpart read7November2026. Once-while-valid acceptance and a separate defined lifetime; guideline scope, not every API legislation/provider or OTP execution.
Primary source opened and operative text inspected on 6 November 2026. Scope: SP 800-63B current sections 3.1.3–3.1.5. Current live Playwright documentation reflects 1.65 where stated; explicit older examples retain their version. Source inspection is not an execution or compatibility-test claim. See the completed v45 Playwright analysis for source discrepancies and exact reading boundaries.
- Market practice
reCAPTCHA FAQ: automated tests (v2 and v3) ↗ — Google for Developers · Actual complete Google reCAPTCHAFAQautomated-testing unit99–111read7November2026: v2published test keys, v3separate testing key/traffic-sensitive scores, production warning. No keys copied, Enterprise/all-provider details, quota/migration claims or CAPTCHA execution.
Actual normal-web primary unit read; other FAQ quotas/migration/page-summary claims unselected. No key values copied, provider execution, image pixels or reuse-rights certification.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.