duo-labs/webauthn.io
소개
WebAuthn 데모 사이트 webauthn.io의 소스 코드입니다.
보안 및 개인정보 보호측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalwebauthn.io
Duo's introduction to the wonderful world of WebAuthn. Powered by py_webauthn.
Prerequisites
- Docker
- uv (See https://docs.astral.sh/uv/getting-started/installation/)
- Run
uv synclocally to install dependencies and give the editor something to crawl
- Run
Environmental Variable
DJANGO_SECRET_KEY: A sufficiently random stringPROD_HOST_NAME: The domain name the site will be hosted atPROD_CSRF_ORIGIN: The domain name plus protocol from which requests to the backend should occur (e.g.https://webauthn.io)RP_ID: The Relying Party ID, typically the same asPROD_HOST_NAMERP_NAME: A representation of the site's name to be shown to usersRP_EXPECTED_ORIGIN: The domain name plus protocol at which WebAuthn will be invoked (e.g.https://webauthn.io)
Development
Run the following command to get started:
./start-dev.sh
The site will be available at http://localhost/
CSS
CSS leans on browsers and their native CSS nesting support, which allows for nicer CSS authoring without pre-processors. Unfortunately for now this means the following command will need to be run after making any changes to CSS to ensure that the changes are served by Caddy on subsequent reloads:
docker compose run django ./manage.py collectstatic --no-input
Production
Run the following command to start up the website with production-ready settings:
./start-prod.sh
The site will be available for viewing at https://{PROD_HOST_NAME}. The included Caddy server (as the caddy service in docker-compose.yml) will handle SSL certificate management.
Updating Production
Run the following commands to rebuild and restart the django service with any new updates:
$> git pull
$> ./update-prod-django.sh
The django and caddy services will be temporarily stopped during the build, and will restart once the django has been rebuilt.
Testing
Run the following command to test everything in the homepage.tests module:
./run-tests.sh
A Note about WebAuthn Privacy Considerations
This site is not intended to represent WebAuthn best practices. Its use of WebAuthn is optimized to offer a test bed for the many permutations of possible WebAuthn API calls.
As a result the codebase does not meaningfully try to offer solutions to any of the Relying Party-specific privacy considerations as detailed in the spec, like username enumeration or personal information leakage via user ID.
Please keep this in mind as you dive deeper into the internals of this project. You can consult the spec at the link above for ideas on how to address these problems for your Relying Party implementation.
관련 프로젝트 살펴보기
불러오는 중…