Restrict access to deployments with Passport
Passport is available on Enterprise plans
Those with the owner role can manage Passport
Passport lets you protect deployments with your own identity provider. Visitors authenticate with your identity provider before they can view a protected deployment.
Use Passport when you want visitors to sign in with an external identity provider, such as Microsoft Entra ID, Okta, or another OpenID Connect compatible provider. Vercel Connect stores the OAuth application configuration that talks to your identity provider.
Passport has two parts:
- Vercel Connect application: The OAuth or OpenID Connect configuration that stores your identity provider's issuer, endpoints, client ID, and client secret.
- Project or team setting: The Passport configuration that selects the Connect application and controls whether Passport is enabled.
When a visitor opens a protected deployment, Vercel redirects them to your identity provider. After the identity provider authenticates the visitor, Vercel validates the response and sets a session cookie for the protected deployment.
New to Passport? Set up Passport with an identity provider first, then return to the other guides when you need to use identity in application code.
Set up Passport with an identity provider
Configure Passport for Okta, Microsoft Entra ID, and other OIDC providers.
Configure additional identity scopes
Request group membership and other provider-specific identity claims.
Read Passport identity in your application
Read a verified visitor identity from route handlers, server actions, and server components.
Passport token claims
Review the standard, deployment, and visitor identity claims in a Passport token.
Verify forwarded Passport tokens
Verify a forwarded token as a signed JWT.
Forward Passport identity to another backend
Pass a Passport token to a backend you operate over HTTPS.
When a visitor successfully authenticates to a Passport-protected project, Vercel records a passport-access-granted event in both the Activity Log and Audit Logs. The event identifies the visitor and records the protected hostname and project context.
In the Activity Log, select Filter by Event, then select passport-access-granted to view Passport access events.
Passport is available as an Enterprise feature. Contact your Vercel account team for pricing.
- Deployment Protection
- Methods to protect deployments
- Vercel Authentication
- Protection Bypass for Automation: Access a Passport-protected deployment without an identity provider session. Send the bypass secret with the original request because Passport runs before deployment routes and Next.js proxy functions.
Was this helpful?