{"id":19755320,"url":"https://github.com/awkward/serverless-plugin-authorizer","last_synced_at":"2025-04-30T11:32:43.295Z","repository":{"id":57356769,"uuid":"120601734","full_name":"awkward/serverless-plugin-authorizer","owner":"awkward","description":"Make authorization as simple as a boolean","archived":false,"fork":false,"pushed_at":"2018-03-29T10:33:40.000Z","size":13,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-10-02T08:26:57.940Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/awkward.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}},"created_at":"2018-02-07T10:41:18.000Z","updated_at":"2020-12-01T14:15:13.000Z","dependencies_parsed_at":"2022-09-26T16:32:00.596Z","dependency_job_id":null,"html_url":"https://github.com/awkward/serverless-plugin-authorizer","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/awkward%2Fserverless-plugin-authorizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awkward%2Fserverless-plugin-authorizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awkward%2Fserverless-plugin-authorizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awkward%2Fserverless-plugin-authorizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/awkward","download_url":"https://codeload.github.com/awkward/serverless-plugin-authorizer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224208083,"owners_count":17273674,"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":[],"created_at":"2024-11-12T03:10:16.321Z","updated_at":"2024-11-12T03:10:18.805Z","avatar_url":"https://github.com/awkward.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serverless Plugin Authorizer\n\nNormally you would define this in every function in your http event:\n```yaml\n# Before\nauthorizer:\n  resultTtlInSeconds: 30\n  arn: arn:aws:lambda:xxxx:function:authorizer-fn\n  type: request\n```\n\nHowever, now you can add `authorization` which will allow everything to be passed through as `authorizer` in your functions.\n\n```yaml\n# After\ncustom:\n  authorization:\n    resultTtlInSeconds: 30\n    arn: arn:aws:lambda:xxxx:function:authorizer-fn\n    type: request\n```\n\nUsing `authorize: true` to your http event like so:\n\n```yaml\n# After\nfunctions:\n  myFunction:\n    handler: src/myFunction.handler\n    events:\n      - http:\n        path: path/to/function\n        method: get\n        authorize: true\n```\n\n## Install\nUsing yarn:\n```\nyarn add serverless-plugin-authorizer\n```\n\nUsing npm:\n```\nnpm install serverless-plugin-authorizer --save-dev\n```\n\nAdd the plugin to your `serverless.yml` file:\n```yaml\nplugins:\n  - serverless-plugin-authorizer\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawkward%2Fserverless-plugin-authorizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fawkward%2Fserverless-plugin-authorizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawkward%2Fserverless-plugin-authorizer/lists"}