1. Docs
  2. API Reference
  3. OAuth hosted login: WebAuthn enrollment options

OAuth hosted login: WebAuthn enrollment options

POST/oauth/mfa/webauthn/enroll/options

Step 1 of hosted WebAuthn MFA enrollment: returns the attestation options (and a fresh enrollment_token) as JSON for the browser's navigator.credentials.create(). The subject is derived from the enrollment_token minted by the prior authorize step. Responds with 400 and { error: "expired" } when that token is invalid or expired. Throttled to 5 requests per minute.

Request body

application/json

enrollment_tokenstring Required

Responses

200
Request
curl -X POST "https://auth.canopy-io.com/oauth/mfa/webauthn/enroll/options" \
  -H "Content-Type: application/json" \
  -d '{
    "enrollment_token": "string"
  }'
Response
HTTP/1.1 200

(empty body)
Related endpoints Was this page helpful?

Tell us how we can improve this guide.