ExSwan.Attestation.CreationOptions (exswan v0.1.0)

View Source

Public key credential creation options sent to authenticator.

Summary

Functions

Converts creation options to JSON-serializable format for client.

Types

t()

@type t() :: %ExSwan.Attestation.CreationOptions{
  attestation: String.t() | nil,
  authenticator_selection: AuthenticatorSelection.t() | nil,
  challenge: binary(),
  exclude_credentials: [ExSwan.Credential.Descriptor.t()] | nil,
  extensions: map() | nil,
  hints: [String.t()] | nil,
  pub_key_cred_params: [ExSwan.Credential.Parameters.t()],
  rp: ExSwan.Credential.RelyingParty.t(),
  timeout: pos_integer() | nil,
  user: ExSwan.Credential.User.t()
}

Functions

to_json(options)

@spec to_json(t()) :: map()

Converts creation options to JSON-serializable format for client.

Encodes binary data as base64url strings and formats the options according to WebAuthn specification requirements.