For the complete documentation index, see llms.txt. This page is also available as Markdown.

Start WebAuthn registration

Applies to the user of the current session.

post
Authorizations
defguard_sessionstringRequired
Responses
200

WebAuthn registration challenge.

application/json
objectOptional
post/api/v1/auth/webauthn/init
POST /api/v1/auth/webauthn/init HTTP/1.1
Accept: */*
{
  "publicKey": {
    "challenge": "y5EiUNc9wZ0mGvJ0mQdKZg",
    "pubKeyCredParams": [
      {
        "alg": -7,
        "type": "public-key"
      }
    ],
    "rp": {
      "id": "vpn.example.com",
      "name": "defguard"
    },
    "user": {
      "displayName": "admin",
      "id": "TDNkX2FkbWlu",
      "name": "admin"
    }
  }
}

Last updated

Was this helpful?