{"id":40715522,"url":"https://github.com/nlang/serverless-offline-local-authorizers-plugin","last_synced_at":"2026-01-21T13:10:21.859Z","repository":{"id":42116477,"uuid":"242533062","full_name":"nlang/serverless-offline-local-authorizers-plugin","owner":"nlang","description":"Plugin for adding local authorizers when developing locally with serverless-offline","archived":false,"fork":false,"pushed_at":"2024-03-16T12:17:40.000Z","size":609,"stargazers_count":16,"open_issues_count":8,"forks_count":22,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-03T09:47:49.803Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nlang.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-23T14:37:43.000Z","updated_at":"2023-12-08T13:38:09.000Z","dependencies_parsed_at":"2024-06-18T22:47:29.728Z","dependency_job_id":"7f6c5936-cbd2-467a-b51a-28476e94fc90","html_url":"https://github.com/nlang/serverless-offline-local-authorizers-plugin","commit_stats":{"total_commits":30,"total_committers":7,"mean_commits":4.285714285714286,"dds":0.6333333333333333,"last_synced_commit":"0a2836962a427d517d5c7abbe780357aa03642b6"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/nlang/serverless-offline-local-authorizers-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlang%2Fserverless-offline-local-authorizers-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlang%2Fserverless-offline-local-authorizers-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlang%2Fserverless-offline-local-authorizers-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlang%2Fserverless-offline-local-authorizers-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nlang","download_url":"https://codeload.github.com/nlang/serverless-offline-local-authorizers-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlang%2Fserverless-offline-local-authorizers-plugin/sbom","scorecard":{"id":690473,"data":{"date":"2025-08-11","repo":{"name":"github.com/nlang/serverless-offline-local-authorizers-plugin","commit":"6373b1fd9fe877e876c1dbfc24986ff01437ff31"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.1,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":3,"reason":"Found 3/10 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 23 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"29 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-h452-7996-h45h","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97","Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: GHSA-pppg-cpfq-h7wr","Warn: Project is vulnerable to: GHSA-hw8r-x6gr-5gjp","Warn: Project is vulnerable to: GHSA-8cf7-32gw-wr33","Warn: Project is vulnerable to: GHSA-hjrf-2m68-5959","Warn: Project is vulnerable to: GHSA-qwph-4952-7xr6","Warn: Project is vulnerable to: GHSA-3xq5-wjfh-ppjc","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-8hfj-j24r-96c4","Warn: Project is vulnerable to: GHSA-wc69-rhjr-hc9g","Warn: Project is vulnerable to: GHSA-56x4-j7p9-fcf9","Warn: Project is vulnerable to: GHSA-v78c-4p63-2j6c","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-776f-qx25-q3cc"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T02:11:59.895Z","repository_id":42116477,"created_at":"2025-08-22T02:11:59.895Z","updated_at":"2025-08-22T02:11:59.895Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28633748,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2026-01-21T13:10:21.192Z","updated_at":"2026-01-21T13:10:21.853Z","avatar_url":"https://github.com/nlang.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# serverless-offline-local-authorizers-plugin\n\n[Serverless](http://www.serverless.com) plugin for adding authorizers when developing and testing\nfunctions locally with [serverless-offline](https://github.com/dherault/serverless-offline).\n\n[![Serverless](http://public.serverless.com/badges/v3.svg)](http://www.serverless.com)\n[![npm](https://img.shields.io/npm/v/serverless-offline-local-authorizers-plugin.svg)](https://www.npmjs.com/package/serverless-offline-local-authorizers-plugin)\n[![npm](https://img.shields.io/npm/l/serverless-offline-local-authorizers-plugin.svg)](https://www.npmjs.com/package/serverless-offline-local-authorizers-plugin)\n\nThis plugin allows you to add local authorizer functions to your serverless projects. These authorizers\nare added dynamically in a way they can be called by `serverless-offline` but don't interfer with your\ndeployment and your shared authorizer functions. This helps when you have shared API Gateway authorizers\nand developing and testing locally with `serverless-offline`.\n\n\u003e :warning: **If you are using this plugin and get schema validation errors**: Please check indentation of `localAuthorizer:` config property! See example below...\n\n## Installation\n\nInstalling using npm:\n\n```\nnpm i serverless-offline-local-authorizers-plugin --save-dev\n```\n\n## Usage\n\n*Step 1:* Define your authorizer functions in a file of your choice (.js, .mjs, .ts and others) and later you will inform the path and name or file default called `local-authorizers.js` and put it into your\nproject root (that's where your `serverless.yml` lives).\n\nIf you want the local function to call your deployed shared authorizer it could look something\nlike this:\n\n```javascript\nconst AWS = require(\"aws-sdk\");\nconst mylocalAuthProxyFn = async (event, context) =\u003e {\n\n  const lambda = new AWS.Lambda();\n  const result = await lambda.invoke({\n    FunctionName: \"my-shared-lambda-authorizer\",\n    InvocationType: \"RequestResponse\",\n    Payload: JSON.stringify(event),\n  }).promise();\n\n  if (result.StatusCode === 200) {\n    return JSON.parse(result.Payload);\n  }\n\n  throw Error(\"Authorizer error\");\n};\n\nmodule.exports = { mylocalAuthProxyFn };\n\n```\n\nOf course you could also just return a mocked response, call Cognito to mock your Cognito Authorizer or\nwhatever suits your needs. You can also define multiple authorizer functions if you need to.\n\n*Step 2:* In your `serverless.yml`, add the `localAuthorizer` property to your http events. This will not interfere\nwith your \"real\" authorizers and will be ignored upon deployment. \n\n```yaml\nfunctions:\n  myFunction:\n    handler: myFunction.handler\n    events:\n      - http:\n          path: /my/api/path\n          method: GET\n          authorizer:\n            type: CUSTOM\n            authorizerId: abcjfk\n          localAuthorizer:\n            name: \"mylocalAuthProxyFn\"\n            pathFile: \"local-authorizers.js\" # Optional\n            type: \"request\"\n\n```\n\n*Step 3:* Add the plugin to the plugins sections in `serverless.yml`:\n\n```yaml\nplugins:\n  - serverless-offline-local-authorizers-plugin\n  - serverless-offline\n```\n\n*Step 4:* Fire up serverless offline with the `local-authorizers` option:\n\n```yaml\n$ sls offline local-authorizers --stage dev --region eu-central-1\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlang%2Fserverless-offline-local-authorizers-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnlang%2Fserverless-offline-local-authorizers-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlang%2Fserverless-offline-local-authorizers-plugin/lists"}