Get passkey assertion options for the sign-in challenge
/v1/auth/mfa/challenge/webauthn/optionsReturns the navigator.credentials.get() assertion options for the pending challenge_token, under Canopy's relying party and limited to the administrator's passkeys bound to it; the nonce is kept on the challenge for the verify step. 401 when the token is invalid, 400 when no passkey can answer. Rate-limited to 10 requests per minute.
Request body
application/json
challenge_tokenstring Required Challenge token returned by /v1/identity/auth/login when `requires_mfa_challenge` was true.
Responses
application/json
data *MfaChallengeWebAuthnOptionsResponseDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
Rate limit
10 requests per 1mPer caller: the signed-in user for a bearer token; for an API key, the key and the end user's address when a backend forwards it, otherwise the client address
Returned object
curl -X POST "https://auth.canopy-io.com/v1/auth/mfa/challenge/webauthn/options" \ -H "Content-Type: application/json" \ -d '{ "challenge_token": "string" }'
{ "data": { "challenge": "string", "timeout": 0, "rpId": "string", "allowCredentials": {}, "userVerification": {}, "hints": {}, "extensions": {} } }
Tell us how we can improve this guide.