{"id":20460803,"url":"https://github.com/keratin/authn-node","last_synced_at":"2026-01-24T22:04:12.766Z","repository":{"id":42511215,"uuid":"255651838","full_name":"keratin/authn-node","owner":"keratin","description":"NodeJS client library for Keratin AuthN","archived":false,"fork":false,"pushed_at":"2024-03-26T12:52:47.000Z","size":576,"stargazers_count":0,"open_issues_count":5,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-04T17:40:59.892Z","etag":null,"topics":["api-client","authentication","authn"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/keratin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-LGPLv3","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2020-04-14T15:44:25.000Z","updated_at":"2021-10-16T15:47:58.000Z","dependencies_parsed_at":"2024-11-15T12:34:06.380Z","dependency_job_id":null,"html_url":"https://github.com/keratin/authn-node","commit_stats":{"total_commits":32,"total_committers":3,"mean_commits":"10.666666666666666","dds":0.28125,"last_synced_commit":"6fdaf9b347af7f1e63bbdfb966d45684218c54e2"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/keratin/authn-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keratin%2Fauthn-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keratin%2Fauthn-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keratin%2Fauthn-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keratin%2Fauthn-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keratin","download_url":"https://codeload.github.com/keratin/authn-node/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keratin%2Fauthn-node/sbom","scorecard":{"id":556011,"data":{"date":"2025-08-11","repo":{"name":"github.com/keratin/authn-node","commit":"d6bd49bb1bb21d4c9a01ead41ef188e50d5bdb8a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 1/11 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/keratin/authn-node/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/keratin/authn-node/ci.yml/master?enable=pin","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE-LGPLv3:0","Info: FSF or OSI recognized license: GNU Lesser General Public License v3.0: LICENSE-LGPLv3:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 20 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"19 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-8cf7-32gw-wr33","Warn: Project is vulnerable to: GHSA-hjrf-2m68-5959","Warn: Project is vulnerable to: GHSA-qwph-4952-7xr6","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T12:21:06.493Z","repository_id":42511215,"created_at":"2025-08-20T12:21:06.493Z","updated_at":"2025-08-20T12:21:06.493Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28737860,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T21:19:41.845Z","status":"ssl_error","status_checked_at":"2026-01-24T21:13:38.675Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["api-client","authentication","authn"],"created_at":"2024-11-15T12:21:48.061Z","updated_at":"2026-01-24T22:04:12.729Z","avatar_url":"https://github.com/keratin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Keratin AuthN\n\nKeratin AuthN is an authentication service that keeps you in control of the experience without forcing you to be an expert in web security.\n\nThis gem provides utilities to help integrate with the backend of a NodeJS application. You will also\nneed a client for your frontend, such as [keratin/authn-js](https://github.com/keratin/authn-js).\n\n[![Gitter](https://badges.gitter.im/keratin/authn-server.svg)](https://gitter.im/keratin/authn-server?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge)\n[![Build Status](https://travis-ci.org/keratin/authn-node.svg?branch=master)](https://travis-ci.org/keratin/authn-rb)\n\n## Installation\n\n```\nyarn add @keratin/authn-node\n```\n\n## Usage\n\n```js\nimport AuthN from \"@keratin/authn-node\";\n\nconst authn = new AuthN({\n  // The AUTHN_URL of your Keratin AuthN server. This will be used to verify tokens created by AuthN,\n  // and will also be used for API calls unless `adminURL` is also set (see below).\n  issuer: \"https://authn.myapp.com\",\n\n  // The domains of your application (no protocol). These domain should be listed in the APP_DOMAINS of\n  // your Keratin AuthN server.\n  audiences: [\"myapp.com\"],\n\n  // OPTIONAL: Send private API calls to AuthN using private network routing. This can be necessary\n  // if your environment has a firewall to limit public endpoints.\n  adminURL: \"https://authn.internal.dns/\",\n\n  // Credentials for AuthN's private endpoints. These will be used to execute admin actions using the\n  // `Keratin.authn` client provided by this library.\n  //\n  // TIP: make them extra secure in production!\n  username: \"secret\",\n  password: \"secret\",\n\n  // OPTIONAL: Specify how long keys should remain cached in the keychain, in minutes.\n  keychainTTL: 60, // minutes\n});\n```\n\n### Reading the Session\n\nUse `Keratin::AuthN.subject_from(params[:authn])` to fetch an `account_id` from the session if and\nonly if the session is valid.\n\n### Modifying Accounts\n\nUnimplemented in this release.\n\n### Example\n\nYou should store the token in a cookie or header (the [keratin/authn-js](https://github.com/keratin/authn-js)\nintegration can do this automatically) and continue using it to verify a logged-in session:\n\n```js\n// your token may be in a cookie or a header, depending on your client configuration.\nconst token = req.headers.authorization.replace(/Bearer/, \"\").trim();\n\n// subjectFrom will return an AuthN account ID that you can use to identify the user.\nlet accountID;\ntry {\n  accountID = await authn.subjectFrom(token);\n} catch (e) {\n  if (e instanceof JsonWebTokenError) console.error(e);\n  else throw e;\n}\n\n// create a user during signup with the accountID\nUser.create({ name, email, accountID });\n\n// use the accountID to find the current user later\nUser.find({ accountID });\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/keratin/authn-node. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeratin%2Fauthn-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeratin%2Fauthn-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeratin%2Fauthn-node/lists"}