web_authn_lite v0.1.1 WebAuthnLite.AttestationObject

Data struct and functions for attestationObject

https://www.w3.org/TR/webauthn/#sctn-attestation

TODO:

  • Handling AttestationStatement

Link to this section Summary

Link to this section Types

Link to this type t()
t() :: %WebAuthnLite.AttestationObject{
  att_stmt: binary(),
  auth_data: WebAuthnLite.AuthenticatorData.t(),
  fmt: binary(),
  raw: binary()
}

Link to this section Functions

Link to this function decode(base64_url_encoded_attestation_object)
decode(base64_url_encoded_attestation_object :: String.t()) ::
  {:ok, t()} | {:error, :invalid_attestation_object}