Skip to content

Commit 23ed214

Browse files
committed
Updated documentation
1 parent 8be6293 commit 23ed214

File tree

11 files changed

+408
-224
lines changed

11 files changed

+408
-224
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ On May 3, 2023, Google allowed the use of Passkeys for the users to login, killi
2929
django-passkeys supports the following features:
3030
### 1. Conditional UI
3131
**Conditional UI** is a way for the browser to prompt the user to use the passkey to login as shown.
32-
![conditionalUI.png](imgs%2FconditionalUI.png)
32+
![conditionalUI.png](docs/imgs%2FconditionalUI.png)
3333

3434
### 2. WebAuthn immediate mediation for frictionless sign-in
3535

@@ -38,7 +38,7 @@ user to use password/passkeys without the need of a login form. This is currentl
3838

3939
You can watch demo presented by Google
4040

41-
[![Watch the video](imgs/immediate.png)](https://developer.chrome.com//static/blog/webauthn-immediate-mediation-ot/video/immediate-mediation-explicit-flow.mp4)
41+
[![Watch the video](docs/imgs/immediate.png)](https://developer.chrome.com//static/blog/webauthn-immediate-mediation-ot/video/immediate-mediation-explicit-flow.mp4)
4242

4343
# Quick Start - Common Settings
4444

@@ -108,7 +108,7 @@ Both can coexist in the same project — you can use templates for your web app
108108

109109
## Example Project
110110

111-
See the `example` app and [Example.md](Example.md) for a working demo.
111+
See the `example` app and [Example.md](docs.Example.md) for a working demo for templates, drf and immediate mediation.
112112

113113
## Security contact information
114114

build_docs.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python -m mkdocs build --clean --site-dir ./html --config-file mkdocs.yml

docs/Example.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Use of Example project
2+
3+
1. Create virtual env
4+
```shell
5+
python -m venv env
6+
```
7+
2. Activate env
8+
```
9+
source env/bin/activate
10+
```
11+
3. Install requirements
12+
```
13+
pip install -r requirements.txt
14+
```
15+
4. cd to example project
16+
```
17+
cd example
18+
```
19+
5. Run migrations
20+
```
21+
python manage.py migrate
22+
```
23+
6. Create superuser
24+
```
25+
python manage.py createsuperuser
26+
```
27+
7. Start the server
28+
```
29+
python manage.py runserver
30+
```
31+
8. Open `http://localhost:8000/` in your browser
32+
33+
**Important**: Use `localhost` not `127.0.0.1` — WebAuthn requires the domain to match `FIDO_SERVER_ID` in settings.
34+
35+
# Notes for SSL
36+
37+
For passkeys in production, you need to use HTTPS. After the above steps are done:
38+
39+
1. Stop the server
40+
2. Install SSL requirements
41+
```shell
42+
pip install django-sslserver
43+
```
44+
3. Start the SSL server
45+
```shell
46+
python manage.py runsslserver
47+
```

0 commit comments

Comments
 (0)