Overview

12 Authorization context

Dynamic authorization depends on more than policies; it depends on trustworthy context. The chapter explains that every decision hinges on three linked choices: which signals matter, how those signals are delivered, and how fresh they must be when evaluated. Trust signals can describe identity, device posture, risk, location, session assurance, or operational status, and they become useful only when a policy engine can assemble them into a coherent view of who is acting, what they want, and whether the surrounding conditions are acceptable.

Using ACME as the example, the chapter shows that different systems require different mixes of token-based claims, API lookups, and event-driven updates. Customer workflows can often rely on longer-lived token data plus occasional database checks, while employee and engineering workflows need richer context such as HR status, finance limits, device trust, and on-call status. The Policy Information Point is therefore not a single box but an ecosystem of integrations that collects, verifies, and normalizes signals before the policy engine evaluates them.

The chapter also emphasizes that freshness, security, and normalization are essential to making authorization reliable at scale. Cached data and short-lived tokens improve performance, but only if revocation, updates, and provenance are handled carefully. ACME’s move to an enterprise PIP and shared normalization layer solved inconsistent schemas, reduced duplicated integration work, limited unnecessary data exposure, and made policy behavior consistent across platforms. The result is a reusable authorization context layer that turns raw signals into dependable input for enforcement.

Policy Information Points (PIPs): abstract vs. reality. Left: the abstract authorization architecture shows a single PIP feeding data to the Policy Decision Point (PDP). Right: in practice, the PIP represents many sources—including HR, Finance, authentication systems, device posture clients, external systems, and so on—all connected through APIs, tokens, and caches to deliver the trust signals that policies need.
 Inside the Policy Decision Point (PDP). The PDP includes more than just a policy engine. At ACME, a signal-processing layer collects data from various systems (HR, Finance, the Customer Authentication Service, device posture clients, and external services like PagerDuty) and organizes it into well-formed entities for evaluation by the Cedar engine. The PDP then provides a decision to the PEP after policies are assessed against the collected context.
ACME’s normalization architecture. Before normalization (top), each PDP integrated directly with HR, Finance, authentication, and operational systems (e.g., PagerDuty, ticketing), each with custom schemas and caches. After normalization (bottom), a shared signal-normalization layer aggregates and standardizes those feeds, delivering consistent context to all PDPs. Device posture arrives separately as a signed token attached to each access request and is verified alongside the normalized data. This hybrid model keeps tokens minimal (identifier plus scopes) while preserving rich, consistent context for authorization decisions.

Summary

  • Policies are only as good as their signals; the three design dimensions are which signals are used, how they are delivered, and how fresh they are.
  • Real-world PIPs use signals from multiple sources. PDPs feature lightweight processing before the policy engine.
  • Token, query, and hybrid delivery each involve tradeoffs among latency, availability, and assurance.
  • Freshness is a first-class design choice. Revocation and event-driven signal delivery reduce exposure windows.
  • Transmission essentials: provenance, signatures, and scoped sharing foster confidence in authenticity, integrity, and confidentiality.
  • Normalization (enterprise PIP plus shared schema) produces consistent decisions, safer transmission, quicker adoption, and reduced engineering costs.
  • ACME’s final architecture uses a hybrid model: minimal tokens with device-based attestations plus normalized background context.

FAQ

What is authorization context in Chapter 12?Authorization context is the set of trustworthy signals a policy uses to make a real decision, such as identity, device posture, account status, risk score, or on-call status. Policies alone are not enough; they need current context to turn abstract rules into concrete allow/deny outcomes.
What are the three dimensions of the authorization context choice space?The three dimensions are: which signals matter, how those signals are delivered, and how fresh they need to be. Each use case lands at a different point in this space based on its risk, latency, and assurance needs.
What does a Policy Information Point (PIP) do?A PIP collects, verifies, and normalizes signals from many sources so the PDP can evaluate policy against trustworthy context. In practice, it may pull from HR, Finance, device posture clients, authentication systems, external services, or event streams.
What are entities in the PDP?Entities are structured representations of principals and resources that the PDP evaluates during authorization. They include attributes and relationships, such as an employee’s status or a document’s owner, so policy rules can be applied consistently.
Why is normalization of authorization context important?Normalization makes different source systems use the same vocabulary and schema, so policies behave consistently across applications. Without it, one system might say “active” while another says “enabled,” causing the same policy to produce different results.
What are the main ways signals are delivered?Signals are commonly delivered in three ways: embedded in tokens, fetched through queries/APIs, or delivered through hybrid approaches that combine both. Tokens are fast but can become stale, queries are fresh but add latency, and hybrids balance both tradeoffs.
What types of trust signals are commonly used?Common trust signals include device posture, risk score, geolocation/network context, session assurance, and operational status. Systems also use identity, role, employment status, account status, and entitlements depending on the use case.
How does freshness affect authorization decisions?Freshness determines whether the data used for a policy decision still reflects reality. Stale signals can authorize actions after the underlying facts have changed, so systems must balance accuracy, latency, and system load.
What role do caching and revocation play in context management?Caching improves performance by reusing signal values, but it can introduce staleness if not managed carefully. Revocation and update mechanisms reduce the exposure window by propagating changes quickly, rather than waiting for cache expiration.
How does ACME use authorization context differently across its platforms?ACME uses longer-lived token claims for customer collaboration, richer internal signals for employee access, and highly fresh real-time signals for engineering deployments. This reflects different risk levels: low-risk collaboration can tolerate older context, while production deployment requires the freshest possible data.

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Authorization in Action ebook for free
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Authorization in Action ebook for free
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Authorization in Action ebook for free