{"id":19151428,"url":"https://github.com/sc5/serverless-plugin-cfauthorizer","last_synced_at":"2025-05-07T05:24:50.061Z","repository":{"id":143908321,"uuid":"72033248","full_name":"SC5/serverless-plugin-cfauthorizer","owner":"SC5","description":"Serverless CloudFormation Authorizer Plugin","archived":false,"fork":false,"pushed_at":"2017-01-18T21:36:58.000Z","size":5,"stargazers_count":13,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-19T19:05:02.953Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/SC5.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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-10-26T18:37:37.000Z","updated_at":"2021-06-10T05:10:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"75d9a7d8-a735-4a52-937a-557f7e3b7d43","html_url":"https://github.com/SC5/serverless-plugin-cfauthorizer","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/SC5%2Fserverless-plugin-cfauthorizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SC5%2Fserverless-plugin-cfauthorizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SC5%2Fserverless-plugin-cfauthorizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SC5%2Fserverless-plugin-cfauthorizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SC5","download_url":"https://codeload.github.com/SC5/serverless-plugin-cfauthorizer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252819632,"owners_count":21809056,"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-09T08:14:41.575Z","updated_at":"2025-05-07T05:24:50.052Z","avatar_url":"https://github.com/SC5.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serverless CloudFormation Authorizer Plugin\nKenneth Falck \u003ckennu@sc5.io\u003e 2016\n\n## Overview\n\nCompatibility: Serverless 1.0\n\nThis plugin allows you to define your own API Gateway Authorizers as\nthe Serverless CloudFormation resources and apply them to HTTP endpoints.\nCurrently the main use case for this is to enable Cognito User Pool\nauthorizers, which are not yet supported by Serverless 1.0.\n\n## Installation\n\n    npm install --save serverless-plugin-cfauthorizer\n\n## Configuration (serverless.yml)\n\nYou will first need to add a custom authorizer in the custom cfAuthorizers\nsection of your serverless.yml. Here is an example of a Cognito User Pool\nauthorizer. To use this example, you need to substitute your own User Pool ARN\non the last line. Note that the properties of the authorizer are standard\nCloudFormation properties, so you can use any supported values.\n\n    custom:\n      cfAuthorizers:\n        MyAuthorizer:\n          Type: \"COGNITO_USER_POOLS\"\n          Name: \"MyUserPoolAuthorizer\"\n          IdentitySource: \"method.request.header.Authorization\"\n          ProviderARNs:\n            - \"arn:aws:cognito-idp:eu-west-1:xxxxxxxxxxxx:userpool/eu-west-1_xxxxxxxxx\"\n\nOnce the above resource has been added, you can configure individual HTTP\nendpoints in serverless.yml to use the authorizer. They will refer to it using\nthe resource name, which is MyAuthorizer in the example.\n\n    functions:\n      hello:\n        handler: handler.hello\n        events:\n          - http:\n              method: get\n              path: hello\n              cfAuthorizer: MyAuthorizer\n\nAfter making the changes, all you need to do is redeploy the service:\n\n    sls deploy\n\nUse API Gateway Console to verify that the authorizer has been deployed\nproperly.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsc5%2Fserverless-plugin-cfauthorizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsc5%2Fserverless-plugin-cfauthorizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsc5%2Fserverless-plugin-cfauthorizer/lists"}