mirror of
https://github.com/miniflux/v2.git
synced 2025-08-06 17:41:00 +00:00
Add WebAuthn / Passkey integration
This is a rebase of #1618 in which @dave-atx added WebAuthn support. Closes #1618
This commit is contained in:
parent
62188b49f0
commit
62ef8ed57a
42 changed files with 1357 additions and 33 deletions
|
@ -807,4 +807,22 @@ var migrations = []func(tx *sql.Tx) error{
|
|||
_, err = tx.Exec(sql)
|
||||
return
|
||||
},
|
||||
func(tx *sql.Tx) (err error) {
|
||||
_, err = tx.Exec(`
|
||||
CREATE TABLE webauthn_credentials (
|
||||
handle bytea primary key,
|
||||
cred_id bytea unique not null,
|
||||
user_id int references users(id) on delete cascade not null,
|
||||
public_key bytea not null,
|
||||
attestation_type varchar(255) not null,
|
||||
aaguid bytea,
|
||||
sign_count bigint,
|
||||
clone_warning bool,
|
||||
name text,
|
||||
added_on timestamp with time zone default now(),
|
||||
last_seen_on timestamp with time zone default now()
|
||||
);
|
||||
`)
|
||||
return
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue