{"id":21575473,"url":"https://github.com/rangle/express-jwt-jwks","last_synced_at":"2025-04-10T16:30:22.859Z","repository":{"id":34053479,"uuid":"167883927","full_name":"rangle/express-jwt-jwks","owner":"rangle","description":"Simple JWT auth using JWKS key sets for Express.  Wraps express-jwt and jwks-rsa.  AWS Cognito compatible.","archived":false,"fork":false,"pushed_at":"2024-04-13T16:48:07.000Z","size":85,"stargazers_count":4,"open_issues_count":8,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T14:12:57.678Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rangle.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":"2019-01-28T02:08:05.000Z","updated_at":"2022-06-30T13:24:18.000Z","dependencies_parsed_at":"2024-11-24T12:13:27.431Z","dependency_job_id":null,"html_url":"https://github.com/rangle/express-jwt-jwks","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/rangle%2Fexpress-jwt-jwks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rangle%2Fexpress-jwt-jwks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rangle%2Fexpress-jwt-jwks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rangle%2Fexpress-jwt-jwks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rangle","download_url":"https://codeload.github.com/rangle/express-jwt-jwks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248173815,"owners_count":21059594,"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-24T12:13:22.687Z","updated_at":"2025-04-10T16:30:22.822Z","avatar_url":"https://github.com/rangle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# express-jwt-jwks\nSimple JWT auth using JWKS key sets for Express.  Wraps express-jwt and jwks-rsa.  AWS Cognito compatible.\n\nCalls to JWKS are cached, and JWKS entries are associated to a JWT through the \"kid\" parameter in the JWT header.  Calls through the cache to the remote JWKS are rate limited to 5 req/min.\n\n## Install\n\n    $ npm install express-jwt-jwks\n\n## Usage\n\nThe JWT authentication middleware authenticates callers using a JWT.\nIf the token is valid, `req.user` will be set with the JSON object decoded\nto be used by later middleware for authorization and access control.\n\n```javascript\n\n\n\n// Obtain JWT auth middleware, using a remote JWKS key set\nvar SECURE = require('express-jwt-jwks')({\n    jwks : \"https://....../.well-known/jwks.json\"\n});\n\n\n// Express routes, the first is JWT secured, the second is open.\n\nrouter.get('/restricted', SECURE, (_, res) =\u003e {\n  res.send(\"Super secret data\")\n})\n\nrouter.get('/open', (_, res) =\u003e {\n  res.send(\"Anyone is allowed to see this\")\n})\n\n\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frangle%2Fexpress-jwt-jwks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frangle%2Fexpress-jwt-jwks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frangle%2Fexpress-jwt-jwks/lists"}