Skip to content

Commit

Permalink
Fix make_credential missing rp.id
Browse files Browse the repository at this point in the history
  • Loading branch information
dainnilsson committed Nov 19, 2024
1 parent 6e5bc05 commit e941ce1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fido2/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
from .rpid import verify_rp_id
from .utils import sha256
from enum import IntEnum, unique
from dataclasses import replace
from urllib.parse import urlparse
from threading import Timer, Event
from typing import (
Expand Down Expand Up @@ -748,7 +749,7 @@ def _do_make():
return (
self.ctap2.make_credential(
client_data_hash,
_as_cbor(rp),
_as_cbor(replace(rp, id=rp_id)),
_as_cbor(user),
_cbor_list(key_params),
[_as_cbor(exclude_cred)] if exclude_cred else None,
Expand Down

0 comments on commit e941ce1

Please sign in to comment.