{"id":22268162,"url":"https://github.com/curityio/serverless-zero-trust-vercel-api","last_synced_at":"2026-05-06T07:36:38.080Z","repository":{"id":42684488,"uuid":"414772149","full_name":"curityio/serverless-zero-trust-vercel-api","owner":"curityio","description":"A serverless zero trust OAuth 2.0 protected API for Vercel deployment, protected with self-contained JWTs","archived":false,"fork":false,"pushed_at":"2022-03-28T16:33:26.000Z","size":26,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-01-30T13:31:08.257Z","etag":null,"topics":["api","claims","code-example","jwt-validation","oauth2","scopes","self-contained-jwt","serverless","vercel"],"latest_commit_sha":null,"homepage":"https://curity.io/resources/learn/serverless-zero-trust-api-on-vercel/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/curityio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-07T22:12:56.000Z","updated_at":"2024-02-12T19:21:11.000Z","dependencies_parsed_at":"2022-08-26T06:22:34.422Z","dependency_job_id":null,"html_url":"https://github.com/curityio/serverless-zero-trust-vercel-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fserverless-zero-trust-vercel-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fserverless-zero-trust-vercel-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fserverless-zero-trust-vercel-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fserverless-zero-trust-vercel-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/curityio","download_url":"https://codeload.github.com/curityio/serverless-zero-trust-vercel-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245486039,"owners_count":20623239,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","claims","code-example","jwt-validation","oauth2","scopes","self-contained-jwt","serverless","vercel"],"created_at":"2024-12-03T11:11:46.151Z","updated_at":"2026-05-06T07:36:38.010Z","avatar_url":"https://github.com/curityio.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serverless Zero Trust Vercel API\n\n[![Quality](https://img.shields.io/badge/quality-experiment-red)](https://curity.io/resources/code-examples/status/)\n[![Availability](https://img.shields.io/badge/availability-source-blue)](https://curity.io/resources/code-examples/status/)\n\nA serverless zero trust API for Vercel deployent protected with self contained JWTs\n\n## Create Certificats\n\nRun `createCerts.sh` to generate a certificate trust chain for testing purposes. Import the certificates in the Curity Identity Server.\n\n## Deploy the code to Vercel\n\nInstall the Vercel client\n```sh\nbrew install vercel-cli\n```\n\nLogin to Vercel\n```sh\nvercel login\n```\n\nInstall dependencies\n```sh\nnpm install\n```\n\nDeploy the code to Vercel and provide the `ISS`, `AUD`, `ALG` and `CERT_LOCATION` env variables in the deploy command or configure the environment variables in the Vercel Web UI.\n```sh\nvercel --env ISS=https://idsvr.example.com/oauth/v2/oauth-anonymous --env AUD=www --env ALG='RS256' --env CERT_LOCATION='../certs' deploy\n```\n\nOptionally promote to production\n```sh\nvercel --prod\n```\n\n## Testing the code\nRun a flow that obtains a JWT access token then call the Vercel deployed API. Further details in the [Securing a Serverless API on Vercel using JWTs](https://curity.io/resources/learn/serverless-zero-trust-api-on-vercel) article.\n\n## Further Information\n\nPlease visit [curity.io](https://curity.io/) for more information about the Curity Identity Server.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurityio%2Fserverless-zero-trust-vercel-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcurityio%2Fserverless-zero-trust-vercel-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurityio%2Fserverless-zero-trust-vercel-api/lists"}