{"id":28491493,"url":"https://github.com/line/webauthndemo-swift","last_synced_at":"2025-07-04T23:30:42.139Z","repository":{"id":256740021,"uuid":"855639282","full_name":"line/webauthndemo-swift","owner":"line","description":"Demo application for webauthn-swift","archived":false,"fork":false,"pushed_at":"2024-09-12T00:26:56.000Z","size":1882,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-06-08T08:07:31.790Z","etag":null,"topics":["authenticator","demo","fido2","swfit","webauthn"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/line.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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":"2024-09-11T07:58:01.000Z","updated_at":"2025-06-07T10:58:12.000Z","dependencies_parsed_at":"2024-09-12T21:19:52.834Z","dependency_job_id":"74df7905-e2b7-4e13-889c-a1700a479db7","html_url":"https://github.com/line/webauthndemo-swift","commit_stats":null,"previous_names":["line/webauthndemo-swift"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/line/webauthndemo-swift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/line%2Fwebauthndemo-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/line%2Fwebauthndemo-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/line%2Fwebauthndemo-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/line%2Fwebauthndemo-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/line","download_url":"https://codeload.github.com/line/webauthndemo-swift/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/line%2Fwebauthndemo-swift/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263635424,"owners_count":23492190,"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":["authenticator","demo","fido2","swfit","webauthn"],"created_at":"2025-06-08T08:07:30.755Z","updated_at":"2025-07-04T23:30:42.133Z","avatar_url":"https://github.com/line.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WebAuthn Demo Swift\n\n## Introduction\n\nWebAuthn Demo Swift is a sample application that exemplifies the seamless\nintegration and powerful utilization of [webauthn-swift](https://github.com/line/webauthn-swift)\nwithin iOS and macOS environments. It offers practical examples of implementing\nsecure and password-less authentication using biometric and device credential\nauthenticators.\n\n## Features\n\n- Demonstrate the use of `Biometric` and `DeviceCredential`.\n- Include the example of registering and authenticating a credential.\n- Provide the example implementation of relying party and credential source\nstorage using SQLite.\n\n## Requirements\n\n- Swift \u003e= 5.9\n- Xcode \u003e= 15.4\n\n## Getting Started\n\nTo get started with the `webauthndemo-swift`, follow these steps:\n\n### 1. Clone the git repositories.\nTo clone both the `webauthn-swift` and `webauthndemo-swift` repositories, follow\nthe step:\n\n```\n$ git clone https://github.com/line/webauthn-swift.git\n$ git clone https://github.com/line/webauthndemo-swift.git\n```\n\n### 2. Add `webauthn-swift` package dependency.\n\n1. Open `webauthndemo-swift` project in Xcode.\n3. Click `Package Dependencies`.\n4. Click `+` button.\n5. Click `Add Local...` button.\n5. Find `webauthn-swift` repository and click `Add Package` button.\n6. Click `Add Package` button.\n\nYou can finally see that the `webauthn-swift` package has been added in\n`swiftpm/Package.resolved`.\n\n### 3. Launch a WebAuthn server.\n\nWe use the FIDO2 server [here](https://github.com/line/line-fido2-server) to run\nthe sample application. Please refer to the [README](https://github.com/line/line-fido2-server/blob/main/README.md#how-to-run)\nfor instructions on how to run the server.\n\n\n### 4. Change the domain of relying party in [`Endpoint.swift`](./Shared/Authn/Network/Endpoint.swift).\n\nThe current domain is set to `\"example.com\"`. Please replace this value with the\nserver domain you want to test.\n\n## Usage\n\n- Click on the authenticator you want to test, either `Biometric` or\n`Device Credential`.\n- Once you have selected the authenticator, you will see five buttons: `Sign Up`,\n`Sign In`, `Show`, `Delete`, and `Delete All`.\n    - `Sign Up`: Users sign up as members when registering credentials.\n    - `Sign In`: Users sign in when authenticating credentials.\n    - `Show`: It shows the users registered so far.\n    - `Delete`: It deletes all users registered in the authenticator currently\n    being tested.\n    - `Delete All`: It deletes all registered users from all authenticators.\n- The box at the bottom with a green solid line shows errors that occur during\nexecution.\n\n## Screenshots\n\n### Biometric authenticator\n\n\u003cimg src=\"./images/Biometric.gif\" width=\"300\" align=\"center\" alt=\"biometric\"/\u003e\n\n### Device credential authenticator\n\n\u003cimg src=\"./images/DeviceCredential.gif\" width=\"300\" align=\"center\" alt=\"device_credential\"/\u003e\n\n### Device credential authenticator if biometric fails\n\n\u003cimg src=\"./images/DeviceCredential-passcode.gif\" width=\"300\" align=\"center\" alt=\"device_credentia_passcodel\"/\u003e\n\n## Contact Information\n\nWe are committed to open-sourcing our work to support your use cases. We want to\nknow how you use this library and what problems it helps you to solve. For\ncommunication, we encourage you to use the [Issues](https://github.com/line/webauthndemo-swift/issues)\nsection of our GitHub repository to report issues, suggest enhancements, or ask\nquestions about the library. This will help us to address your concerns more\nefficiently and allow the community to benefit from your input.\n\nPlease refrain from posting any sensitive or confidential information in the\nissues. If you need to discuss something sensitive, please mention that in your\nissue, and we will find a more secure way to communicate.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fline%2Fwebauthndemo-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fline%2Fwebauthndemo-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fline%2Fwebauthndemo-swift/lists"}