Skip to content
Dashboard

What is an identity-aware proxy and how does it work?

Content Engineer

An identity-aware proxy is a reverse proxy that authenticates and authorizes each request before forwarding it to the application behind it. It decides based on who the user is and the context of the request, such as group membership, device, or location, then passes the verified identity to the application, often as a signed token.

Consider an internal dashboard used by employees and outside contractors. When the dashboard sits behind an identity-aware proxy, every visitor signs in through the company’s identity provider before any request reaches the dashboard. The proxy can admit employees on managed devices, limit contractors only to the apps assigned to their group, and reserve the /admin path for one privileged group.

Copy link to headingHow does an identity-aware proxy work?

Each request passes through the same sequence, which Pomerium sums up as authenticate, authorize, and proxy. The proxy first looks for a valid session, usually a cookie. Google Cloud IAP checks whether the user is signed in and stores a token in a browser cookie after sign-in. Without a valid session, the proxy redirects the browser to the identity provider, which can use OpenID Connect (OIDC) or SAML depending on the product. OAuth2 Proxy, for example, sends users to an OAuth 2.0 or OIDC provider.

Once the user has signed in, the proxy checks the identity against an access policy that combines identity attributes, such as identity provider groups, with context signals. Cloudflare Access can match on an OIDC claim, a SAML group, country, or device posture, and denies any request that no Allow policy matches. Google Cloud IAP access levels restrict access based on IP addresses and device attributes, and some device attributes require a Chrome Enterprise Premium license. Allowed requests reach the application with the identity attached. Google Cloud IAP sends a signed JWT in the x-goog-iap-jwt-assertion header and strips client-supplied x-goog-* headers, so a browser can't inject its own.

Requests that fail the policy check don't reach the application through the proxy. When a Google Cloud IAP session expires, the proxy returns 401 to AJAX requests and redirects other requests back to the sign-in flow.

Copy link to headingHow does an identity-aware proxy differ from a VPN, a reverse proxy, and an API gateway?

All four can stand between a user and an internal application. They differ in when they check access and what the user can reach afterward.

Attribute

Identity-aware proxy

VPN

Plain reverse proxy

API gateway

User authentication

Required before forwarding, through an identity provider

When the connection starts

Left to the backend

Optional, as one cross-cutting task

When access is evaluated

On every request

Once for the session

By the backend

Depends on the gateway's configuration

What one decision opens

One application

Every application the user may reach on the network

Whatever the backend allows

The services behind the gateway's routes

Main job

Controlling which people reach an application

Network-level access for remote users

Forwarding and load balancing

Routing, aggregating, and offloading client-to-service API traffic

F5 contrasts its proxy's per-request application access with a VPN's session-based access. For web apps behind Google Cloud IAP, users need only a browser. IAP requires no client software or network tunneling.

Esri's architecture guidance treats any reverse proxy that adds a pre-authentication layer as an identity-aware proxy for its ArcGIS discussions, and OAuth2 Proxy can run as middleware inside an existing reverse proxy or load balancer. An API gateway can authenticate too. An API gateway decides where a client's API call should go, and an identity-aware proxy decides whether a signed-in person may reach the application at all.

Copy link to headingWhere does an identity-aware proxy fit in zero trust and BeyondCorp?

NIST's SP 800-207 describes zero trust as moving defenses from network perimeters to users, assets, and resources. A user's network location alone does not grant them any special access. Both the user and the device must pass authentication and authorization checks before a session begins. The abstract doesn't name identity-aware proxies, but a proxy that checks each request applies that principle to a web app.

Google Cloud IAP is designed to enforce the BeyondCorp security model, which Google described in 2014 when it began removing its privileged intranet and moving corporate applications to the internet. Google's 2016 article on the Access Proxy describes how Google moved every internal HTTP service behind a single proxy that enforced company-wide access rules.

Copy link to headingWhich products work as identity-aware proxies?

Google and Pomerium call their products identity-aware proxies. The others follow the pattern under their own names.

  • Google Cloud Identity-Aware Proxy. Protects HTTPS applications on Cloud Run, App Engine, Compute Engine, and GKE, with group-based and context-aware policies.

  • Cloudflare Access. Sends the origin a signed application token in the Cf-Access-Jwt-Assertion header.

  • AWS Verified Access. Evaluates each application request against data from identity and device management services, with no VPN required, and logs every access attempt.

  • Pomerium. An open source identity-aware proxy built around BeyondCorp and zero trust.

  • OAuth2 Proxy. An open source Cloud Native Computing Foundation Sandbox project that runs as a standalone reverse proxy or as middleware and can forward usernames and groups to the app as HTTP headers.

  • Microsoft Entra application proxy. Publishes on-premises web applications to remote users after single sign-on to Microsoft Entra ID, through a connector that uses only outbound connections.

  • Teleport. Provides access to applications and cloud provider APIs with role-based access control and audit logging and supports Teleport-signed JWTs for web apps.

Copy link to headingWhat is an identity-aware proxy used for?

Identity-aware proxies suit browser apps that shouldn't be public. Employees can use a proxy to sign in to internal tools such as HR portals and dashboards. Outside partners can use it to reach specific apps without joining the network, and you can give them time-limited permissions. Legacy and on-premises apps, including Remote Desktop, SharePoint, and line-of-business apps, can sit behind a proxy without changes to the apps themselves. Policies can also narrow access within an app, for example, by allowing only members of a privileged group to access paths that start with /admin.

You can also restrict access to preview and staging deployments. On Vercel, the Standard Protection scope of Deployment Protection covers every deployment except production domains, so previews stay private while the production site stays public.

Copy link to headingWhat are the limits of an identity-aware proxy?

Close every direct route to the origin, because the proxy protects only traffic through it. Users who can reach a VM's application-serving port bypass Google Cloud IAP, and a Cloud Run service's auto-assigned URL stays unprotected when IAP is enabled only on the load balancer.

Verify the proxy's signed token in the application, and don't trust plain identity headers. Anyone who bypasses the proxy can forge unsigned identity headers. A valid signature alone doesn't prove that a token was issued for your application, so check the issuer, audience, and expiry as well.

Keep record- and action-level authorization in application code. Google built its BeyondCorp Access Proxy for coarse-grained company policy, and a proxy can't tell which records a user may edit. Path rules at the proxy are fragile too, because conditions on a path must match exactly. For example, a rule on /internal admin can be bypassed with /internal%20admin.

Policy and group changes can take time to take effect for signed-in users. Check how your proxy handles active sessions and how to end one if you need to revoke access. IAM policy updates for Google Cloud IAP might take a few minutes to apply, and IAP authorizes a WebSocket only on its initial request. Cloudflare Access checks identity provider groups at login, so a change in group membership takes effect during an existing session only if SCIM provisioning triggers a new check.

Give non-browser callers a separate authenticated path, such as Cloudflare Access Service Auth with service tokens or mutual TLS. Esri says many identity-aware proxies keep the user's status in a session cookie, and its native apps lose that cookie when their embedded browser closes, so later requests are blocked. Cloudflare's Bypass action skips enforcement and logging, so don't use it for permanent access to internal apps.

Measure the full request path before routing internal users through a proxy. Microsoft warns that its application proxy isn't designed for users already on the corporate network, where it can cause performance problems.

Copy link to headingHow do you put identity in front of a Vercel deployment?

Vercel Passport is an Enterprise plan feature that fits when an app is internal, every visitor has an account in your identity provider, and the code needs to know who each visitor is. It signs visitors in with any identity provider that supports OAuth 2.0 or OpenID Connect, such as Okta, Microsoft Entra ID, or Auth0, before they can view a deployment.

Vercel evaluates Passport before deployment routes and Next.js proxy functions run and redirects unauthenticated browser requests to the identity provider. After sign-in, Vercel stores a signed session token in the _vercel_passport cookie and forwards it to the deployment in the x-vercel-oidc-passport-token header. Vercel strips any client-supplied value for that header and injects its own verified token, so visitors can't forge an identity.

Your application still decides what each visitor can do. The Passport token is a JWT with standard OpenID Connect claims, deployment context, and allowlisted claims such as groups. Applications must validate the token before trusting any claim. The @vercel/passport helper verifies the token, and services outside JavaScript can verify it as a standard JWT with the published key set. Passport protects every path on a protected URL, which makes it a poor fit for apps with public pages, and existing sessions keep the claims from when they were issued.

Passport is one of four Deployment Protection methods, and the only one that gives application code a verified identity. Vercel Authentication admits signed-in Vercel users who have access to the deployment. With Standard Protection, it keeps previews private on every plan. Password Protection checks a shared password. On the Enterprise plan, Trusted IPs admits allowlisted IPv4 addresses and CIDR ranges and returns 404 to other requests.

For CI jobs, monitors, and webhooks, Protection Bypass for Automation lets callers send a project secret in the x-vercel-protection-bypass header, and it works for Passport when the secret is on the original request. Trusted Sources gives callers such as other Vercel projects and GitHub Actions an identity-based path, using a short-lived OIDC token that Vercel validates against its issuer.

Vercel doesn't recommend a reverse proxy in front of a project, because Vercel's CDN loses visibility into the traffic and can't identify real end-user IP addresses. If your organization mandates its own proxy, configure Verified Proxy. It doesn't block direct access to deployment URLs. To close that route, Trusted IPs on the Enterprise plan can restrict production to requests that come through your external proxy.

Copy link to headingFrequently asked questions

Copy link to headingIs an identity-aware proxy the same as a VPN?

No. VPNs check a user once and then open network-level access to everything that user is allowed to reach. An identity-aware proxy evaluates each request to a single application against the user's identity and context. Google Cloud IAP, for example, needs no client software on the user's device.

Copy link to headingDoes an identity-aware proxy replace authorization inside the application?

No. The proxy determines who can access the application or a specific path within it. Rules about which records a person may read or change belong in application code, which can use the identity the proxy forwards.

Copy link to headingCan an application trust the identity headers an identity-aware proxy sends?

Only after verifying them. Anyone who reaches the origin without going through the proxy can forge plain headers. Applications should verify the proxy's signed JWT, including its signature, issuer, audience, and expiry, before acting on any claim.

Copy link to headingDo identity-aware proxies work for APIs and automated callers?

Not through the browser sign-in flow, which depends on redirects and session cookies. Automated callers need a separate path, such as service tokens or mutual TLS in Cloudflare Access. On Vercel, CI jobs can send a Protection Bypass for Automation secret, and workloads that issue OIDC tokens can use Trusted Sources.

Copy link to headingDoes Vercel offer an identity-aware proxy?

Yes. Hosting platforms can run the identity check themselves, before a request reaches application code. On the Enterprise plan, Vercel Passport sends visitors to an OAuth 2.0 or OpenID Connect identity provider before any route runs. It forwards a signed identity token in a request header and discards any client-supplied value for that header. The application still verifies the token and applies its own authorization rules.

Reference Architecture

Choose a stack and work through the decisions behind it, with curated documentation, guides, templates, and courses to help you build.

  • Agent stack: Build and operate agents with models, tools, and durable workflows.
  • Web applications: Choose rendering, data, authentication, and caching approaches.
  • Backends: Choose a runtime, connect services, and run background work.

Browse all stacks

Build with prompts

Build an app, extend an agent, or improve your project with ready-to-use prompts for your coding agent.

Ready to deploy?