Open bschoenmaeckers opened 3 months ago
Hello @bschoenmaeckers, to summarize the ask here, you'd like to see a new "attestation_statement
" property added to VerifiedRegistration
that contains the value of attestation_object.att_stmt
(type of AttestationStatement
)?
As an alternative approach, are you aware of the numerous helpers available in webauthn.helpers
? webauthn.helpers.parse_attestation_object
can be imported directly to run on VerifiedRegistration.attestation_object
to then pull out of att_stmt
whatever you want:
from webauthn import verify_registration_response
from webauthn.helpers import parse_attestation_object
verification = verify_registration_response(...)
attestation_statement = parse_attestation_object(verification.attestation_object).att_stmt
Currently
VerifiedRegistration
contains theattestation_object
as bytes but it would be convinient ifVerifiedRegistration
contains the parsedAttestationStatement
. This would make it easy to save the statement for later use without parsing the whole attestation_object again.