Back to Blog // authorization

Implementing Context-Aware Policies

A practical look at how Veripass evaluates access from context — organization, role, application, and risk — instead of static role checks, and how to express those policies cleanly.

November 4, 2024 · Veripass
Implementing Context-Aware Policies

Static role checks answer one question: does this user have this role? That is rarely the question that matters. The question that matters is whether this user, in this organization, using this application, under these conditions, should be allowed to do the thing they are asking to do. Context-aware policies are how Veripass closes that gap.

From roles to layered authorization

Veripass does not treat a role as the whole authorization story. It composes access from four layers — claims, capabilities, roles, and access profiles — so permissions can be built up rather than hard-coded per application.

  • Claims are the granular facts and assertions attached to an identity.
  • Capabilities are the discrete things a subject can do.
  • Roles bundle capabilities into reusable, nameable units.
  • Access profiles assemble roles and capabilities into a complete posture for a subject in an organization.

Because these layers are composable, the same capability can appear in many roles, and the same role can be assigned across organizations without redefining it. That keeps the model maintainable as the number of applications and tenants grows.

Adding context to the decision

The layered model decides what a subject can do in principle. Context-aware policy decides whether they can do it right now. A policy evaluation in Veripass can take into account the organization the request belongs to, the role under which it is made, the application receiving it, and the conditions surrounding it.

This is what separates a policy engine from a permission table. A user might hold a capability and still be challenged or denied because the context raised the risk. Concretely, that means access can be conditioned on signals available at request time, and the outcome can be allow, deny, or — importantly — escalate.

Step-up as a policy outcome

The most useful thing context-aware policy gives you is a third answer beyond allow and deny: prove it again. When a policy determines that the risk of a request is higher than the current session warrants, Veripass can require a step-up before proceeding.

That step-up can be adaptive MFA — a one-time code over email or a phone-based TOTP — or, for higher-assurance moments, biometric verification using face match, ID document, or fingerprint. The session is allowed to continue only once the additional proof is satisfied. This means sensitive operations carry their own verification gate instead of relying on whatever assurance happened to be present at login.

Keeping policies clean

The discipline that keeps context-aware authorization from becoming unmanageable is the same discipline that keeps any policy system healthy:

  • Express permissions through capabilities and roles, not per-endpoint special cases.
  • Reserve context conditions for genuine risk signals, not for things a role should already encode.
  • Let step-up handle the high-risk minority of requests rather than degrading the experience for everyone.
  • Make sure every decision — allow, deny, or escalate — is recorded in the immutable audit trail so it can be reconstructed later.

Done well, context-aware policy gives you authorization that is both stricter and lighter: stricter because it accounts for risk, lighter because the common, low-risk path stays frictionless while the platform concentrates its scrutiny where it belongs.

Keep reading

Architecture Overview: Federating Identities at Scale

Architecture Overview: Federating Identities at Scale

How Veripass federates identities across many applications and organizations from a single multi-tenant control plane, without forcing every team onto one directory.

Audit Trails That Survive an Audit

Audit Trails That Survive an Audit

An audit trail is only useful if it holds up when someone actually audits it. Here is what makes Veripass audit records immutable, attributable, and reconstructable.

Hybrid and On-Premise Identity Without Lock-In

Hybrid and On-Premise Identity Without Lock-In

Not every workload belongs in the cloud. Here is how Veripass runs the same federation, policy, and audit model across cloud, on-premise, and hybrid deployments.