{"id":16299591,"url":"https://github.com/dcwatson/django-passkey-auth","last_synced_at":"2025-03-20T05:30:50.779Z","repository":{"id":231545435,"uuid":"782056715","full_name":"dcwatson/django-passkey-auth","owner":"dcwatson","description":"Passkey authentication for Django","archived":false,"fork":false,"pushed_at":"2024-05-14T00:37:16.000Z","size":10,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-17T15:06:39.485Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/dcwatson.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}},"created_at":"2024-04-04T14:56:07.000Z","updated_at":"2025-03-09T19:46:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"e5b968be-46fc-40a2-ba37-0a9bd285b45c","html_url":"https://github.com/dcwatson/django-passkey-auth","commit_stats":null,"previous_names":["dcwatson/django-passkey-auth"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcwatson%2Fdjango-passkey-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcwatson%2Fdjango-passkey-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcwatson%2Fdjango-passkey-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcwatson%2Fdjango-passkey-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcwatson","download_url":"https://codeload.github.com/dcwatson/django-passkey-auth/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244559734,"owners_count":20472207,"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-10-10T20:48:38.952Z","updated_at":"2025-03-20T05:30:50.774Z","avatar_url":"https://github.com/dcwatson.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"_Note that this is very much not a finished package. Consider it a tech demo, or a small\nproof of concept, and feel free to use it however you'd like, but I would not recommend\nusing it in production as-is._\n\n# Installation\n\n1. `pip install django-passkey-auth`\n2. Add `passkeys` to your `INSTALLED_APPS` setting\n3. Include `passkeys.urls` somewhere in your `urls.py` (`auth/passkey/` for example)\n3. Migrate your database\n\n\n## Integration with the Django admin\n\n`django-passkey-auth` comes with some basic admin template overrides that make it\npossible to register and authenticate with a passkey to the Django admin. To use these\ncustomizations, add `passkeys.template_directory` to your `TEMPLATES[\"DIRS\"]` list.\n\nThe next time you log into the admin, a \"Register Passkey\" link will be available in the\nuser links at the top. Once you have registered a passkey, you can use the \"Passkey\nLogin\" button available on the admin login form.\n\n\n## Integration with your site\n\n* Add `\u003cscript src=\"{% static 'passkeys/passkeys.js' %}\" defer\u003e\u003c/script\u003e` to your login\n  page, and any page where you may want to allow users to register a passkey.\n* Add a button to allow users to register a passkey:\n    ```html\n    \u003cbutton onclick=\"registerPasskey('{% url \"passkey-register\" %}', '{% url \"home\" %}')\"\u003eRegister Passkey\u003c/button\u003e\n    ```\n* Add a button to your login page to allow users to authenticate with a passkey:\n    ```html\n    \u003cbutton onclick=\"authenticatePasskey('{% url \"passkey-login\" %}', '{% url \"home\" %}')\"\u003ePasskey Login\u003c/button\u003e\n    ```\n\n## Javascript functions\n\nThe `passkeys.js` script contains two functions:\n\n### `async function registerPasskey(endpoint, redirect)`\n\n### `async function authenticatePasskey(endpoint, redirect)`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcwatson%2Fdjango-passkey-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcwatson%2Fdjango-passkey-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcwatson%2Fdjango-passkey-auth/lists"}