internalsGet Pro

System Design · Module 03

Authentication, authorization and security

Lessons
12
Free
1
Reading
~4 h

Your progress

0 / 12 lessons done

Sign in to track

Lessons

  1. Authentication vs authorization: identity vs permissionsFreeA working login does not protect every endpoint. You need separate checks to prevent customers, sellers and staff from accessing the wrong data.14 min
  2. Password storage: hashing and saltingPassword storage determines what a stolen database reveals. You also need to keep deliberately expensive password checks from exhausting your login servers.15 min
  3. Sessions and cookies: keeping users logged inLogin bugs often appear after a restart, a second server or a logout. Understanding where session state lives helps you prevent unexpected sign-outs and continued access after logout.15 min
  4. JWT: stateless authentication tokensYou will meet JWTs in API middleware and identity integrations. Understanding their trust boundaries helps you avoid accepting forged tokens or promising logout behavior your system cannot provide.15 min
  5. OAuth 2.0 and OpenID Connect: third-party loginA third-party login button crosses several trust boundaries. You need to know what each returned value proves before your application creates a session.20 min
  6. Service authentication: API keys and mTLSBackground workers and backend applications need identities too. Their credentials must survive deployments without letting one compromised caller access every internal endpoint.18 min
  7. Access control models: RBAC and ABACMost business applications need more than a logged-in check. You need rules that remain understandable as teams, ownership and resource states change.18 min
  8. Encryption in transit and at restHTTPS and encrypted disks protect different boundaries. Engineers need to identify the gaps between them, especially when proxies, backups and database exports create new copies of sensitive data.18 min
  9. Secrets management: keeping credentials out of codeApplications need database passwords, API keys and signing keys. Managing their delivery and replacement prevents routine deployments and credential changes from becoming security incidents or outages.18 min
  10. Web security: SQL injection, XSS and CSRFA request can carry a valid session and still be dangerous. These attacks explain why database queries, page rendering and browser requests need separate security controls.19 min
  11. Multi-tenancy: isolating customer dataA valid login does not prove that someone may access a particular organization’s records. Tenant isolation makes that boundary explicit across requests, storage and background work.19 min
  12. Design: login and single sign-onLogin crosses browser, application, database and identity-provider boundaries. A design must preserve those boundaries during retries, deployments and account changes, not only during a successful sign-in.30 min

Practise with

Terms this module teaches 48

Open glossary

Access token

A credential an application presents to an API to exercise granted access.