{"id":16471777,"url":"https://github.com/willis0826/serverless-local-authorizer-example","last_synced_at":"2025-07-16T11:03:36.545Z","repository":{"id":221913992,"uuid":"755724674","full_name":"Willis0826/serverless-local-authorizer-example","owner":"Willis0826","description":"A demo for Serverless Framework with Lambda Authorizer","archived":false,"fork":false,"pushed_at":"2024-02-11T01:33:46.000Z","size":78,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T10:09:05.074Z","etag":null,"topics":["api-gateway","authorizer","lambda","serverless-framework"],"latest_commit_sha":null,"homepage":"https://www.willischou.com/aws-serverless-using-serverless-framework-with-custom-authoriser-locally/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Willis0826.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-10T22:22:50.000Z","updated_at":"2024-04-30T19:46:11.000Z","dependencies_parsed_at":"2024-02-11T02:31:18.984Z","dependency_job_id":"f1153ddc-8603-45c6-aa35-045ef6a960a9","html_url":"https://github.com/Willis0826/serverless-local-authorizer-example","commit_stats":null,"previous_names":["willis0826/serverless-local-authorizer-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Willis0826/serverless-local-authorizer-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Willis0826%2Fserverless-local-authorizer-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Willis0826%2Fserverless-local-authorizer-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Willis0826%2Fserverless-local-authorizer-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Willis0826%2Fserverless-local-authorizer-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Willis0826","download_url":"https://codeload.github.com/Willis0826/serverless-local-authorizer-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Willis0826%2Fserverless-local-authorizer-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265504823,"owners_count":23778373,"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-gateway","authorizer","lambda","serverless-framework"],"created_at":"2024-10-11T12:14:40.041Z","updated_at":"2025-07-16T11:03:36.471Z","avatar_url":"https://github.com/Willis0826.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# serverless local authorizer example\n\nThis project demos how to use Serverless Framework with Lambda Authorizer locally for REST APIs (API Gateway V1).\n\nCheck out the article that walks you through this repository.\n\n[AWS Serverless - Using Serverless Framework with Custom Authoriser Locally](https://www.willischou.com/aws-serverless-using-serverless-framework-with-custom-authoriser-locally/)\n\n## Requirement\n\n1. Nodejs 20\n\nRun the following command to install packages.\n\n```bash\n$ npm i\n```\n\n## Start Dev Server\n\nWicked, you can start serverless dev server locally and test the result.\n\n```bash\n$ npm run start\n$ curl -H \"Authorization: abc\" http://localhost:3000/dev/ping\n```\n\nNow, you should get a response `pong` after you sent a GET request to `/ping`. Please note, you must provide `Authorization` header in the request in order to pass Lambda Authorizer.\n\nIf you send a request without `Authorization` header, you will get a response `{\"message\":\"Unauthorized\"}`.\n\n🍺 Cheers, that's all. You can enjoy the seamless Lambda development with TypeScript locally. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillis0826%2Fserverless-local-authorizer-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillis0826%2Fserverless-local-authorizer-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillis0826%2Fserverless-local-authorizer-example/lists"}