{"id":21088110,"url":"https://github.com/vin65/npm-auth0-authorizer","last_synced_at":"2025-05-16T11:32:24.789Z","repository":{"id":57312156,"uuid":"112400869","full_name":"Vin65/npm-auth0-authorizer","owner":"Vin65","description":"Auth0 API Gateway Custom Authorizer","archived":false,"fork":false,"pushed_at":"2018-02-08T23:24:51.000Z","size":32,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-04-23T07:53:27.390Z","etag":null,"topics":["api-gateway","api-gateway-custom-authorizer","auth0","auth0-audience","authorization","json","jsonwebtoken","jwt-auth","lambda","nodejs","npm","serverless","serverless-framework"],"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/Vin65.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":"2017-11-28T23:23:25.000Z","updated_at":"2023-11-20T16:21:09.000Z","dependencies_parsed_at":"2022-09-13T18:21:30.386Z","dependency_job_id":null,"html_url":"https://github.com/Vin65/npm-auth0-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/Vin65%2Fnpm-auth0-authorizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vin65%2Fnpm-auth0-authorizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vin65%2Fnpm-auth0-authorizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vin65%2Fnpm-auth0-authorizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vin65","download_url":"https://codeload.github.com/Vin65/npm-auth0-authorizer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254522215,"owners_count":22085067,"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","api-gateway-custom-authorizer","auth0","auth0-audience","authorization","json","jsonwebtoken","jwt-auth","lambda","nodejs","npm","serverless","serverless-framework"],"created_at":"2024-11-19T21:14:50.373Z","updated_at":"2025-05-16T11:32:19.781Z","avatar_url":"https://github.com/Vin65.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Installation\n1. `npm install --save npm-auth0-authorizer`\n\n2. Ensure the following environment variables are defined within your project:\n- AUTH0_DOMAIN (example: https://yourwebsite.auth0.com/)\n- AUTH0_AUDIENCE (The unique identifier of the target API you want to access.)\n- AUTH0_ALGORITHM (default: RS256)\n\n# Usage\n\n- handler.js\n\n```javascript\nimport auth0Authorizer from 'npm-auth0-authorizer/methods/auth0Authorizer';\n\nmodule.exports.auth0Authorizer = function(event, context, callback){\n  auth0Authorizer(event).then(success =\u003e {\n    return callback(null, success);\n  }).catch(err =\u003e {\n    return callback(err);\n  });\n};\n```\n\n- serverless.yml\n\n```yaml\nfunctions:\n  auth0Authorizer:\n    handler: handler.auth0Authorizer\n  lambdaYouWishToProtect:\n    handler: handler.test\n    events:\n      - http:\n          path: protect-me\n          method: get\n          integration: lambda\n          authorizer:\n            name: auth0Authorizer\n            resultTtlInSeconds: 0\n            identitySource: method.request.header.Authorization\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvin65%2Fnpm-auth0-authorizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvin65%2Fnpm-auth0-authorizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvin65%2Fnpm-auth0-authorizer/lists"}