fido2.payment
Classes
A data class with members also accessible as a JSON-serializable Mapping. |
|
bytes(iterable_of_ints) -> bytes |
|
ClientDataCollector for the WebAuthn "payment" extension. |
Module Contents
- class fido2.payment.CollectedClientAdditionalPaymentData[source]
Bases:
fido2.utils._JsonDataObject
A data class with members also accessible as a JSON-serializable Mapping.
- class fido2.payment.CollectedClientPaymentData(serialized)[source]
Bases:
fido2.webauthn.CollectedClientData
bytes(iterable_of_ints) -> bytes bytes(string, encoding[, errors]) -> bytes bytes(bytes_or_buffer) -> immutable copy of bytes_or_buffer bytes(int) -> bytes object of size given by the parameter initialized with null bytes bytes() -> empty bytes object
- Construct an immutable array of bytes from:
an iterable yielding integers in range(256)
a text string encoded using the specified encoding
any object implementing the buffer API.
an integer
- Parameters:
serialized (bytes)
- class fido2.payment.PaymentClientDataCollector(origin, verify=verify_rp_id)[source]
Bases:
fido2.client.DefaultClientDataCollector
ClientDataCollector for the WebAuthn “payment” extension.
This class can be used together with the CTAP2 “thirdPartyPayment” extension to enable third-party payment confirmation. It collects the necessary client data and validates the options provided by the client.