{"id":19376204,"url":"https://github.com/mrkvon/css-authn","last_synced_at":"2025-11-17T14:03:33.055Z","repository":{"id":224280290,"uuid":"762885787","full_name":"mrkvon/css-authn","owner":"mrkvon","description":"Authenticate to Community Solid Server via its API","archived":false,"fork":false,"pushed_at":"2025-07-05T18:45:45.000Z","size":397,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-28T09:51:47.894Z","etag":null,"topics":["community-solid-server","solid","solidproject"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/css-authn","language":"TypeScript","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/mrkvon.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2024-02-25T00:37:05.000Z","updated_at":"2025-07-05T18:45:31.000Z","dependencies_parsed_at":"2024-02-25T02:32:17.917Z","dependency_job_id":"5a5706b1-410b-4ff5-9ec8-05e5689c66be","html_url":"https://github.com/mrkvon/css-authn","commit_stats":null,"previous_names":["mrkvon/css-authn"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/mrkvon/css-authn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrkvon%2Fcss-authn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrkvon%2Fcss-authn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrkvon%2Fcss-authn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrkvon%2Fcss-authn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrkvon","download_url":"https://codeload.github.com/mrkvon/css-authn/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrkvon%2Fcss-authn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284893574,"owners_count":27080532,"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","status":"online","status_checked_at":"2025-11-17T02:00:06.431Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["community-solid-server","solid","solidproject"],"created_at":"2024-11-10T08:43:06.094Z","updated_at":"2025-11-17T14:03:33.050Z","avatar_url":"https://github.com/mrkvon.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `css-authn`\n\n[![GitHub License](https://img.shields.io/github/license/mrkvon/css-authn)](https://github.com/mrkvon/css-authn/blob/main/LICENSE)\n[![NPM Version](https://img.shields.io/npm/v/css-authn)](https://npmjs.com/package/css-authn)\n![NPM Type Definitions](https://img.shields.io/npm/types/css-authn)\n![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/mrkvon/css-authn/test.yml)\n\nUtilities to authenticate to Community Solid Server via its API\n\nSupported versions are 6.x and 7.x.\n\nThis package is based on _Automating authentication with Client Credentials_ [v6](https://communitysolidserver.github.io/CommunitySolidServer/6.x/usage/client-credentials/) and [v7](https://communitysolidserver.github.io/CommunitySolidServer/7.x/usage/client-credentials/).\n\n## Usage\n\n```ts\nimport { v6, v7 } from 'css-authn'\n// or import { createAccount, getAuthenticatedFetch } from 'css-authn/dist/7.x'\n\n// the methods return a Promise, so you can wrap them in async function, and await them...\n// get authenticated fetch\nconst authenticatedFetch = await v7.getAuthenticatedFetch({\n  email: 'email@example',\n  password: 'password',\n  provider: 'https://solidserver.example',\n  webId: 'https://solidserver.example/person/profile/card#me', // (optional) if there are multiple webIds associated with the account, you need to specify which one to authenticate with\n  fetch, // (optional) you can also provide your own fetch compatible with native Node fetch\n})\n\n// in version 7, there's also a method to create account and pod\nawait v7.createAccount({\n  username: 'username',\n  password: 'password',\n  email: 'email@example.com',\n  provider: 'https://solidserver.example',\n  fetch, // (optional) you can also provide your own fetch compatible with native Node fetch\n})\n```\n\n## License\n\nMIT (c) 2024 mrkvon\n\n### Notice\n\nThis code is substantially based on [Community Solid Server documentation](https://github.com/CommunitySolidServer/CommunitySolidServer/blob/main/documentation/markdown/usage/client-credentials.md) with [license](https://github.com/CommunitySolidServer/CommunitySolidServer/blob/main/LICENSE.md):\n\n```md\nMIT License\n\nCopyright © 2019–2025 Inrupt Inc. and imec\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included\nin all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF\nOR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrkvon%2Fcss-authn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrkvon%2Fcss-authn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrkvon%2Fcss-authn/lists"}