Autional Autional
API Reference GitHub autional.com →

POST /auth/webauthn/register/begin

Generate a registration challenge and credential creation options, returning them to the frontend for calling navigator.credentials.create().

WebAuthn `bearerAuth` application/json

Request Body

Schema: handler.beginRegistrationRequest

FieldTypeRequiredExampleConstraintsDescription
password string Yes length: 1–?
user_name string Yes
display_name string No

Responses

StatusDescriptionSchema
200Registration optionsdto.WebAuthnRegistrationResponseWrapper
400Invalid request parametersdto.SimpleResponseWrapper
401Unauthorizeddto.SimpleResponseWrapper
500Server errordto.SimpleResponseWrapper

Referenced Schemas

dto.SimpleResponseWrapper

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No

dto.WebAuthnAuthenticatorSelection

FieldTypeRequiredExampleConstraintsDescription
authenticatorAttachment string No
residentKey string No
userVerification string No

dto.WebAuthnCredentialParameter

FieldTypeRequiredExampleConstraintsDescription
alg integer No
type string No

dto.WebAuthnRPEntity

FieldTypeRequiredExampleConstraintsDescription
id string No
name string No

dto.WebAuthnRegistrationOptionsResponse

WebAuthn navigator.credentials.create() publicKey parameter

FieldTypeRequiredExampleConstraintsDescription
attestation string No
authenticatorSelection dto.WebAuthnAuthenticatorSelection No
challenge string No
pubKeyCredParams array of

See dto.WebAuthnCredentialParameter

No
rp dto.WebAuthnRPEntity No
timeout integer No
user dto.WebAuthnUserEntity No

dto.WebAuthnRegistrationResponse

FieldTypeRequiredExampleConstraintsDescription
publicKey dto.WebAuthnRegistrationOptionsResponse No

dto.WebAuthnRegistrationResponseWrapper

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.WebAuthnRegistrationResponse No
message string No
timestamp string No

dto.WebAuthnUserEntity

FieldTypeRequiredExampleConstraintsDescription
displayName string No
id string No
name string No