TOPIC 21/6214 MINNOT STARTED

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.

  1. Who is calling
  2. May they do it
  3. How often
Three questions

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
KeycardToken
Card readerAuthentication check
List of doors the card opensPermissions
Guard counting entriesRate 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.

What each part of the trick stands for
In the trickWhat it stands for
Authenticationchecking the presented credential claim
Permissionswhich 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
  1. 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)

    Per the search excerpt, 401 means the request lacks valid credentials, and the reply usually carries a WWW-Authenticate header. It means unauthenticated. · Checked 2026-10-18

    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.

  2. 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)

    Per the search excerpt, 403 means the server understood the request and refuses it, so new credentials do not help. A server may send 404 instead to hide that the thing exists. · Checked 2026-10-18

    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.

  3. 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)

    Per the search excerpt, a Proposed Standard from October 2012. A bearer token goes in the Authorization header with the word Bearer, whoever holds it can use it, and so it must be protected. · Checked 2026-10-18

    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.

  4. 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)

    Per the search excerpt, 429 means too many requests in a given time (rate limiting); a Retry-After header may say how long to wait. · Checked 2026-10-18

    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.

  5. 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)

    API1:2023 Broken Object Level Authorization: permission for the requested action on the requested object. Identifier format, authentication and matching a session user ID alone do not establish that permission. · Checked 2026-10-18

    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.

  6. 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)

    Guidance page. Defines authentication as verifying that someone or something is who or what it claims to be. Search excerpt only. · Checked 2026-10-18

    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.

  7. 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.

    Per the search excerpt, defines 429 Too Many Requests for rate limiting; a response may include a Retry-After header; the response must not be stored by a cache. · Checked 2026-11-08

    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.

  8. 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.

    Retry-After is optional; clients need a backoff fallback. · Checked 2026-10-19

    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.

  9. 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.

    Query-string keys can be logged; headers are safer. · Checked 2026-10-19

    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.

  10. 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.

    Basic auth is base64 encoding, not encryption. · Checked 2026-10-19

    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.

  11. 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.

    Basic sends user-id and password Base64-encoded; not secure unless used with an external secure system such as TLS. · Checked 2026-10-19

    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.

  12. Market practice

    RFC 7617: The 'Basic' HTTP Authentication Scheme ↗ — IETF · Official Basic scheme definition (search excerpt, page not opened)

    Official Basic scheme definition. · Checked 2026-10-19

    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.

  13. 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).

    The definition of what an idempotent request method is, alongside safe methods, the status-code semantics an API contract is built on, and conditional requests.

    Used here for the systems-design questions a Payments Software Engineer and a Payments Solution Architect are asked, where the question turns on HTTP's own guarantees rather than on a scheme's rules. · Checked 2026-08-18

    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.

  14. 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.

    The definition of what an idempotent request method is, alongside safe methods, the status-code semantics an API contract is built on, and conditional requests.

    Used here for the systems-design questions a Payments Software Engineer and a Payments Solution Architect are asked, where the question turns on HTTP's own guarantees rather than on a scheme's rules. · Checked 2026-08-18

    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.

  15. 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.

    Per the search excerpt, a Proposed Standard from October 2012. A bearer token goes in the Authorization header with the word Bearer, whoever holds it can use it, and so it must be protected. · Checked 2026-10-18

    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.

  16. 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.

    Defines four roles (resource owner, client, authorization server, resource server) and the scope parameter, and says a client should ask for the least scope it needs. · Checked 2026-10-18

    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.

  17. 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.

    Basic sends user-id and password Base64-encoded; not secure unless used with an external secure system such as TLS. · Checked 2026-10-19

    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.

  18. 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.

    Per the search excerpt, defines 429 Too Many Requests for rate limiting; a response may include a Retry-After header; the response must not be stored by a cache. · Checked 2026-11-08

    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.

  19. 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 actually read7November2026 after publisher HTML redirect403: threat/impact table, vulnerability,all3scenarios,prevention and references. Guidance, not legislation or application-specific policy. · Checked 2026-11-07

    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.

  20. 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.

    SP 800-63B current sections 3.1.3–3.1.5 · Checked 2026-11-06

    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.

  21. 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.

    Complete selected automated-testing FAQunit99–111read7November2026. Version-specific v2test keys and v3separate testing key/score limitations; not Enterprise/all-provider testing or general disable controls. · Checked 2026-11-07

    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.