{"id":17397927,"url":"https://github.com/willgarcia/aws-cognito-lambda","last_synced_at":"2026-05-06T04:32:51.456Z","repository":{"id":147503065,"uuid":"134048073","full_name":"willgarcia/aws-cognito-lambda","owner":"willgarcia","description":"Lambda function authorizer for AWS API Gateway and Cognito","archived":false,"fork":false,"pushed_at":"2018-05-19T09:26:58.000Z","size":2264,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-29T11:51:17.874Z","etag":null,"topics":["auth0","aws","aws-api-gateway","aws-lambda","aws-lambda-node","cognito"],"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/willgarcia.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}},"created_at":"2018-05-19T09:26:40.000Z","updated_at":"2018-05-19T09:29:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"a5581aed-f126-4662-a642-960762791305","html_url":"https://github.com/willgarcia/aws-cognito-lambda","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/willgarcia/aws-cognito-lambda","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willgarcia%2Faws-cognito-lambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willgarcia%2Faws-cognito-lambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willgarcia%2Faws-cognito-lambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willgarcia%2Faws-cognito-lambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willgarcia","download_url":"https://codeload.github.com/willgarcia/aws-cognito-lambda/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willgarcia%2Faws-cognito-lambda/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32678617,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T02:33:58.958Z","status":"ssl_error","status_checked_at":"2026-05-06T02:33:39.611Z","response_time":117,"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":["auth0","aws","aws-api-gateway","aws-lambda","aws-lambda-node","cognito"],"created_at":"2024-10-16T14:39:58.752Z","updated_at":"2026-05-06T04:32:51.441Z","avatar_url":"https://github.com/willgarcia.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cognito Lambda function\n\nThis lambda function is used as a custom authorizer for API Gateway. It:\n* validates Cognito users' authentication.\n* proxifies API GW calls to other lambdas functions\n\n\n## API Gateway configuration\n\nTo use this lambda function, you will have to:\n* create a custom authorizer on your AWS Console API Gateway\n* add the authorizer to each endpoint that needs to be secured (AWS Console \u003e Resources \u003e select endpoint / method \u003e select \"Method Request\" \u003e select the authorizer in \"Authentication Settings\")\n\nEvery call to the API Gateway endpoints configured with the authorizer will require an authorization header containing an encrypted JWT token. See [Using Tokens with User Pools](http://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-using-tokens-with-identity-providers.html) to generate a Cognito JWT ID token.\n\n## Documentation\n\n* [API Security](https://servicesmadesimpler.govnet.qld.gov.au/wiki/pages/viewpage.action?pageId=26970091)\n* [Use Amazon API Gateway Custom Authorizers](http://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-integrate-with-cognito.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillgarcia%2Faws-cognito-lambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillgarcia%2Faws-cognito-lambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillgarcia%2Faws-cognito-lambda/lists"}