← Back to overview
EXPLORE THE KNOWLEDGE BASE

Design patterns

Explore reusable approaches to access control, federation, and application integration.

10 articlesStart with the foundations
01

RBAC, ABAC, and relationships

Compare three ways to express access policy and understand how they can work together.

2 min
02

Access control models compared

DAC, MAC, ACLs, capabilities, RBAC, ABAC, ReBAC, PBAC, and NGAC — characteristics, advantages, drawbacks, use cases, and implementations.

5 min
03

Policy engines and policy as code

Separate authorization decisions from application code with decision points, enforcement points, and versioned policy.

3 min
04

Authorization in APIs and microservices

Enforce object-level and function-level access, propagate identity safely between services, and isolate tenants.

3 min
05

API gateway security policies

Authentication, authorization, traffic, and threat-protection policies at the API edge, with examples from common gateways.

3 min
06

Backend for frontend (BFF) for browser apps

Keep tokens out of the browser with a BFF, and compare it with token-mediating backends and browser-based OAuth clients.

3 min
07

Native and mobile apps

Apply RFC 8252 to iOS, Android, and desktop apps, store tokens safely, and decide when a mobile BFF helps.

3 min
08

Cookies, session tokens, and web sessions

Design web sessions with secure cookies, server-side or stateless session tokens, timeouts, and protection against fixation and CSRF.

4 min
09

Federation and provisioning

Separate the runtime trust relationship from the administrative account lifecycle.

2 min
10

Just-in-time access and zero standing privilege

Grant elevated access only when needed, for a limited time, and remove it automatically.

3 min

Type to search the entire handbook.