Skip to content

Commit 5b3fa4a

Browse files
committed
AUTHN API Workspace
1 parent 90c4005 commit 5b3fa4a

2 files changed

Lines changed: 24 additions & 24 deletions

File tree

‎content/en/labs/b1.building-an-authentication-restful-api.md‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ users user_devices
2020
│ id │ uuid │ │ id │ uuid │
2121
│ status │ smallint │ │ user_id │ uuid │
2222
│ email │ text │ │ device_name │ text │
23-
└────────────┴────────────┘ │ device_hash │ text │
23+
└────────────┴────────────┘ │ device_hash │ bytea │
2424
│ revoked_at │ timestamp │
2525
└──────────────────┴──────────────┘
2626
27-
user_passwords user_passkeys
27+
user_passwords user_passkeys
2828
┌───────────────┬────────────────┐ ┌───────────────────┬───────────┐
2929
│ created_at │ timestamp │ │ created_at │ timestamp │
3030
│ updated_at │ timestamp │ │ last_used_at │ timestamp │
@@ -35,16 +35,16 @@ user_passwords user_passkeys
3535
│ public_key │ bytea │
3636
└───────────────────┴───────────┘
3737
38-
user_identities webauthn_challenges oauth_challenges
39-
┌─────────────────┬──────┐ ┌─────────────────┬────────────┐ ┌────────────────────┬──────┐
40-
│ created_at │ ... │ │ created_at │ ... │ │ created_at │ ... │
41-
│ user_id │ uuid │ │ expires_at │ ... │ │ expires_at │ ... │
42-
│ provider │ text │ │ user_id │ uuid │ │ pkce_code_verifier │ text │
43-
│ provider_sub_id │ text │ │ device_id │ uuid │ │ client_redirect_uri│ text │
44-
│ id │ uuid │ │ challenge_type │ text │ │ provider │ text │
45-
└─────────────────┴──────┘ │ challenge_token │ bytea │ │ flow_type │ text │
46-
└─────────────────┴────────────┘ │ state │ uuid │
47-
└────────────────────┴──────┘
38+
user_identities webauthn_challenges oauth_challenges
39+
┌─────────────────┬──────┐ ┌─────────────────┬────────────┐ ┌────────────────────┬──────┐
40+
│ created_at │ ... │ │ created_at │ ... │ │ created_at │ ... │
41+
│ user_id │ uuid │ │ expires_at │ ... │ │ expires_at │ ... │
42+
│ provider │ text │ │ user_id │ uuid │ │ pkce_code_verifier │ text │
43+
│ provider_sub_id │ text │ │ device_id │ uuid │ │ client_redirect_uri│ text │
44+
│ id │ uuid │ │ challenge_type │ text │ │ provider │ text │
45+
└─────────────────┴──────┘ │ challenge_token │ bytea │ │ flow_type │ text │
46+
└─────────────────┴────────────┘ │ state │ uuid │
47+
└────────────────────┴──────┘
4848
security_audit_logs refresh_tokens
4949
┌─────────────────┬──────────────┐ ┌─────────────────┬────────┐
5050
│ created_at │ ... │ │ created_at │ ... │

‎docs/labs/building-an-authentication-restful-api/index.html‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
│ id │ uuid │ │ id │ uuid │
2424
│ status │ smallint │ │ user_id │ uuid │
2525
│ email │ text │ │ device_name │ text │
26-
└────────────┴────────────┘ │ device_hash │ text │
26+
└────────────┴────────────┘ │ device_hash │ bytea │
2727
│ revoked_at │ timestamp │
2828
└──────────────────┴──────────────┘
2929

30-
user_passwords user_passkeys
30+
user_passwords user_passkeys
3131
┌───────────────┬────────────────┐ ┌───────────────────┬───────────┐
3232
│ created_at │ timestamp │ │ created_at │ timestamp │
3333
│ updated_at │ timestamp │ │ last_used_at │ timestamp │
@@ -38,16 +38,16 @@
3838
│ public_key │ bytea │
3939
└───────────────────┴───────────┘
4040

41-
user_identities webauthn_challenges oauth_challenges
42-
┌─────────────────┬──────┐ ┌─────────────────┬────────────┐ ┌────────────────────┬──────┐
43-
│ created_at │ ... │ │ created_at │ ... │ │ created_at │ ... │
44-
│ user_id │ uuid │ │ expires_at │ ... │ │ expires_at │ ... │
45-
│ provider │ text │ │ user_id │ uuid │ │ pkce_code_verifier │ text │
46-
│ provider_sub_id │ text │ │ device_id │ uuid │ │ client_redirect_uri│ text │
47-
│ id │ uuid │ │ challenge_type │ text │ │ provider │ text │
48-
└─────────────────┴──────┘ │ challenge_token │ bytea │ │ flow_type │ text │
49-
└─────────────────┴────────────┘ │ state │ uuid │
50-
└────────────────────┴──────┘
41+
user_identities webauthn_challenges oauth_challenges
42+
┌─────────────────┬──────┐ ┌─────────────────┬────────────┐ ┌────────────────────┬──────┐
43+
│ created_at │ ... │ │ created_at │ ... │ │ created_at │ ... │
44+
│ user_id │ uuid │ │ expires_at │ ... │ │ expires_at │ ... │
45+
│ provider │ text │ │ user_id │ uuid │ │ pkce_code_verifier │ text │
46+
│ provider_sub_id │ text │ │ device_id │ uuid │ │ client_redirect_uri│ text │
47+
│ id │ uuid │ │ challenge_type │ text │ │ provider │ text │
48+
└─────────────────┴──────┘ │ challenge_token │ bytea │ │ flow_type │ text │
49+
└─────────────────┴────────────┘ │ state │ uuid │
50+
└────────────────────┴──────┘
5151
security_audit_logs refresh_tokens
5252
┌─────────────────┬──────────────┐ ┌─────────────────┬────────┐
5353
│ created_at │ ... │ │ created_at │ ... │

0 commit comments

Comments
 (0)