struct Protocol::WebAuthn::Credential

Included Modules

Defined in:

protocol/web_authn.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def credential_id : String #

[View source]
def is_resident_credential : Bool #

[View source]
def large_blob : String | Nil #

The large blob associated with the credential. See https://w3c.github.io/webauthn/#sctn-large-blob-extension (Encoded as a base64 string when passed over JSON)


[View source]
def private_key : String #

The ECDSA P-256 private key in PKCS#8 format. (Encoded as a base64 string when passed over JSON)


[View source]
def rp_id : String | Nil #

Relying Party ID the credential is scoped to. Must be set when adding a credential.


[View source]
def sign_count : Int::Primitive #

Signature counter. This is incremented by one for each successful assertion. See https://w3c.github.io/webauthn/#signature-counter


[View source]
def user_handle : String | Nil #

An opaque byte sequence with a maximum size of 64 bytes mapping the credential to a specific user. (Encoded as a base64 string when passed over JSON)


[View source]