Authentication and authorisation for analysts
Learn how an app proves who a user is and what each user may do, and how to write both as clear, testable requirements for an interface that other programs call.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: A hotel key card. At a hotel desk, you show your name and get a key card. The card does not say "this is Lily". It opens only the doors you paid for. It opens your room and the gym, but not the manager's office.
Software works the same way. Authentication means proving who you are. Authorisation means checking what that person may do. Two steps, two questions: "Who are you?" and then "Are you allowed?"
Sam is the for Daily List. The team is adding an application programming interface (), a doorway that lets other programs, such as the phone app, read and add tasks. Sam must write who may come through that doorway and what each visitor may touch.
Three words carry the lesson. An is the key card. An names a program instead of a person. A permission scope is the list of doors the card opens.
The picture has a limit. A hotel clerk sees your face. A server never sees a face. It sees only the card, so anyone holding a card can walk in.
PLAIN WORDS · 1 in this section
- authorisation
- deciding what a person is allowed to do
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the work.
THE REAL JOB The picture helps a newcomer keep two questions apart, who is calling and what they may do, because mixing them up causes most access mistakes.
- Sign in
- Receive a token
- Send it each time
- Server checks who
- Server checks what is allowed
HOW THE PICTURE MAPS
| In the picture | In the work |
|---|---|
| The desk clerk checking your name | Authentication, proving who is calling |
| The key card you receive | The access token |
| The list of doors the card opens | The permission scope and the role table |
| A card that opens only your room and the gym | Least privilege |
| Someone else picking up a dropped card | A leaked bearer token |
WHERE THIS PICTURE STOPS
- A clerk sees your face, but a server sees only the card.
- A hotel card is checked at the door, but software must check on every request.
- A lost card is easy to notice, but a copied token may go unseen.
HOOK
First who, then what; never one without the other.
REMEMBER IT THIS WAY
A sequence: the real steps, in order.
Ask who is calling, then what they may touch. The server asks both again on each request, because a card can be dropped and picked up.
| In the trick | What it stands for |
|---|---|
| Who | Authentication means proving who you are |
| What | Authorisation means checking what that person may do |
TELL A FRIEND
Authentication proves who is calling, while authorisation checks what they may do. A valid credential still needs resource, action and object permission checks; OAuth access tokens and identity assertions serve different purposes.
OFTEN MIXED UP WITH Security basics: log-in and permissions. That topic lists the main login ideas. This one goes deeper into tokens, keys, scopes and how to write the rules.
PRACTISE AND KEEP
Sources for this topic — 9 sources
- Market practice
Authentication cheat sheet (Open Worldwide Application Security Project cheat sheet series) ↗ — Open Worldwide Application Security Project · OWASP Authentication cheat sheet: authentication proves who is calling, and the cheat sheet lists what a sign-in must do (registry source; page not opened in this batch)
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
Authorization cheat sheet (Open Worldwide Application Security Project cheat sheet series) ↗ — Open Worldwide Application Security Project · OWASP Authorization cheat sheet: authorisation is checked on every request and follows least privilege (registry source; page not opened in this batch)
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 6749: The OAuth 2.0 Authorization Framework ↗ — Internet Engineering Task Force · RFC 6749, The OAuth 2.0 Authorization Framework: OAuth lets one program act for a user with limited access, using tokens in place of the password (registry source; page not opened in this batch)
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
The OAuth 2.0 Authorization Framework: Bearer Token Usage (Request for Comments 6750) ↗ — IETF · RFC 6750, Bearer Token Usage: a bearer token can be used by anyone who holds it, so it must be kept secret (registry source; page not opened in this batch)
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.
- Simplified educational illustration
Payments Signal editorial teaching models — Payments Signal
What this simplifies: Daily List, Sam, Leo, Lily and Tom are invented. This lesson names the ideas an analyst must capture. It is not a security design and not legal advice. A security specialist chooses the exact methods and settings.
Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.
- Market practiceBCP 240, January 2025
RFC 9700: Best Current Practice for OAuth 2.0 Security ↗ — IETF / OpenID Foundation · RFC 6750October2012; RFC 9700BCP240January2025; OpenID ConnectCore 1.0errata 2,15December2023. Opened bearer usage and sender-constrained§4.10.1; OIDCabstract explicitly identity layer. OAuth access token need not authenticate end-user, be self-contained/shortlived/bearer. Stolen bearer risk limited by actual permissions, flaws may widen harm.
Primary-source scope and access recorded in v12-ba-technical-audit-20261106.md. Advisory practice unless the cited instrument and its applicability establish a requirement.
V34 review, 6 November 2026: Actual RFC9700 January2025§2.1–2.2,§2.4 and§4.7 read for current OAuth security: public-client PKCE required, confidential recommended; CSRF binding conditions, redirect exception and modern grant guidance.
- Market practiceOpenID ConnectCore 1.0 incorporatingerrata set 2,15December2023
OpenID ConnectCore 1.0 incorporatingerrata set 2,15December2023 ↗ — OpenID Foundation · OpenID ConnectCore 1.0 incorporatingerrata set 2,15December2023. Opened definition of identity layer/authentication on topofOAuth2.0; access token is not an ID token.
Primary text read6November2026; see domain audit for scope and limits.
V34 review, 6 November 2026: Actual OpenID Connect Core1.0 incorporating errata set2,15December2023 abstract/introduction and§2 ID-token purpose read. OpenID Connect adds identity/authentication to OAuth; ID-token and access-token purposes differ.
- Market practiceRFC 6750 October2012:BearerTokenUsage
RFC 6750 October2012:BearerTokenUsage ↗ — IETF · RFC 6750 October2012:BearerTokenUsage. Opened abstract/bearerdefinition; possession authorises access without possessionproof; protect transport/storage.
Primary text read6November2026; see domain audit for scope and limits.
- Regulatory guidanceSP 800-63B-4, final July 2025
NIST SP 800-63B-4Digital Identity Guidelines: Authentication and Authenticator Management ↗ — National Institute of Standards and Technology (NIST) · NIST SP800-63B-4,July2025 final, §§2,3.2.3; HTML build26August2025. Opened scope,AAL factors,biometric requirements. Network digital-identity compliance scope, not universal law; password+PIN is one factor type; biometric only with physical authenticator in this guideline.Final primary authentication chapter operative sections read on 6 November 2026. US federal digital-identity guidance; no universal bank-payment obligation inferred. Voice comparison is prohibited in this standard; face PAD and non-biometric alternative requirements are scoped accordingly.
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.