{"id":20060628,"url":"https://github.com/oasisprotocol/demo-authzn","last_synced_at":"2025-05-05T15:33:14.993Z","repository":{"id":186110109,"uuid":"674644069","full_name":"oasisprotocol/demo-authzn","owner":"oasisprotocol","description":"WebAuthN implementation for Oasis Sapphire","archived":false,"fork":false,"pushed_at":"2024-04-15T06:50:49.000Z","size":3022,"stargazers_count":7,"open_issues_count":2,"forks_count":2,"subscribers_count":16,"default_branch":"main","last_synced_at":"2025-04-09T01:11:05.303Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/oasisprotocol.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,"governance":null}},"created_at":"2023-08-04T12:50:10.000Z","updated_at":"2024-04-14T09:56:08.000Z","dependencies_parsed_at":"2023-11-24T13:47:56.271Z","dependency_job_id":null,"html_url":"https://github.com/oasisprotocol/demo-authzn","commit_stats":null,"previous_names":["cedarmist/demo-authzn","oasisprotocol/demo-authzn"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oasisprotocol%2Fdemo-authzn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oasisprotocol%2Fdemo-authzn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oasisprotocol%2Fdemo-authzn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oasisprotocol%2Fdemo-authzn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oasisprotocol","download_url":"https://codeload.github.com/oasisprotocol/demo-authzn/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252524293,"owners_count":21762070,"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-13T13:16:01.781Z","updated_at":"2025-05-05T15:33:14.546Z","avatar_url":"https://github.com/oasisprotocol.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sapphire Auth[ZN] Demo\n\nThis project demonstrates how to use WebAuthN credentials with Oasis Sapphire.\nThis allows users to use strong device-level authentication, such as TouchID,\nYubiKey, Android biometric, Windows Hello etc.\n\nCurrently it only supports SEC P256 R1 credentials, and additional work will be\nneeded to adapt it to your specific use-case.\n\nI have also included code for TOTP authentication.\n\nTODO:\n\n * When verifying attestations in contract\n   * Verify `clientDataJSON`\n     * Use an application-specific protocol to determine the base64 encoded `challenge` parameter\n   * Verify `authenticatorData` (which includes `rpIdHash`)\n * Support RSA and Ed25519?\n\n## Building, Testing \u0026 Running\n\nTo build and test:\n\n```shell\npnpm install\nmake\nmake -C backend test\n```\n\nThen to start a local Sapphire node, deploy the contracts and run web server:\n\n```shell\nmake sapphire-dev \u0026\nmake -C backend deploy-local\nmake -C frontend run\n```\n\nSteps to test:\n\n * Fill in `username` input\n * Click `Register` button\n * Click `Login` button\n\nTesting without a WebAuthN compatible hardware key or supported device:\n\n * In Chrome DevTools, click the Kebab Menu button next to the cog (`⋮`)\n * Click 'More Tools'\n * Click 'WebAuthN'\n * Click 'Add' under 'New authenticator' (ctap2, usb)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foasisprotocol%2Fdemo-authzn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foasisprotocol%2Fdemo-authzn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foasisprotocol%2Fdemo-authzn/lists"}