{"id":19432671,"url":"https://github.com/brightspace/node-jwk-allowed-algorithms","last_synced_at":"2025-04-24T20:30:59.901Z","repository":{"id":33554942,"uuid":"37201161","full_name":"Brightspace/node-jwk-allowed-algorithms","owner":"Brightspace","description":null,"archived":false,"fork":false,"pushed_at":"2018-07-13T04:40:59.000Z","size":17,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-11-09T01:10:00.063Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Brightspace.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}},"created_at":"2015-06-10T14:11:52.000Z","updated_at":"2019-07-19T17:23:07.000Z","dependencies_parsed_at":"2022-09-06T15:41:40.951Z","dependency_job_id":null,"html_url":"https://github.com/Brightspace/node-jwk-allowed-algorithms","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Brightspace%2Fnode-jwk-allowed-algorithms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Brightspace%2Fnode-jwk-allowed-algorithms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Brightspace%2Fnode-jwk-allowed-algorithms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Brightspace%2Fnode-jwk-allowed-algorithms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Brightspace","download_url":"https://codeload.github.com/Brightspace/node-jwk-allowed-algorithms/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223967162,"owners_count":17233338,"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-10T14:36:38.881Z","updated_at":"2024-11-10T14:36:39.328Z","avatar_url":"https://github.com/Brightspace.png","language":"JavaScript","readme":"# jwk-allowed-algorithms\n\n[![Build Status](https://travis-ci.org/Brightspace/node-jwk-allowed-algorithms.svg?branch=master)](https://travis-ci.org/Brightspace/node-jwk-allowed-algorithms) [![Coverage Status](https://coveralls.io/repos/Brightspace/node-jwk-allowed-algorithms/badge.svg)](https://coveralls.io/r/Brightspace/node-jwk-allowed-algorithms)\n\nA tiny library to provide a list of [jwa algorithms][algs] allowed to be used\nwith a particular [json web key][jwk].\n\n## Install\n```sh\nnpm install jwk-allowed-algorithms --save\n```\n\n## Usage\n```js\nvar getAllowedAlorithms = require('jwk-allowed-algorithms'),\n\tjwt = require('jsonwebtoken');\n\nvar jwk = { kty: 'EC', crv: 'P-256', x: '...', y: '...' },\n\tpem = jwkToPem(jwk);\n\nvar allowedAlgorithms = getAllowedAlorithms(jwk); // ['ES256']\n\njwt.verify(token, pem, { algorithms: allowedAlgorithms });\n```\n\n## Contributing\n\n1. **Fork** the repository. Committing directly against this repository is\n   highly discouraged.\n\n2. Make your modifications in a branch, updating and writing new unit tests\n   as necessary in the `spec` directory.\n\n3. Ensure that all tests pass with `npm test`\n\n4. `rebase` your changes against master. *Do not merge*.\n\n5. Submit a pull request to this repository. Wait for tests to run and someone\n   to chime in.\n\n### Code Style\n\nThis repository is configured with [EditorConfig][EditorConfig] rules\n\n[algs]: https://tools.ietf.org/html/rfc7518#section-3.1\n[jwk]: https://tools.ietf.org/html/rfc7517\n[EditorConfig]: http://editorconfig.org/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrightspace%2Fnode-jwk-allowed-algorithms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrightspace%2Fnode-jwk-allowed-algorithms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrightspace%2Fnode-jwk-allowed-algorithms/lists"}