@@ -20,35 +20,36 @@ SELECT jsonb_pretty(webauthn.init_credential(
2020 relying_party_name := %5 $s,
2121 relying_party_id := %6 $s,
2222 user_verification := ' %7$s' ,
23- timeout := ' %8$s' ,
24- challenge_at := ' %9$s'
23+ attestation := ' %8$s' ,
24+ timeout := ' %9$s' ,
25+ challenge_at := ' %10$s'
2526));
2627
2728SELECT * FROM webauthn .make_credential (
28- credential_id := ' %10 $s' ,
29- credential_type := ' %11 $s' ,
30- attestation_object := ' %12 $s' ,
31- client_data_json := ' %13 $s' ,
32- credential_at := ' %14 $s'
29+ credential_id := ' %11 $s' ,
30+ credential_type := ' %12 $s' ,
31+ attestation_object := ' %13 $s' ,
32+ client_data_json := ' %14 $s' ,
33+ credential_at := ' %15 $s'
3334);
3435
3536SELECT jsonb_pretty(webauthn .get_credentials (
36- challenge := ' %15 $s' ::bytea ,
37- user_name := %16 $s,
38- user_verification := ' %17 $s' ,
39- timeout := ' %18 $s' ,
40- relying_party_id := %19 $s,
41- challenge_at := ' %20 $s'
37+ challenge := ' %16 $s' ::bytea ,
38+ user_name := %17 $s,
39+ user_verification := ' %18 $s' ,
40+ timeout := ' %19 $s' ,
41+ relying_party_id := %20 $s,
42+ challenge_at := ' %21 $s'
4243));
4344
4445SELECT * FROM webauthn .verify_assertion (
45- credential_id := ' %21 $s' ,
46- credential_type := ' %22 $s' ,
47- authenticator_data := ' %23 $s' ,
48- client_data_json := ' %24 $s' ,
49- signature := ' %25 $s' ,
50- user_handle := %26 $s,
51- verified_at := ' %27 $s'
46+ credential_id := ' %22 $s' ,
47+ credential_type := ' %23 $s' ,
48+ authenticator_data := ' %24 $s' ,
49+ client_data_json := ' %25 $s' ,
50+ signature := ' %26 $s' ,
51+ user_handle := %27 $s,
52+ verified_at := ' %28 $s'
5253);
5354
5455ROLLBACK ;$SQL$,
@@ -59,6 +60,7 @@ quote_literal(credential_challenges.user_display_name),
5960quote_literal(credential_challenges .relying_party_name ),
6061quote_nullable(credential_challenges .relying_party_id ),
6162credential_challenges .user_verification ,
63+ credential_challenges .attestation ,
6264credential_challenges .timeout ,
6365credential_challenges .challenge_at ,
6466webauthn .base64url_encode (credentials .credential_id ),
0 commit comments