{"id":32149546,"url":"https://github.com/brokenhandsio/swift-webauthn","last_synced_at":"2025-12-11T22:54:51.141Z","repository":{"id":47293596,"uuid":"516020548","full_name":"brokenhandsio/swift-webauthn","owner":"brokenhandsio","description":"A Swift library for implementing the WebAuthn spec","archived":false,"fork":false,"pushed_at":"2025-10-14T13:49:13.000Z","size":2795,"stargazers_count":154,"open_issues_count":17,"forks_count":32,"subscribers_count":17,"default_branch":"main","last_synced_at":"2025-10-21T09:59:24.934Z","etag":null,"topics":["authentication","passkeys","swift","swift-server","webauthn"],"latest_commit_sha":null,"homepage":"https://swiftpackageindex.com/swift-server/swift-webauthn/main/documentation/webauthn","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/brokenhandsio.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE.txt","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-07-20T14:43:58.000Z","updated_at":"2025-10-14T13:58:25.000Z","dependencies_parsed_at":"2024-02-12T23:24:52.821Z","dependency_job_id":"2afd56a5-03af-456d-a33c-0b87ded1133c","html_url":"https://github.com/brokenhandsio/swift-webauthn","commit_stats":{"total_commits":62,"total_committers":7,"mean_commits":8.857142857142858,"dds":"0.30645161290322576","last_synced_commit":"1ce64d65712ba085b630bfb25e42382848bc32e6"},"previous_names":["swift-server/swift-webauthn","swift-server/webauthn-swift","brokenhandsio/swift-webauthn"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/brokenhandsio/swift-webauthn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brokenhandsio%2Fswift-webauthn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brokenhandsio%2Fswift-webauthn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brokenhandsio%2Fswift-webauthn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brokenhandsio%2Fswift-webauthn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brokenhandsio","download_url":"https://codeload.github.com/brokenhandsio/swift-webauthn/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brokenhandsio%2Fswift-webauthn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280240317,"owners_count":26296527,"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-10-21T02:00:06.614Z","response_time":58,"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":["authentication","passkeys","swift","swift-server","webauthn"],"created_at":"2025-10-21T09:59:54.976Z","updated_at":"2025-10-21T10:00:04.440Z","avatar_url":"https://github.com/brokenhandsio.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# swift-webauthn\n\nThis package provides a Swift implementation of the [WebAuthn API](https://w3c.github.io/webauthn) focused on making it\neasy to leverage the power of WebAuthn to support Passkeys and security keys.\n\n## Getting Started\n\n**Adding the dependency**\n\nAdd the following entry in your `Package.swift` to start using `WebAuthn`:\n\n```swift\n.package(url: \"https://github.com/swift-server/swift-webauthn.git\", from: \"1.0.0-alpha.2\")\n```\n\nand `WebAuthn` dependency to your target:\n\n```swift\n.target(name: \"MyApp\", dependencies: [.product(name: \"WebAuthn\", package: \"swift-webauthn\")])\n```\n\n### Setup\n\nConfigure your Relying Party with a `WebAuthnManager` instance:\n\n```swift\nlet webAuthnManager = WebAuthnManager(\n    configuration: WebAuthnManager.Configuration(\n        relyingPartyID: \"example.com\",\n        relyingPartyName: \"My Fancy Web App\",\n        relyingPartyOrigin: \"https://example.com\"\n    )\n)\n```\n\n### Registration\n\nFor a registration ceremony use the following two methods:\n\n- `WebAuthnManager.beginRegistration()`\n- `WebAuthnManager.finishRegistration()`\n\n### Authentication\n\nFor an authentication ceremony use the following two methods:\n\n- `WebAuthnManager.beginAuthentication()`\n- `WebAuthnManager.finishAuthentication()`\n\n## Contributing\n\nIf you add any new files, please run the following command at the root of the repo to identify any missing license headers:\n```bash\n% PROJECTNAME=\"Swift WebAuthn\" /bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/swiftlang/github-workflows/refs/heads/main/.github/workflows/scripts/check-license-header.sh)\"\n```\n\n## Credits\n\nSwift WebAuthn is heavily inspired by existing WebAuthn libraries like\n[py_webauthn](https://github.com/duo-labs/py_webauthn) and [go-webauthn](https://github.com/go-webauthn/webauthn).\n\n## Links\n\n- [WebAuthn.io](https://webauthn.io/)\n- [WebAuthn guide](https://webauthn.guide/)\n- [WebAuthn Spec](https://w3c.github.io/webauthn/)\n- [CBOR.me](https://cbor.me/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrokenhandsio%2Fswift-webauthn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrokenhandsio%2Fswift-webauthn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrokenhandsio%2Fswift-webauthn/lists"}