Vercel
Sign in to Vercel with Pocket ID and provision users with Directory Sync.
This guide connects a Vercel team to Pocket ID for both Single Sign-On (SSO) via OIDC and Directory Sync (SCIM). Once configured, users sign in to Vercel through Pocket ID and are automatically provisioned into your Vercel team based on their Pocket ID group membership.
The following placeholders are used below. Replace them with your own values:
| Placeholder | Replace with |
|---|---|
id.example.com |
The URL of your Pocket ID instance |
<team_slug> |
Your Vercel team slug, found in your team settings |
Create groups in Pocket ID
Section titled “Create groups in Pocket ID”These groups control who can sign in and which Vercel role each user receives. In Pocket ID, open Administration → User Groups and click Add Group to create two groups:
- Vercel Users grants standard access to the Vercel team.
- Friendly Name:
Vercel Users - Name:
vercel-user - Later, when configuring Directory Sync, you map this group to a Member or Developer role on Vercel.
- Friendly Name:
- Vercel Admins grants admin access to the Vercel team.
- Friendly Name:
Vercel Admins - Name:
vercel-admin - Later, when configuring Directory Sync, you map this group to an Owner role on Vercel.
- Friendly Name:
Add your own Pocket ID account to both groups so you can test the connection.
Start the SSO setup in Vercel
Section titled “Start the SSO setup in Vercel”- Open your Vercel team’s settings and start configuring Single Sign-On (SAML).
- Select Custom OIDC as the provider type.
- Set the provider name to
Pocket ID. - Copy the Login redirect URL shown by Vercel.
It looks like
https://auth.vercel.com/sso/oidc/<random-string>/callback. You need it in the next step.
Create the client in Pocket ID
Section titled “Create the client in Pocket ID”- In Pocket ID, open Administration → OIDC Clients and click Add OIDC Client.
- Enter a name such as
Verceland add the Login redirect URL you copied from Vercel as the callback URL. - Click Create and copy the Client ID and the Client secret. The client secret is only shown once.
- On the client’s General tab, set Client Launch URL to
https://vercel.com/login?saml=<team_slug>, turn on PKCE and save. The launch URL makes the Vercel tile in Pocket ID’s My Apps open Vercel with your team slug pre-filled. - On the client’s Access tab, select the Vercel Users group under Allowed User Groups so that only members of that group can sign in.
Finish the SSO setup in Vercel
Section titled “Finish the SSO setup in Vercel”- Set the Discovery endpoint to
https://id.example.com/.well-known/openid-configuration. - Enter the Client ID and the Client secret from Pocket ID.
- Save the SSO configuration.
Test SSO
Section titled “Test SSO”Sign out of Vercel and sign back in through Pocket ID (or use a private browser window). In Pocket ID’s My Apps view, the Vercel tile takes you straight to Vercel with the team slug pre-filled.
Configure Directory Sync (SCIM)
Section titled “Configure Directory Sync (SCIM)”In Vercel
Section titled “In Vercel”- In your Vercel team’s settings, open Directory Sync and select Custom SCIM.
- Set the directory provider to Pocket ID.
- Choose Bearer Token authentication, then copy the SCIM endpoint (looks like
https://auth.vercel.com/scim/v2.0/<random-string>) and the Bearer token (looks likese_xxx).
In Pocket ID
Section titled “In Pocket ID”- Open the
VercelOIDC client and go to its SCIM Provisioning tab. - Set SCIM Endpoint to the SCIM endpoint from Vercel.
- Set SCIM Token to the bearer token from Vercel.
- Click Enable.
Back in Vercel
Section titled “Back in Vercel”- Save the Directory Sync configuration.
- Configure the mapping between your Pocket ID groups (Vercel Users and Vercel Admins) and the corresponding Vercel team roles or Access Groups. For example, map Vercel Users to the Member or Developer role on Vercel, and Vercel Admins to the Owner role on Vercel.
Users who belong to the mapped groups are now provisioned into your Vercel team automatically.